2009-03-05 06:03:44 +00:00
|
|
|
# Template file for 'sysvinit'
|
|
|
|
pkgname=sysvinit
|
|
|
|
version=2.86
|
2009-12-05 06:43:13 +00:00
|
|
|
revision=1
|
2009-03-05 06:03:44 +00:00
|
|
|
distfiles="
|
|
|
|
ftp://ftp.cistron.nl/pub/people/miquels/$pkgname/$pkgname-$version.tar.gz"
|
|
|
|
build_style=custom-install
|
|
|
|
short_desc="Linux System V Init"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
checksum=035f98fae17d9cff002993c564ccc83dc4ed136127172caeff872b6abdb679d8
|
|
|
|
long_desc="
|
|
|
|
System V style init programs for booting a GNU/Linux system."
|
|
|
|
|
|
|
|
Add_dependency full glibc
|
|
|
|
Add_dependency full shadow
|
|
|
|
Add_dependency full util-linux-ng
|
|
|
|
Add_dependency full coreutils
|
|
|
|
Add_dependency full gawk
|
|
|
|
|
2010-01-16 02:43:35 +00:00
|
|
|
do_build()
|
2009-03-05 06:03:44 +00:00
|
|
|
{
|
2010-01-16 02:43:35 +00:00
|
|
|
cd ${wrksrc} || return 1
|
2009-03-05 06:03:44 +00:00
|
|
|
sed -i -e 's/utmpdump wall/utmpdump/' \
|
|
|
|
-e 's/mountpoint.1 wall.1/mountpoint.1/' src/Makefile
|
|
|
|
sed -i 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
|
2010-01-16 02:43:35 +00:00
|
|
|
src/init.c
|
|
|
|
make -C src || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
cd ${wrksrc} || return 1
|
|
|
|
|
|
|
|
install -d ${DESTDIR}/bin ${DESTDIR}/sbin \
|
|
|
|
${DESTDIR}/usr/bin ${DESTDIR}/usr/include \
|
|
|
|
${DESTDIR}/usr/share/man/man1 \
|
|
|
|
${DESTDIR}/usr/share/man/man5 \
|
|
|
|
${DESTDIR}/usr/share/man/man8
|
2009-03-05 06:03:44 +00:00
|
|
|
|
2010-01-16 02:43:35 +00:00
|
|
|
make -C src MANDIR=/usr/share/man ROOT=${DESTDIR} install
|
2009-12-05 06:43:13 +00:00
|
|
|
# Remove unneeded stuff
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
2009-03-05 06:03:44 +00:00
|
|
|
}
|