updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / minit / PKGBUILD
blobdd011c7e1099e6cad65d14dd3933eede3166f5fa
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Contributor: Mathias Baumann <marenz@supradigital.org>
7 pkgname=minit
8 pkgver=0.10
9 pkgrel=1
10 pkgdesc="A small yet feature-complete init"
11 arch=('i686' 'x86_64')
12 url="http://www.fefe.de/minit/"
13 license=('GPL')
14 groups=()
15 depends=()
16 makedepends=('dietlibc' 'libowfat')
17 optdepends=()
18 provides=()
19 conflicts=('sysvinit')
20 replaces=('sysvinit')
21 backup=()
22 options=()
23 install=
24 source=(http://dl.fefe.de/$pkgname-$pkgver.tar.bz2)
25 noextract=()
27 build() {
28   cd "$srcdir/$pkgname-$pkgver"
30   make || return 1
31   make DESTDIR="$pkgdir/" install
33   mkdir $pkgdir/etc/minit/{sysinit,default,network,single,syslog-ng}
34   ln -s /etc/rc.sysinit $pkgdir/etc/minit/sysinit/run
35   ln -s /etc/rc.single $pkgdir/etc/minit/single/run
36   ln -s /etc/rc.d/network $pkgdir/etc/minit/network/run
37   ln -s /etc/rc.d/syslog-ng $pkgdir/etc/minit/syslog-ng/run
39   echo "sysinit\nnetwork" > $pkgdir/etc/minit/default/depends
41   echo "start" > $pkgdir/etc/minit/network/params
42   echo "syslog-ng" > $pkgdir/etc/minit/network/depends
43   
44   echo "start" > $pkgdir/etc/minit/syslog-ng/params
46   touch $pkgdir/etc/minit/sysinit/sync
53 # vim:set ts=2 sw=2 et:
54 md5sums=('4b76cee0df8da0f7f901bf21e1ec484d')