diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-03-23 11:58:01 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-03-23 11:58:01 -0300 |
commit | 1988c77fae4e3c3e762d1d361249e21622f548cf (patch) | |
tree | 5c0b658d83f23533b7c43758468b5282cd1ead68 /pcr/sysvinit/PKGBUILD | |
parent | 5333f9d3db9e5e7a174d4028107246338c1094eb (diff) | |
parent | 63dda12e2f3cdba9df1605f8ca845bf3ffcf416f (diff) | |
download | abslibre-1988c77fae4e3c3e762d1d361249e21622f548cf.tar.gz abslibre-1988c77fae4e3c3e762d1d361249e21622f548cf.tar.bz2 abslibre-1988c77fae4e3c3e762d1d361249e21622f548cf.zip |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/sysvinit/PKGBUILD')
-rw-r--r-- | pcr/sysvinit/PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pcr/sysvinit/PKGBUILD b/pcr/sysvinit/PKGBUILD new file mode 100644 index 000000000..b19798b5b --- /dev/null +++ b/pcr/sysvinit/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer : freaj <freaj@riseup.net> +# Maintainer (Manjaro): artoo <artoo@manjaro.org> +# Contributor (Manjaro): Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=sysvinit +pkgver=2.88 +pkgrel=16 +pkgdesc='Linux System V Init' +url='http://savannah.nongnu.org/projects/sysvinit' +arch=('i686' 'x86_64' 'armv6h') +license=('GPL') +depends=('glibc') +conflicts=('systemd-sysvcompat') + +source=("http://download.savannah.gnu.org/releases/sysvinit/sysvinit-${pkgver}dsf.tar.bz2" + "0001-simplify-writelog.patch" "0002-remove-ansi-escape-codes-from-log-file.patch" + "0001-do-not-build-sulogin-on-archlinux-it-is-provided-by-.patch") +sha256sums=('60bbc8c1e1792056e23761d22960b30bb13eccc2cabff8c7310a01f4d5df1519' + '8126d09a35bdb9137bb19dc31b58cf1e829137fba34f7dcde7598018e1736826' + '90d38e4351ef9d77088661b411eb2b20eda435676e1e407f3d959ca2064d5c1e' + '43fed9d36b92f15bcdbde6ba2a2784a57115562795942c09dd33ff37a51cb138') + +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 -p1 -i "$srcdir/0001-do-not-build-sulogin-on-archlinux-it-is-provided-by-.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 DISTRO=archlinux +} + +package() +{ + cd "$srcdir/$pkgname-${pkgver}dsf" + mkdir -p "$pkgdir/__temp__" + make DISTRO=archlinux ROOT="$pkgdir/__temp__" install + cd "$pkgdir/__temp__" + rm -r bin usr/bin usr/share/man/man?/{mesg,utmpdump,wall,last,pidof}.? usr/share/man/man1 + find . | while read file; do + if [ -d "$file" ]; then + mkdir -p ".$file" + else + cp "$file" ".$file" + fi + done + cd .. + rm -r "__temp__" + mv "$pkgdir/sbin" "$pkgdir/usr/bin" +} + |