blob: f50687ffd67d46e4fab9086a9338c33cf4cd4379 (
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
|
# Maintainer (Arch): Zsolt Udvari <udvzsolt gmail com>
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
pkgname=initng-git
_gitname="initng"
pkgver=774.3d82abc
pkgrel=1
pkgdesc="A full replacement for the old System V Init system"
arch=('i686' 'x86_64')
url="http://initng.sourceforge.net/trac"
license=('GPL3')
makedepends=('git' 'acr' 'ftjam' 'dbus')
optdepdends=('ncurses')
options=(!strip)
source=(git://github.com/initng/${_gitname}.git
initng-paths.h
)
md5sums=('SKIP'
'3336bc8037273a3e007891d09967a627')
pkgver() {
cd $_gitname
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
rm -rf $srcdir/build #start fresh
cp -ar $srcdir/initng $srcdir/build
cd $srcdir/build
cp ${srcdir}/initng-paths.h .
sed -i "s|includedir=.*|&/libinitng-@VERSION@|" initng.pc.acr
sed -i "s/_BSD_SOURCE/_DEFAULT_SOURCE/g" \
src/modules/chroot/initng_chroot.c \
src/modules/fmon/initng_fmon.c \
src/modules/netdev/initng_netdev.c \
src/modules/suid/initng_suid.c
acr
./configure --prefix="/usr"
make
}
package() {
cd $srcdir/build
make install DESTDIR=$pkgdir
}
|