LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   In slack 13; what package installs /etc/rc.d/rc.4 script? (https://www.linuxquestions.org/questions/slackware-14/in-slack-13%3B-what-package-installs-etc-rc-d-rc-4-script-787031/)

linus72 02-04-2010 12:14 PM

In slack 13; what package installs /etc/rc.d/rc.4 script?
 
I'm trying to figure out how to configure my customized Slim DM
to overwrite the installed /etc/rc.d/rc.4 script with the one I put in
my slim build from source

However, it just installs it as rc.4.new and not rc.4
why?

would it be easier to instead configure the rc.4 that initially gets installed?

if so, what slack pkg has the /etc/rc.d/* folder??

I'm doing this with Absolute 13.0.8 install cd as its installed size is too big for my lappy hdd and it comes with both gdm and xdm
and I want slim.

So, I removed many many pkgs from install iso, got it down to 370MB and only problem is after install
my rc.4 is in /etc/rc.d but its named rc.4.new and there is also the original rc.4
thats my only issue

How do i do this?

linus72 02-04-2010 12:18 PM

To elaborate more, heres the custom rc.4 I need to have installed when i install from my iso

Code:

#! /bin/sh
#
# rc.4                This file is executed by init(8) when the system is being
#                initialized for run level 4 (XDM)
#
# Version:        @(#)/etc/rc.d/rc.4        2.00        02/17/93
#
# Author:        Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# At least 47% rewritten by:  Patrick J. Volkerding <volkerdi@slackware.com>
#

# Tell the viewers what's going to happen...
echo "Starting up X11 session manager..."

# --- 8< --------------------------------------------------------------------
# Try to use SLiM login manager.  This comes first because if
# SLiM is on the machine then the user probably installed it and wants
# to use it by default:
if [ -x /usr/bin/slim ]; then
  exec /usr/bin/slim
fi

# --- 8< --------------------------------------------------------------------


# Try to use GNOME's gdm session manager.  This comes first because if
# gdm is on the machine then the user probably installed it and wants
# to use it by default:
if [ -x /usr/bin/gdm ]; then
  exec /usr/bin/gdm -nodaemon
fi

# Someone thought that gdm looked prettier in /usr/sbin,
# so look there, too:
if [ -x /usr/sbin/gdm ]; then
  exec /usr/sbin/gdm -nodaemon
fi

# Not there?  OK, try to use KDE's kdm session manager:
if [ -x /opt/kde/bin/kdm ]; then
  exec /opt/kde/bin/kdm -nodaemon
elif [ -x /usr/bin/kdm ]; then
  exec /usr/bin/kdm -nodaemon
fi

# If all you have is XDM, I guess it will have to do:
if [ -x /usr/bin/xdm ]; then
  exec /usr/bin/xdm -nodaemon
elif [ -x /usr/X11R6/bin/xdm ]; then
  exec /usr/X11R6/bin/xdm -nodaemon
fi

# error
echo
echo "Hey, you don't have KDM, GDM, or XDM.  Can't use runlevel 4 without"
echo "one of those installed."
sleep 30

# All done.

I need the highlighted section in the rc.4 script

ponce 02-04-2010 12:19 PM

http://www.slackwiki.org/Doinst.sh

you can see lot of examples how to include customized doinst.sh in slackware sources :)

at, for example, has this line near the end of the slackbuild, just before makepkg
Code:

zcat $CWD/doinst.sh > $PKG/install/doinst.sh
(maybe should be "zcat $CWD/doinst.sh.gz", someone gotta tell Pat :D I was only looking for an example, LOL)

you can find the build files here.

linus72 02-04-2010 12:23 PM

OK

mmm I'm confused as there isnt a Doinst.sh in slim source?
I'm not a script bash expert so please explaing?

linus72 02-04-2010 12:23 PM

I got a SLKBUILD and a build-slim.sh with the source I got from salixos

gapan 02-04-2010 12:25 PM

Code:

mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4
that would certainly work. Or you could just edit the existing rc.4 with the changes.

linus72 02-04-2010 12:26 PM

heres the pkg, please note I have modified it considerably from that one

http://salix.enialis.net/i486/13.0/source/xap/slim/

linus72 02-04-2010 12:26 PM

Ha
hey Gapan, where do i put that command?

linus72 02-04-2010 12:29 PM

Heres the modified makefile in source

I removed all the themes, added my icelite theme
and highlighted the rc.4 command

Code:

# Makefile for slim - generic Linux
#
# Edit the following section to adjust the options
# to fit into your operating system / distribution
#######################################################
CXX=/usr/bin/g++
CC=/usr/bin/gcc
CFLAGS=-Wall -I. -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libpng12 -I/usr/include
CXXFLAGS=$(CFLAGS)
LDFLAGS=-lXft -lX11 -lfreetype -lXrender -lfontconfig -lpng12 -lz -lm -lcrypt -lXmu -lpng -ljpeg
CUSTOM=-DHAVE_SHADOW
ifdef USE_PAM
LDFLAGS+= -lpam
CUSTOM+= -DUSE_PAM
endif
PREFIX=/usr
CFGDIR=/etc
MANDIR=/usr/man
DESTDIR=
#######################################################

NAME=slim
VERSION=1.3.1

DEFINES=-DPACKAGE=\"$(NAME)\" -DVERSION=\"$(VERSION)\" \
                -DPKGDATADIR=\"$(PREFIX)/share/slim\" -DSYSCONFDIR=\"$(CFGDIR)\"

OBJECTS=jpeg.o png.o main.o image.o numlock.o cfg.o switchuser.o app.o panel.o
ifdef USE_PAM
OBJECTS+=PAM.o
endif

all: slim

slim: $(OBJECTS)
        $(CXX) $(LDFLAGS) $(OBJECTS) -o $(NAME)

.cpp.o:
        $(CXX) $(CXXFLAGS) $(DEFINES) $(CUSTOM) -c $< -o $@

.c.o:
        $(CC) $(CFLAGS) $(DEFINES) $(CUSTOM) -c $< -o $@

install: slim install-theme
        install -D -m 755 slim $(DESTDIR)$(PREFIX)/bin/slim
        install -D -m 644 slim.1 $(DESTDIR)$(MANDIR)/man1/slim.1
        test -e $(DESTDIR)$(CFGDIR)/slim.conf || \
                install -D -m 644 slim.conf $(DESTDIR)$(CFGDIR)/slim.conf && install -D -m 644 rc.4 $(DESTDIR)$(CFGDIR)/rc.d/rc.4
clean:
        @rm -f slim *.o

dist:
        @rm -rf $(NAME)-$(VERSION)
        @mkdir $(NAME)-$(VERSION)
        @cp -r *.cpp *.h *.c Makefile Makefile.* COPYING ChangeLog INSTALL README TODO \
                xinitrc.sample slim.1 rc.4 THEMES themes slim.conf $(NAME)-$(VERSION)
        @rm -rf $(NAME)-$(VERSION)/themes/.svn        $(NAME)-$(VERSION)/themes/default/.svn
        @tar cvzf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
        @rm -rf $(NAME)-$(VERSION)


install-theme:
        install -D -m 644 themes/default/slim.theme \
                $(DESTDIR)$(PREFIX)/share/slim/themes/default/slim.theme
        install -D -m 644 themes/default/panel.png \
                $(DESTDIR)$(PREFIX)/share/slim/themes/default/panel.png
        install -D -m 644 themes/default/background.jpg \
                $(DESTDIR)$(PREFIX)/share/slim/themes/default/background.jpg
        install -D -m 644 themes/icelite/slim.theme \
                $(DESTDIR)$(PREFIX)/share/slim/themes/icelite/slim.theme
        install -D -m 644 themes/icelite/panel.png \
                $(DESTDIR)$(PREFIX)/share/slim/themes/icelite/panel.png
        install -D -m 644 themes/icelite/background.jpg \
                $(DESTDIR)$(PREFIX)/share/slim/themes/icelite/background.jpg


ponce 02-04-2010 12:31 PM

first time I see a salix buildscript, but reading it I suppose after
Code:

for i in ${dotnew[@]}; do
echo "dotnew $i" >> $startdir/pkg/install/doinst.sh
done
fi

add
Code:

echo "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" >> $startdir/pkg/install/doinst.sh
just before the closing bracket, on a separate line

linus72 02-04-2010 12:32 PM

The end result of ./build-slim.sh

Code:

Creating Slackware package:  /root/Desktop/SLIM/nubuild/slim-1.3.1-i486-1gv.txz

./
install/
install/slack-desc
install/doinst.sh
usr/
usr/bin/
usr/bin/slim
usr/man/
usr/man/man1/
usr/man/man1/slim.1.gz
usr/share/
usr/share/slim/
usr/share/slim/themes/
usr/share/slim/themes/icelite/
usr/share/slim/themes/icelite/background.jpg
usr/share/slim/themes/icelite/slim.theme
usr/share/slim/themes/icelite/panel.png
usr/share/slim/themes/default/
usr/share/slim/themes/default/background.jpg
usr/share/slim/themes/default/slim.theme
usr/share/slim/themes/default/panel.png
usr/src/
usr/src/slim-1.3.1/
usr/src/slim-1.3.1/slim-1.3.1.tar.gz
usr/src/slim-1.3.1/build-slim.sh
usr/src/slim-1.3.1/SLKBUILD
usr/doc/
usr/doc/slim-1.3.1/
usr/doc/slim-1.3.1/INSTALL
usr/doc/slim-1.3.1/ChangeLog
usr/doc/slim-1.3.1/COPYING
usr/doc/slim-1.3.1/README
usr/doc/slim-1.3.1/THEMES
usr/doc/slim-1.3.1/TODO
etc/
etc/rc.d/
etc/rc.d/rc.4.new
etc/slim.conf.new

Slackware package /root/Desktop/SLIM/nubuild/slim-1.3.1-i486-1gv.txz created.

Package has been built.
Cleaning pkg and src directories


linus72 02-04-2010 12:36 PM

Heres the modified SLKBUILD
what do I change?

Code:

#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=slim
pkgver=1.3.1
pkgrel=1gv
arch=i486
source=slim-1.3.1.tar.gz
sourcetemplate=
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "themes")
url=http://slim.berlios.de/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"slim - Simple Login Manager"
"SLiM is a Desktop-independent graphical login manager for X11, derived"
"from Login.app. It aims to be light and simple, although completely"
"configurable through themes and an option file; is suitable for"
"machines on which remote login functionalities are not needed."
)


build() {
        cd $startdir/src/$pkgname-$pkgver
        sed -i "s/CFLAGS=/CFLAGS+= /" Makefile
        make || return 1
        make install DESTDIR=$startdir/pkg
        THEMES="icelite"
        for i in $THEMES; do
                cp -a $startdir/src/$i $startdir/pkg/usr/share/slim/themes
        done
        chown -R root:root $startdir/pkg/usr/share/slim/themes
        sed -i "s/current_theme\(.*\)/current_theme icelite/" $startdir/pkg/etc/slim.conf
}


ponce 02-04-2010 12:38 PM

EDIT: sorry just read it well

linus72 02-04-2010 12:42 PM

this is my only snag, i got the install down fron 3.6+ gb to 1.9 gb but at runlevel 4 it hits the orig rc.4 and stops cause the slim part aint in rc.4....

ponce 02-04-2010 12:44 PM

you can try putting it just before the end bracket on the last line of your buildscript.

linus72 02-04-2010 12:45 PM

put what?

mv etc,etc? or put what before the end bracket?

ponce 02-04-2010 12:46 PM

this line
Code:

echo "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" >> $startdir/pkg/install/doinst.sh

linus72 02-04-2010 12:47 PM

there is no doinst.sh....

I have to make one?
and pput it where?

ponce 02-04-2010 12:48 PM

that line creates the file for you.

it says: write on screen the string "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" and redirect the output in append mode (the ">>") to the file $startdir/pkg/install/doinst.sh

linus72 02-04-2010 12:52 PM

here new ouput of ./build-slim.sh

Code:

Creating Slackware package:  /root/Desktop/SLIM/nubuild/slim-1.3.1-i486-1gv.txz

./
install/
install/slack-desc
install/doinst.sh
usr/
usr/bin/
usr/bin/slim
usr/man/
usr/man/man1/
usr/man/man1/slim.1.gz
usr/share/
usr/share/slim/
usr/share/slim/themes/
usr/share/slim/themes/icelite/
usr/share/slim/themes/icelite/background.jpg
usr/share/slim/themes/icelite/slim.theme
usr/share/slim/themes/icelite/panel.png
usr/share/slim/themes/default/
usr/share/slim/themes/default/background.jpg
usr/share/slim/themes/default/slim.theme
usr/share/slim/themes/default/panel.png
usr/src/
usr/src/slim-1.3.1/
usr/src/slim-1.3.1/slim-1.3.1.tar.gz
usr/src/slim-1.3.1/build-slim.sh
usr/src/slim-1.3.1/SLKBUILD
usr/doc/
usr/doc/slim-1.3.1/
usr/doc/slim-1.3.1/INSTALL
usr/doc/slim-1.3.1/ChangeLog
usr/doc/slim-1.3.1/COPYING
usr/doc/slim-1.3.1/README
usr/doc/slim-1.3.1/THEMES
usr/doc/slim-1.3.1/TODO
etc/
etc/rc.d/
etc/rc.d/rc.4.new
etc/slim.conf.new

Slackware package /root/Desktop/SLIM/nubuild/slim-1.3.1-i486-1gv.txz created.

Package has been built.
Cleaning pkg and src directories

we'll see if'n it works...

ponce 02-04-2010 12:55 PM

you gotta tell us, we're curious. ;)

gapan 02-04-2010 01:00 PM

Quote:

Originally Posted by linus72 (Post 3852730)
Ha
hey Gapan, where do i put that command?

In a bash prompt, after you install the package.

ponce 02-04-2010 01:02 PM

that is too easy LOL

linus72 02-04-2010 01:07 PM

gotta tell us what ponce?

Gapan, its impossible to do it in a bash prompt
this is an install cd, at initial boot after installing it's gonna hit runlevel 4 and cink out as my rc.4 is being named rc.4.new and not overwriting the original...

any, ponce adding

echo "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" >> $startdir/pkg/install/doinst.sh

didnt work....I just did the install from iso on hdd again with new slim.txz and it still makes a rc.4.new:(

ponce 02-04-2010 01:11 PM

strange.
just a suggestion: maybe is better to ask about it on salix forums...

linus72 02-04-2010 01:13 PM

I wanna get this little iso uploaded today, and hope to overcome this seemingly small issue...

I replaced GDM on all my installs across 3 PC's and like 15 partitions with just Slim
SalixOS on 2 pcs now has slim vs gdm
got rid of gdm/xdm in my absolute installs too

I even run all my buntu's and debians with slim now:)

linus72 02-04-2010 01:14 PM

What package in slack holds the original rc.4 script?
is it in the initrd?
no...

what package installs rc.d?

gapan 02-04-2010 01:15 PM

Quote:

Originally Posted by linus72 (Post 3852804)
Gapan, its impossible to do it in a bash prompt
this is an install cd, at initial boot after installing it's gonna hit runlevel 4 and cink out as my rc.4 is being named rc.4.new and not overwriting the original...

You never mentioned you wanted to put it in a CD! In that case it won't work of course. You'll need to recreate the package, by editing the SLKBUILD file like this:
Code:

#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=slim
pkgver=1.3.1
pkgrel=1gv
arch=i486
source=slim-1.3.1.tar.gz
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "themes")
options=('noautodotnew')
dotnew=('etc/slim.conf')

url=http://slim.berlios.de/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"slim - Simple Login Manager"
"SLiM is a Desktop-independent graphical login manager for X11, derived"
"from Login.app. It aims to be light and simple, although completely"
"configurable through themes and an option file; is suitable for"
"machines on which remote login functionalities are not needed."
)


build() {
        cd $startdir/src/$pkgname-$pkgver
        sed -i "s/CFLAGS=/CFLAGS+= /" Makefile
        make || return 1
        make install DESTDIR=$startdir/pkg
        THEMES="icelite"
        for i in $THEMES; do
                cp -a $startdir/src/$i $startdir/pkg/usr/share/slim/themes
        done
        chown -R root:root $startdir/pkg/usr/share/slim/themes
        sed -i "s/current_theme\(.*\)/current_theme icelite/" $startdir/pkg/etc/slim.conf
}

You'll need to install slkbuild of course in order build the package using that SLKBUILD: http://download.salixos.org/i486/13....noarch-1gv.txz
Just install that, edit your SLKBUILD file and run slkbuild -X in the same directory.

linus72 02-04-2010 01:18 PM

OK
wait... I'm building the package from salix source for slim in SalixOS Gapan
so slkbuild is installed

that little command above will do what Gapan?

gapan 02-04-2010 01:19 PM

That will build your package, using the SLKBUILD file present in the same directory. man slkbuild for more.

linus72 02-04-2010 01:20 PM

oh I see....ok Ill try another absolute-lite install
sda8 your gettin it again:)

linus72 02-04-2010 01:22 PM

NO
again when it builds it the output is saying slim.conf.new and rc.4.new
so its not working or what?

gapan 02-04-2010 01:23 PM

Can you please show me the SLKBUILD file you're using?

linus72 02-04-2010 01:25 PM

OK

heres the slkbuild I just edited as you and ponce said and it failed

Code:

#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=slim
pkgver=1.3.1
pkgrel=1gv
arch=i486
source=slim-1.3.1.tar.gz
sourcetemplate=
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "themes")
options=('noautodotnew')
dotnew=('etc/slim.conf')
url=http://slim.berlios.de/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"slim - Simple Login Manager"
"SLiM is a Desktop-independent graphical login manager for X11, derived"
"from Login.app. It aims to be light and simple, although completely"
"configurable through themes and an option file; is suitable for"
"machines on which remote login functionalities are not needed."
)


build() {
        cd $startdir/src/$pkgname-$pkgver
        sed -i "s/CFLAGS=/CFLAGS+= /" Makefile
        make || return 1
        make install DESTDIR=$startdir/pkg
        THEMES="icelite"
        for i in $THEMES; do
                cp -a $startdir/src/$i $startdir/pkg/usr/share/slim/themes
        done
        chown -R root:root $startdir/pkg/usr/share/slim/themes
        sed -i "s/current_theme\(.*\)/current_theme icelite/" $startdir/pkg/etc/slim.conf
        echo "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" >> $startdir/pkg/install/doinst.sh
}


linus72 02-04-2010 01:27 PM

Heres where the build failed

Code:

test -e /root/Desktop/SLIM/nubuild/pkg/etc/slim.conf || \
                install -D -m 644 slim.conf /root/Desktop/SLIM/nubuild/pkg/etc/slim.conf && install -D -m 644 rc.4 /root/Desktop/SLIM/nubuild/pkg/etc/rc.d/rc.4
cp: cannot stat `/root/Desktop/SLIM/nubuild/src/icelite': No such file or directory
./build-slim.sh: line 180: /root/Desktop/SLIM/nubuild/pkg/install/doinst.sh: No such file or directory
build() failed.

why use the SLKBUILD if build-slim.sh also came with it?

ponce 02-04-2010 01:28 PM

I repeat, I don't know salix buildscript, but I think you don't need my line there with
Code:

options=('noautodotnew')
also, reading this
Code:

cp: cannot stat `/root/Desktop/SLIM/nubuild/src/icelite': No such file or directory
I think you need icelite theme is src folder.

linus72 02-04-2010 01:34 PM

I'm giving up on this one I think
now the build-slim.sh, which was working, now also quits

both the SLKBUILD and build-slim.sh "create a src and pkg folder, not me
all my stuff is in slim-1.3.1 folder which i make into tar.gz and then run build.sh whatever...
shit

I just waan replace the damn rc.4 thats it!

gapan 02-04-2010 01:36 PM

Well, of course it fails. Do you notice an mv line in my SLKBUILD? You also have to provide sources in the source line, which you stripped for no reason. Use something like this:
Code:

#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=slim
pkgver=1.3.1
pkgrel=1gv
arch=i486
source=("http://download.berlios.de/slim/slim-1.3.1.tar.gz" "rc.4" "icelite.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "themes")
options=('noautodotnew')
dotnew=('etc/slim.conf')
url=http://slim.berlios.de/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"slim - Simple Login Manager"
"SLiM is a Desktop-independent graphical login manager for X11, derived"
"from Login.app. It aims to be light and simple, although completely"
"configurable through themes and an option file; is suitable for"
"machines on which remote login functionalities are not needed."
)


build() {
        cd $startdir/src/$pkgname-$pkgver
        sed -i "s/CFLAGS=/CFLAGS+= /" Makefile
        make || return 1
        make install DESTDIR=$startdir/pkg
        THEMES="icelite"
        for i in $THEMES; do
                cp -a $startdir/src/$i $startdir/pkg/usr/share/slim/themes
        done
        chown -R root:root $startdir/pkg/usr/share/slim/themes
        sed -i "s/current_theme\(.*\)/current_theme icelite/" $startdir/pkg/etc/slim.conf
        mkdir -p $startdir/pkg/etc/rc.d
        cp $startdir/src/rc.4 $startdir/pkg/etc/rc.d/
}

Make sure the theme's filename is icelite.tar.gz and it extracts to a directory named "icelite", or change the source line near the top and the cp -a line in the for loop (which is not needed if you only have one theme by the way).

linus72 02-04-2010 01:41 PM

OK
I'm about as good with bash,whatver as I am with html, so...

I'm gettin more confused by the moment

Anyway I could just give you my source Gapan and you do it??

gapan 02-04-2010 01:45 PM

I could, but how would you learn anything like that? ;) If you read my previous post carefully, I'm sure you'll find the way to do it eventually.

And another way to accomplish what you want, which is also a lot cleaner, is leave the slim package with no rc.4 script at all, and rebuild the sysvinit-scripts package with your edited rc.4. Here's the source from slackware: ftp://ftp.ntua.gr/pub/linux/slackwar...vinit-scripts/

linus72 02-04-2010 01:45 PM

Damnit
running the SLKBUILD overwrites the build-slim.sh does it?
there went 3 hours of work...

gapan 02-04-2010 01:46 PM

Quote:

Originally Posted by linus72 (Post 3852871)
Damnit
running the SLKBUILD overwrites the build-slim.sh does it?
there went 3 hours of work...

LOL, of course it does. :D

Code:

man slkbuild
man SLKBUILD

for more.

linus72 02-04-2010 01:46 PM

Gapan I have been asking what pkg holds rc.d,
Thank you as all I need to cxhange is the stupid rc.4 script

I'll try it though with my build-slim.sh now vaporized/changed I'm back at square1
maybe I'll try later

linus72 02-04-2010 01:55 PM

OK

so, now how do I build that sysvinit stuff?
./configure,etc or what?

LOL
I just tried ./sysvinit-scripts.SlackBuild
and of course it failed

Code:

root[SYS]# ls
doinst.sh.gz                  rc.6        rc.local            sysvinit-scripts.SlackBuild
fetch-rescan-scsi-bus.sh  rc.K        rc.sysvinit
inittab                          rc.M        rescan-scsi-bus.sh
rc.4                          rc.S        slack-desc

root[SYS]# ./sysvinit-scripts.SlackBuild
bash: ./sysvinit-scripts.SlackBuild: Permission denied
root[SYS]# chmod +x sysvinit-scripts.SlackBuild
root[SYS]# ./sysvinit-scripts.SlackBuild
cp: cannot stat `/root/Desktop/SLIM/nubuild/SYS/scripts/rc.4': No such file or directory
chmod: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.4.new': No such file or directory
chown: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.4.new': No such file or directory
cp: cannot stat `/root/Desktop/SLIM/nubuild/SYS/scripts/rc.6': No such file or directory
chmod: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.6.new': No such file or directory
chown: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.6.new': No such file or directory
cp: cannot stat `/root/Desktop/SLIM/nubuild/SYS/scripts/rc.K': No such file or directory
chmod: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.K.new': No such file or directory
chown: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.K.new': No such file or directory
cp: cannot stat `/root/Desktop/SLIM/nubuild/SYS/scripts/rc.M': No such file or directory
chmod: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.M.new': No such file or directory
chown: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.M.new': No such file or directory
cp: cannot stat `/root/Desktop/SLIM/nubuild/SYS/scripts/rc.S': No such file or directory
chmod: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.S.new': No such file or directory
chown: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.S.new': No such file or directory
cp: cannot stat `/root/Desktop/SLIM/nubuild/SYS/scripts/rc.local': No such file or directory
chmod: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.local.new': No such file or directory
chown: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.local.new': No such file or directory
cp: cannot stat `/root/Desktop/SLIM/nubuild/SYS/scripts/rc.sysvinit': No such file or directory
chmod: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.sysvinit.new': No such file or directory
chown: cannot access `/tmp/package-sysvinit-scripts/etc/rc.d/rc.sysvinit.new': No such file or directory
cat: /root/Desktop/SLIM/nubuild/SYS/scripts/inittab: No such file or directory
cat: /root/Desktop/SLIM/nubuild/SYS/scripts/rescan-scsi-bus.sh: No such file or directory

Slackware package maker, version 3.14159.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /tmp/sysvinit-scripts-1.2-noarch-30.txz

./
install/
install/slack-desc
install/doinst.sh
etc/
etc/rc.d/
etc/inittab.new
sbin/
sbin/rescan-scsi-bus
WARNING:  zero length file etc/inittab.new
WARNING:  zero length file sbin/rescan-scsi-bus

Slackware package /tmp/sysvinit-scripts-1.2-noarch-30.txz created.


gapan 02-04-2010 02:02 PM

You need to get everything from that source directory, including the scripts directory with every file in it.

linus72 02-04-2010 02:04 PM

I did, but I put it all in one folder

I have to recreate it as it is on website?

gapan 02-04-2010 02:05 PM

Of course you have! Anyway, you can safely use the sysvinit-scripts package from salix: http://download.salixos.org/i486/13....oarch-15gv.txz
it already has support for slim.

linus72 02-04-2010 02:09 PM

your a funny guy Gapan

Thank you, brother

it built successfully this time
I'm gonna use the salix sysvinit..

knudfl 02-04-2010 02:51 PM

Quote:

what slack pkg has the /etc/rc.d/* folder ??
grep "/etc/rc.d" /var/log/packages/*

> >
sysvinit-functions-8.53-i486-2
sysvinit-scripts-1.2-noarch-30

.....

linus72 02-04-2010 03:19 PM

They told me I had to go back to rehab...I said NO! NO! NO!
LOL

It worked!

Absolute-Lite is born!

Thanks Ponce, Gapan, Knudfl and everybody!

I gotta now edit the package list for what i removed or is there a way to automate that?

iso is 379MB installed size is 2.0GB
I can get it down farther too I know:)


All times are GMT -5. The time now is 12:03 AM.