summaryrefslogtreecommitdiff
path: root/core/sysvinit-tools/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/sysvinit-tools/PKGBUILD')
-rw-r--r--core/sysvinit-tools/PKGBUILD39
1 files changed, 16 insertions, 23 deletions
diff --git a/core/sysvinit-tools/PKGBUILD b/core/sysvinit-tools/PKGBUILD
index a576e6a05..4dc356e74 100644
--- a/core/sysvinit-tools/PKGBUILD
+++ b/core/sysvinit-tools/PKGBUILD
@@ -1,10 +1,11 @@
-# $Id: PKGBUILD 187044 2013-06-03 11:15:38Z allan $
+# $Id: PKGBUILD 197264 2013-10-24 20:11:17Z dreisner $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Maintainer: Eric Belanger <eric@archlinux.org>
pkgname=sysvinit-tools
+pkgdesc="Linux System V Init Tools"
pkgver=2.88
-pkgrel=11
+pkgrel=12
arch=('i686' 'x86_64' 'mips64el')
url="http://savannah.nongnu.org/projects/sysvinit"
license=('GPL')
@@ -17,33 +18,25 @@ sha1sums=('f2ca149df1314a91f3007cccd7a0aa47d990de26'
'bbecfa7dfa45ac7c37ed8ac59fb53f6a85064b32')
build() {
- cd "${srcdir}/sysvinit-${pkgver}dsf"
+ cd "$srcdir/sysvinit-${pkgver}dsf"
# FS#30005
patch -p1 -d "src" -i "${srcdir}/0001-simplify-writelog.patch"
patch -p1 -d "src" -i "${srcdir}/0002-remove-ansi-escape-codes-from-log-file.patch"
- make
+ # only build what we need...
+ make -C src fstab-decode killall5 bootlogd
}
package() {
- pkgdesc="Linux System V Init Tools"
-
- cd "${srcdir}/sysvinit-${pkgver}dsf"
- make ROOT="${pkgdir}" install
-
- cd "${pkgdir}"
- ### drop the stuff provided by systemd-sysvcompat and util-linux
- rm -r usr/share/man/man5
- rm -r usr/include
- rm bin/mountpoint
- rm sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit,sulogin}
- rm usr/bin/{mesg,utmpdump,wall}
- rm usr/share/man/man1/{mountpoint,mesg,utmpdump,wall}.1
- rm usr/share/man/man8/{halt,init,poweroff,reboot,runlevel,shutdown,telinit,sulogin}.8
- ### usrmerge
- mv sbin/* usr/bin/
- rm -r sbin
- mv bin/* usr/bin/
- rm -r bin
+ cd "$srcdir/sysvinit-${pkgver}dsf"
+
+ install -dm755 "$pkgdir/usr/bin" "$pkgdir/usr/share/man/man8"
+
+ # binaries
+ install -m755 src/{fstab-decode,killall5,bootlogd} "$pkgdir/usr/bin"
+ ln -s killall5 "$pkgdir/usr/bin/pidof"
+
+ # manpages
+ install -m644 man/{bootlogd,pidof,killall5,fstab-decode}.8 "$pkgdir/usr/share/man/man8"
}