# $Id: PKGBUILD 92996 2010-10-02 19:26:38Z eric $ # Maintainer: Eric Belanger # Contributor: judd pkgname=sysvinit pkgver=2.88 pkgrel=6 pkgdesc="Linux System V Init" arch=('i686' 'x86_64') url="http://savannah.nongnu.org/projects/sysvinit" license=('GPL') groups=('base') depends=('shadow' 'util-linux' 'coreutils' 'glibc' 'awk' 'poweroff-scripts') source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgname}-${pkgver}dsf.tar.bz2 halt-init.patch) build() { cd "${srcdir}/${pkgname}-${pkgver}dsf" patch -p0 < ${srcdir}/halt-init.patch make || return 1 } package() { cd "${srcdir}/${pkgname}-${pkgver}dsf" make ROOT="${pkgdir}" install # Rename some stuff so it does not bigfoot changes needed for runit cd "${pkgdir}/sbin" rm -f reboot poweroff #These will be created in the poweroff-scripts post-install section #This should be removed when moving to 64 and we have no legacy to worry about #ln -s halt.init reboot.init #ln -s halt.init poweroff.init mv halt halt.init mv shutdown shutdown.init } md5sums=('6eda8a97b86e0a6f59dabbf25202aa6f' 'cd4c5767f63ca5881e3e1f1c4f10f896')