In slack 13; what package installs /etc/rc.d/rc.4 script?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
}
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?
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
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).
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/
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.