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 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.


All times are GMT -5. The time now is 01:12 PM.