Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-04-2010, 01:20 PM
|
#31
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
oh I see....ok Ill try another absolute-lite install
sda8 your gettin it again 
|
|
|
|
02-04-2010, 01:22 PM
|
#32
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
NO
again when it builds it the output is saying slim.conf.new and rc.4.new
so its not working or what?
|
|
|
|
02-04-2010, 01:23 PM
|
#33
|
|
Member
Registered: Feb 2007
Posts: 337
Rep: 
|
Can you please show me the SLKBUILD file you're using?
|
|
|
1 members found this post helpful.
|
02-04-2010, 01:25 PM
|
#34
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
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
}
|
|
|
|
02-04-2010, 01:27 PM
|
#35
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
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?
|
|
|
|
02-04-2010, 01:28 PM
|
#36
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,983
|
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.
Last edited by ponce; 02-04-2010 at 01:31 PM.
|
|
|
1 members found this post helpful.
|
02-04-2010, 01:34 PM
|
#37
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
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!
|
|
|
|
02-04-2010, 01:36 PM
|
#38
|
|
Member
Registered: Feb 2007
Posts: 337
Rep: 
|
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).
|
|
|
1 members found this post helpful.
|
02-04-2010, 01:41 PM
|
#39
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
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??
|
|
|
|
02-04-2010, 01:45 PM
|
#40
|
|
Member
Registered: Feb 2007
Posts: 337
Rep: 
|
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/
|
|
|
1 members found this post helpful.
|
02-04-2010, 01:45 PM
|
#41
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
Damnit
running the SLKBUILD overwrites the build-slim.sh does it?
there went 3 hours of work...
|
|
|
|
02-04-2010, 01:46 PM
|
#42
|
|
Member
Registered: Feb 2007
Posts: 337
Rep: 
|
Quote:
Originally Posted by linus72
Damnit
running the SLKBUILD overwrites the build-slim.sh does it?
there went 3 hours of work...
|
LOL, of course it does.
Code:
man slkbuild
man SLKBUILD
for more.
|
|
|
1 members found this post helpful.
|
02-04-2010, 01:46 PM
|
#43
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
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
|
|
|
|
02-04-2010, 01:55 PM
|
#44
|
|
Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057
Original Poster
|
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.
|
|
|
|
02-04-2010, 02:02 PM
|
#45
|
|
Member
Registered: Feb 2007
Posts: 337
Rep: 
|
You need to get everything from that source directory, including the scripts directory with every file in it.
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:35 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|