diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-03 18:39:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-03 18:39:07 +0000 |
commit | 0cf92dfd35f3038d6afd9bcd4405886647b658a0 (patch) | |
tree | 78f7bfb45b891e9a5eb419d464192c2b5bd10475 | |
parent | 2b086184f944c1174e55282e8e5cf3fecfc628f6 (diff) | |
download | aports-0cf92dfd35f3038d6afd9bcd4405886647b658a0.tar.bz2 aports-0cf92dfd35f3038d6afd9bcd4405886647b658a0.tar.xz |
main/openrc: fix previous commit
-rw-r--r-- | main/openrc/APKBUILD | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/main/openrc/APKBUILD b/main/openrc/APKBUILD index 53f8542fb9..9de5590bb0 100644 --- a/main/openrc/APKBUILD +++ b/main/openrc/APKBUILD @@ -1,7 +1,8 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=openrc -pkgver=0.7.0 -pkgrel=1 +pkgver=0.7.0_git20110222 +_ver=${pkgver/_git*/} +pkgrel=0 pkgdesc="OpenRC manages the services, startup and shutdown of a host" url="http://roy.marples.name/openrc" arch="all" @@ -9,7 +10,9 @@ license='BSD-2' depends="" subpackages="$pkgname-doc $pkgname-dev" install="$pkgname.post-install $pkgname.post-upgrade" -source="http://distfiles.gentoo.org/distfiles/$pkgname-$pkgver.tar.bz2 +source="http://distfiles.gentoo.org/distfiles/$pkgname-$_ver.tar.bz2 + openrc-0.7.0-git_20110222.patch + 0001-Use-rc_sys_v1-when-rc_sys-variable-is-defined-but-em.patch openrc-0.4.3-mkmntdirs.patch 0001-Force-root-be-rw-before-localmount.patch @@ -25,22 +28,24 @@ source="http://distfiles.gentoo.org/distfiles/$pkgname-$pkgver.tar.bz2 modloop.confd " +_builddir="$srcdir/$pkgname-$_ver" prepare() { - cd "$srcdir/$pkgname-$pkgver" - for i in ../*.patch; do - msg "Applying $i..." - patch -p1 < $i || return 1 + 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 "$srcdir/$pkgname-$pkgver" + cd "$_builddir" make || return 1 } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" make DESTDIR="$pkgdir/" install # we cannot have anything turned on by default @@ -60,6 +65,8 @@ package() { } md5sums="80efd9dd83d4713ddfb7e41a6433cc9c openrc-0.7.0.tar.bz2 +85b667dcadf8aab78384bc942babc89a openrc-0.7.0-git_20110222.patch +c3dfd1a0ee9e88a0d491d815ca634bda 0001-Use-rc_sys_v1-when-rc_sys-variable-is-defined-but-em.patch 8c2c1c2ee0509b63966b7187a2079f4b openrc-0.4.3-mkmntdirs.patch 4fd036ff07ed9ad7fb76af6a3ffc0695 0001-Force-root-be-rw-before-localmount.patch 4ca3731b566c004a3848c54515df8d17 remove-e2fsck-specific-options.patch |