diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-12 09:08:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-12 09:08:00 +0200 |
commit | cb37183210033a201ecae19427f47e3985239b57 (patch) | |
tree | 5653031ed5c8fd06753877e0239b9b031890f28f /sysvinit/PKGBUILD | |
parent | adopt emacs-scala-mode (diff) | |
download | aur-packages-cb37183210033a201ecae19427f47e3985239b57.tar.gz aur-packages-cb37183210033a201ecae19427f47e3985239b57.tar.bz2 aur-packages-cb37183210033a201ecae19427f47e3985239b57.tar.xz |
patch sysvinit for arch linux
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | sysvinit/PKGBUILD | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sysvinit/PKGBUILD b/sysvinit/PKGBUILD index fb73f35..47161e1 100644 --- a/sysvinit/PKGBUILD +++ b/sysvinit/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> pkgname=sysvinit pkgver=2.88 -pkgrel=11 +pkgrel=12 pkgdesc='Linux System V Init' url='http://savannah.nongnu.org/projects/sysvinit' arch=('i686' 'x86_64') @@ -20,6 +20,18 @@ build() cd "$srcdir/$pkgname-${pkgver}dsf" 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" + + # Patch for Arch's Linux filesystem hierarchy + if [ "$(grep 'execv("/sbin/mount", args);' < src/killall5.c | wc -l)" = 1 ]; then + sed -i 's:execv("/bin/mount", args);::' src/killall5.c + fi + sed -i 's|/bin:/sbin:/usr/bin:/usr/sbin|/usr/bin|' src/initscript.sample src/init.h src/shutdown.c + sed -i 's|/sbin:/usr/sbin:/bin:/usr/bin|/usr/bin|' src/initscript.sample src/init.h src/shutdown.c + sed -i 's|/bin:/usr/bin:/sbin:/usr/sbin|/usr/bin|' src/initscript.sample src/init.h src/shutdown.c + sed -i 's:/sbin/:/bin/:g' contrib/notify-pam-dead.patch man/*.{1,5,8} src/*.{c,h} src/initscript.sample + sed -i 's:/bin/:/usr/bin/:g' contrib/notify-pam-dead.patch man/*.{1,5,8} src/*.{c,h} src/initscript.sample + sed -i 's:/usr/usr/:/usr/:g' contrib/notify-pam-dead.patch man/*.{1,5,8} src/*.{c,h} src/initscript.sample + make } |