#Packager: Dimitris Tzemos <dijemos~at~gmail~dot~com>

pkgname=sysvinit-scripts
pkgver=15.0
pkgrel=2dj
arch=noarch
source=(scripts.tar.xz)
dotnew=(
		'etc/inittab'
		'etc/rc.d/rc.local'
		'etc/rc.d/rc.local_shutdown'
		'etc/rc.d/rc.modules.local'
		'etc/default/cpufreq'
		)
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

	cp -r default $startdir/pkg/etc/

	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
	)
} 
