From cfdd17965ede1a85cc6c3e80e94b03e2e6244a85 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 5 Mar 2009 07:03:44 +0100 Subject: [PATCH] Added sysvinit-2.86 template. --HG-- extra : convert_revision : 653417285eacee491da7eb8da0101585e6889437 --- templates/sysvinit/template | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 templates/sysvinit/template diff --git a/templates/sysvinit/template b/templates/sysvinit/template new file mode 100644 index 00000000000..7fe7bae1a6e --- /dev/null +++ b/templates/sysvinit/template @@ -0,0 +1,36 @@ +# Template file for 'sysvinit' +pkgname=sysvinit +version=2.86 +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 " +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 + +do_install() +{ + local destdir=$XBPS_DESTDIR/$pkgname-$version + + mkdir -p ${destdir}/bin ${destdir}/sbin + mkdir -p ${destdir}/usr/bin ${destdir}/usr/include + mkdir -p ${destdir}/usr/share/man/man1 + mkdir -p ${destdir}/usr/share/man/man5 + mkdir -p ${destdir}/usr/share/man/man8 + + 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/' \ + $wrksrc/src/init.c + + cd $wrksrc && make -C src && \ + make -C src MANDIR=/usr/share/man ROOT=${destdir} install +}