diff options
author | James Meyer <james.meyer@operamail.com> | 2012-12-07 15:13:05 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-12-07 15:13:05 (GMT) |
commit | fdcaaa06579bd80991f3a5343d7262667548c8f6 (patch) | |
tree | dfab2826116aa748b2778819f261aa3d47b95d9d /abs/core/sysvinit/PKGBUILD | |
parent | 114dd42e54b42258e90d2783d6c4fc5e0f25a8d6 (diff) | |
download | linhes_pkgbuild-fdcaaa06579bd80991f3a5343d7262667548c8f6.zip linhes_pkgbuild-fdcaaa06579bd80991f3a5343d7262667548c8f6.tar.gz linhes_pkgbuild-fdcaaa06579bd80991f3a5343d7262667548c8f6.tar.bz2 |
sysvinit: split into tools and init. Only needed to stay current with archlinux in case some body actually wants to use systemd
Diffstat (limited to 'abs/core/sysvinit/PKGBUILD')
-rw-r--r-- | abs/core/sysvinit/PKGBUILD | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/abs/core/sysvinit/PKGBUILD b/abs/core/sysvinit/PKGBUILD index 27d5a09..f5aeb5e 100644 --- a/abs/core/sysvinit/PKGBUILD +++ b/abs/core/sysvinit/PKGBUILD @@ -1,23 +1,21 @@ -# $Id: PKGBUILD 162726 2012-06-29 06:27:09Z bluewind $ +# $Id: PKGBUILD 168539 2012-10-13 09:28:52Z thomas $ # Maintainer: Eric Belanger <eric@archlinux.org> -pkgname=sysvinit +pkgbase=sysvinit +pkgname=('sysvinit-tools' 'sysvinit' ) pkgver=2.88 -pkgrel=6 -pkgdesc="Linux System V Init" +pkgrel=9 arch=('i686' 'x86_64') url="http://savannah.nongnu.org/projects/sysvinit" license=('GPL') -groups=('base') depends=('util-linux' 'coreutils' 'glibc' 'awk' 'poweroff-scripts') -install=sysvinit.install -source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgname}-${pkgver}dsf.tar.bz2 +source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgbase}-${pkgver}dsf.tar.bz2 "0001-simplify-writelog.patch" "0002-remove-ansi-escape-codes-from-log-file.patch" "halt_init.patch") build() { - cd "${srcdir}/${pkgname}-${pkgver}dsf" + cd "${srcdir}/${pkgbase}-${pkgver}dsf" # FS#30005 patch -p1 -d "src" -i "${srcdir}/0001-simplify-writelog.patch" @@ -26,24 +24,42 @@ build() { make } -package() { - cd "${srcdir}/${pkgname}-${pkgver}dsf" +package_sysvinit-tools() { + pkgdesc="Linux System V Init Tools" + depends=('poweroff-scripts') + cd "${srcdir}/${pkgbase}-${pkgver}dsf" make ROOT="${pkgdir}" install - # mountpoint is now provided by util-linux instead + # provided by util-linux cd "${pkgdir}" rm bin/mountpoint rm usr/share/man/man1/mountpoint.1 + rm usr/bin/{mesg,utmpdump,wall} + rm usr/share/man/man1/{mesg,utmpdump,wall}.1 + rm sbin/sulogin + rm usr/share/man/man8/sulogin.8 + ### split out sysvinit + rm -rf ${srcdir}/_sysvinit + install -dm755 \ + ${srcdir}/_sysvinit/sbin \ + ${srcdir}/_sysvinit/usr/share/man/man8 + cd ${srcdir}/_sysvinit + mv ${pkgdir}/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} sbin/ + mv ${pkgdir}/usr/share/man/man5 usr/share/man/ + mv ${pkgdir}/usr/share/man/man8/{halt,init,poweroff,reboot,runlevel,shutdown,telinit}.8 usr/share/man/man8/ +} + +package_sysvinit() { + pkgdesc="Linux System V Init" + depends=('sysvinit-tools') + install=sysvinit.install # Rename some stuff so it does not bigfoot changes needed for runit - cd "${pkgdir}/sbin" + cd "${srcdir}/_sysvinit/sbin" rm -f reboot poweroff mv halt halt.init mv shutdown shutdown.init - - - - + mv "${srcdir}"/_sysvinit/* $pkgdir } md5sums=('6eda8a97b86e0a6f59dabbf25202aa6f' 'e3e82a3a38415518f52f78a622ef0262' |