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

pkgname=sysvinit-scripts
pkgver=13.37
pkgrel=3gv
arch=noarch
source=(scripts.tar.gz)
dotnew=('etc/inittab' 'etc/rc.d/rc.local' 'etc/rc.d/rc.local_shutdown')
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"sysvinit-scripts (the basic scripts used to boot your machine)"
"These are the Slackware boot scripts, which are needed to start the"
"machine.  Sysvinit looks for these in /etc/rc.d/."
)


build() {
	cd $startdir/src/scripts
	mkdir -p $startdir/pkg/etc/rc.d
	cp rc.d/rc.* $startdir/pkg/etc/rc.d/
	chmod 755 $startdir/pkg/etc/rc.d/rc.*
	
	cp inittab $startdir/pkg/etc/
	chmod 644 $startdir/pkg/etc/inittab
	
	cp shell-colors $startdir/pkg/etc/
	chmod 755 $startdir/pkg/etc/shell-colors

	mkdir -p $startdir/pkg/etc/cron.daily
	cp cron/housekeeping $startdir/pkg/etc/cron.daily/
	chmod 755 $startdir/pkg/etc/cron.daily/housekeeping

	mkdir -p $startdir/pkg/sbin
	cp rescan-scsi-bus.sh $startdir/pkg/sbin/rescan-scsi-bus
	chmod 755 $startdir/pkg/sbin/rescan-scsi-bus

	(
	cd $startdir/pkg/etc/rc.d
	ln -sf rc.6 rc.0
	)
}