LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-04-2010, 01:20 PM   #31
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470

oh I see....ok Ill try another absolute-lite install
sda8 your gettin it again
 
Old 02-04-2010, 01:22 PM   #32
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
NO
again when it builds it the output is saying slim.conf.new and rc.4.new
so its not working or what?
 
Old 02-04-2010, 01:23 PM   #33
gapan
Member
 
Registered: Feb 2007
Posts: 378

Rep: Reputation: 163Reputation: 163
Can you please show me the SLKBUILD file you're using?
 
1 members found this post helpful.
Old 02-04-2010, 01:25 PM   #34
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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
}
 
Old 02-04-2010, 01:27 PM   #35
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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?
 
Old 02-04-2010, 01:28 PM   #36
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
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.
Old 02-04-2010, 01:34 PM   #37
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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!
 
Old 02-04-2010, 01:36 PM   #38
gapan
Member
 
Registered: Feb 2007
Posts: 378

Rep: Reputation: 163Reputation: 163
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.
Old 02-04-2010, 01:41 PM   #39
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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??
 
Old 02-04-2010, 01:45 PM   #40
gapan
Member
 
Registered: Feb 2007
Posts: 378

Rep: Reputation: 163Reputation: 163
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.
Old 02-04-2010, 01:45 PM   #41
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Damnit
running the SLKBUILD overwrites the build-slim.sh does it?
there went 3 hours of work...
 
Old 02-04-2010, 01:46 PM   #42
gapan
Member
 
Registered: Feb 2007
Posts: 378

Rep: Reputation: 163Reputation: 163
Quote:
Originally Posted by linus72 View Post
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.
Old 02-04-2010, 01:46 PM   #43
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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
 
Old 02-04-2010, 01:55 PM   #44
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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.
 
Old 02-04-2010, 02:02 PM   #45
gapan
Member
 
Registered: Feb 2007
Posts: 378

Rep: Reputation: 163Reputation: 163
You need to get everything from that source directory, including the scripts directory with every file in it.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with package installs Bodrey Linux - Newbie 3 12-19-2009 10:47 PM
Urpmi package installs are failing iiibbb Mandriva 3 10-26-2006 09:06 AM
Which package installs what RPMS? unixgoose Fedora 3 05-25-2006 07:52 AM
Package not finishing installs jumper220 Fedora - Installation 1 04-02-2004 09:34 PM
package installs... mathfeel Fedora 4 12-01-2003 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration