void-packages/templates/initscripts/template
Juan RP d7c27e8ab2 initscripts: depend on dhcpcd and use it if requested.
--HG--
extra : convert_revision : 49f1ce13ae5f51c0d4348500915069e8077aa355
2009-03-06 08:19:05 +01:00

46 lines
1.3 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
Add_dependency full dhcpcd
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
}