blob: 6fbb3cd7ab83246fa2a36e6b1ada9fe1b65e81e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
pkgname=sysvinit
pkgver=2.86
pkgrel=12
pkgdesc="Linux System V Init"
arch=(i686 x86_64)
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')
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
}
|