void-packages/srcpkgs/sysvinit/template
Juan RP 85cc462e1d Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
2009-11-22 08:31:44 +01:00

35 lines
1 KiB
Plaintext

# 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 <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
do_install()
{
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
}