summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/sysvinit/PKGBUILD37
-rw-r--r--abs/core/sysvinit/sysvinit.install3
2 files changed, 22 insertions, 18 deletions
diff --git a/abs/core/sysvinit/PKGBUILD b/abs/core/sysvinit/PKGBUILD
index 6fbb3cd..56d779f 100644
--- a/abs/core/sysvinit/PKGBUILD
+++ b/abs/core/sysvinit/PKGBUILD
@@ -1,26 +1,27 @@
+# $Id: PKGBUILD 92996 2010-10-02 19:26:38Z eric $
+# Maintainer: Eric Belanger <eric@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
pkgname=sysvinit
-pkgver=2.86
-pkgrel=12
+pkgver=2.88
+pkgrel=2
pkgdesc="Linux System V Init"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
+url="http://savannah.nongnu.org/projects/sysvinit"
license=('GPL')
groups=('base')
depends=('shadow' 'util-linux' 'coreutils' 'glibc' 'awk')
-source=(ftp://ftp.cistron.nl/pub/people/miquels/$pkgname/$pkgname-$pkgver.tar.gz halt-init.patch)
-md5sums=('7d5d61c026122ab791ac04c8a84db967')
+install=sysvinit.install
+source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgname}-${pkgver}dsf.tar.bz2)
+md5sums=('6eda8a97b86e0a6f59dabbf25202aa6f')
+sha1sums=('f2ca149df1314a91f3007cccd7a0aa47d990de26')
build() {
- cd $startdir/src/$pkgname-$pkgver
- cp src/init.c src/init.c.backup
- cp $startdir/src/halt-init.patch src/
- patch -p0 < src/halt-init.patch
- sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
- src/init.c > tmp~
- mv tmp~ src/init.c
- mkdir -p $startdir/pkg/bin $startdir/pkg/sbin
- mkdir -p $startdir/pkg/usr/bin
- mkdir -p $startdir/pkg/usr/man/man5 $startdir/pkg/usr/man/man8
- mkdir -p $startdir/pkg/usr/man/man1 $startdir/pkg/usr/include
- make -C src || return 1
- make -C src MANDIR=/usr/man ROOT=$startdir/pkg install
+ cd "${srcdir}/${pkgname}-${pkgver}dsf"
+ make || return 1
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}dsf"
+ make ROOT="${pkgdir}" install
}
diff --git a/abs/core/sysvinit/sysvinit.install b/abs/core/sysvinit/sysvinit.install
new file mode 100644
index 0000000..2f0e62e
--- /dev/null
+++ b/abs/core/sysvinit/sysvinit.install
@@ -0,0 +1,3 @@
+post_upgrade() {
+ [ -x sbin/init ] && sbin/init u
+}