# Maintainer: Natanael Copa pkgname=openrc pkgver=0.9.8.4 _ver=${pkgver/_git*/} pkgrel=0 pkgdesc="OpenRC manages the services, startup and shutdown of a host" url="http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git" arch="all" license='BSD-2' depends="" subpackages="$pkgname-doc $pkgname-dev" install="$pkgname.post-install $pkgname.post-upgrade" source="http://distfiles.gentoo.org/distfiles/$pkgname-$_ver.tar.bz2 openrc-0.4.3-mkmntdirs.patch 0001-Force-root-be-rw-before-localmount.patch 0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch 0001-sysctl-Use-dev-null-instead-of-q.patch remove-rc_sys-warning.patch hwclock-hctosys.patch swap-umount-tmpfs.patch hostname.initd hwdrivers.initd keymaps.initd modules.initd modloop.initd networking.initd modloop.confd " _builddir="$srcdir/$pkgname-$_ver" prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 esac done sed -i -e '/^sed/d' pkgconfig/Makefile } build() { cd "$_builddir" make LIBEXECDIR=/lib/rc || return 1 } package() { cd "$_builddir" make LIBEXECDIR=/lib/rc 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 "$srcdir"/*.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 -d "$pkgdir"/etc/local.d "$pkgdir"/run } md5sums="f4aa96afb9841aa499c29d108694fd2c openrc-0.9.8.4.tar.bz2 8c2c1c2ee0509b63966b7187a2079f4b openrc-0.4.3-mkmntdirs.patch 4fd036ff07ed9ad7fb76af6a3ffc0695 0001-Force-root-be-rw-before-localmount.patch f66dbabe0859abbd4b996c5ba8976b41 0001-fsck-add-C0-and-T-options-unless-fsck-is-busybox.patch bc4f9ccd4036f9c458b89afe877fa8c2 0001-sysctl-Use-dev-null-instead-of-q.patch 2a1749ee829877d80c3696eade59be8a remove-rc_sys-warning.patch ce6ccda132e579cd2464b8f72daa3d2e hwclock-hctosys.patch ddb34ea87994df3126f5e6b7e8f9ac93 swap-umount-tmpfs.patch c32e15b0858eef708497e7ee6355a055 hostname.initd b1e64885f301166df30be3e3cf5338ff hwdrivers.initd 33ca3e558c42cdd17adccbc7807298f7 keymaps.initd 098a1f16812f56fcb56eb6b6f0fa31f6 modules.initd d10c4fd412faf0b970bb470f493fe718 modloop.initd af16db0d798392c7c0ed3434e4bad241 networking.initd c1ec888202d868710b5749f7b217d1e3 modloop.confd"