blob: 27d5a09968fd387e103b42e21062e7d2babccb78 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $Id: PKGBUILD 162726 2012-06-29 06:27:09Z bluewind $
# Maintainer: Eric Belanger <eric@archlinux.org>
pkgname=sysvinit
pkgver=2.88
pkgrel=6
pkgdesc="Linux System V Init"
arch=('i686' 'x86_64')
url="http://savannah.nongnu.org/projects/sysvinit"
license=('GPL')
groups=('base')
depends=('util-linux' 'coreutils' 'glibc' 'awk' 'poweroff-scripts')
install=sysvinit.install
source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgname}-${pkgver}dsf.tar.bz2
"0001-simplify-writelog.patch"
"0002-remove-ansi-escape-codes-from-log-file.patch"
"halt_init.patch")
build() {
cd "${srcdir}/${pkgname}-${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"
patch -p0 < ${srcdir}/halt_init.patch
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}dsf"
make ROOT="${pkgdir}" install
# mountpoint is now provided by util-linux instead
cd "${pkgdir}"
rm bin/mountpoint
rm usr/share/man/man1/mountpoint.1
# Rename some stuff so it does not bigfoot changes needed for runit
cd "${pkgdir}/sbin"
rm -f reboot poweroff
mv halt halt.init
mv shutdown shutdown.init
}
md5sums=('6eda8a97b86e0a6f59dabbf25202aa6f'
'e3e82a3a38415518f52f78a622ef0262'
'04f0ab28340df08bb47d066669bc4519'
'aec0de91c1d2f56e78393d400fd238a7')
|