# Maintainer: Natanael Copa pkgname=openrc pkgver=0.6.1 pkgrel=1 pkgdesc="OpenRC manages the services, startup and shutdown of a host" url="http://roy.marples.name/openrc" license='BSD-2' depends="" subpackages="$pkgname-doc $pkgname-dev" install="$pkgname.post-install $pkgname.post-upgrade" source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2 openrc-0.4.3-mkmntdirs.patch localmount.patch hostname.initd hwdrivers.initd keymaps.initd modules.initd modloop.initd networking.initd local.start modloop.confd " prepare() { cd "$srcdir/$pkgname-$pkgver" for i in ../*.patch; do msg "Applying $i..." patch -p1 < $i || return 1 done sed -i -e '/^sed/d' pkgconfig/Makefile } build() { cd "$srcdir/$pkgname-$pkgver" make || return 1 } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install # we cannot have anything turned on by default rm -f "$pkgdir"/etc/runlevels/*/* # we still use our ifup/ifdown based net config rm -f "$pkgdir"/etc/conf.d/network "$pkgdir"/etc/init.d/network # we override some of the scripts for i in ../*.initd; do j=${i##*/} install -Dm755 $i "$pkgdir"/etc/init.d/${j%.initd} done install -D -m644 "$srcdir"/modloop.confd "$pkgdir"/etc/conf.d/modloop install -Dm644 ../local.start "$pkgdir"/etc/conf.d/local.start } md5sums="90aa095508b0e92b06eda43b641cba49 openrc-0.6.1.tar.bz2 8c2c1c2ee0509b63966b7187a2079f4b openrc-0.4.3-mkmntdirs.patch fa1809cd59cc0559a163bc6adc7398f6 localmount.patch c32e15b0858eef708497e7ee6355a055 hostname.initd b1e64885f301166df30be3e3cf5338ff hwdrivers.initd 33ca3e558c42cdd17adccbc7807298f7 keymaps.initd 098a1f16812f56fcb56eb6b6f0fa31f6 modules.initd 80b3989370c8bf5cf23e65cd924f9846 modloop.initd c05fc2ea5d771ca68cbb8d91494c9a2b networking.initd 0a615d93aab691364c03539c3b496dcc local.start c1ec888202d868710b5749f7b217d1e3 modloop.confd"