void-packages/templates/initscripts/template
Juan RP ed07259681 Added initscripts-2009.01 template.
This package contains all files required for booting the lsXL
linux system built through xbps.

Currently it uses the NetBSD rc.d(8) system, sysvinit and
modified BSD style scripts modified from Arch linux.

--HG--
extra : convert_revision : 4584be26dd672ba33f9b1d76534a22d4715664ea
2009-03-06 05:17:46 +01:00

45 lines
1.2 KiB
Text

# Template file for 'initscripts'
pkgname=initscripts
version=2009.01
build_style=custom-install
short_desc="xbps base system init scripts"
maintainer="Juan RP <xtraeme@gmail.com>"
long_desc="
This package installs the xbps base init scripts, used for booting
the system and starting/stopping services.
The scripts use the BSD style and contain portions from Arch Linux and
from NetBSD."
noarch=yes
conf_files="/etc/inittab /etc/rc.conf /etc/rc.local /etc/rc.local.shutdown"
keep_dirs="/etc/rc.d /etc/rc.conf.d"
Add_dependency full glibc
Add_dependency full bash
Add_dependency full gawk
Add_dependency full grep
Add_dependency full coreutils
Add_dependency full sed
Add_dependency full udev
Add_dependency full kbd
Add_dependency full findutils
Add_dependency full net-tools
Add_dependency full rcorder
Add_dependency full minilogd
do_install()
{
local destdir=$XBPS_DESTDIR/$pkgname-$version
local filesdir=$XBPS_TEMPLATESDIR/$pkgname/files
install -d ${destdir}/etc/rc.d
install -d ${destdir}/etc/rc.conf.d
install -d ${destdir}/etc/defaults
for f in inittab rc.*; do
install -m755 ${filesdir}/${f} ${destdir}/etc
done
install -m644 ${filesdir}/defaults/rc.conf ${destdir}/etc/defaults
install -m755 ${filesdir}/rc.d/* ${destdir}/etc/rc.d
}