aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-04 13:51:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-04 13:55:07 +0000
commit333a0bc64f09e2ff8e575fada7cb440e51ea5d4a (patch)
treed900c039c5d29be1261477473170fa53500e346a
parent1f131a458842f75d501bc976f59367a226dee228 (diff)
downloadaports-333a0bc64f09e2ff8e575fada7cb440e51ea5d4a.tar.gz
aports-333a0bc64f09e2ff8e575fada7cb440e51ea5d4a.tar.bz2
aports-333a0bc64f09e2ff8e575fada7cb440e51ea5d4a.tar.xz
main/util-vserver: fix init.d script
fixes #305 (cherry picked from commit d782c781af1c3d6ea8302bc8e27ec14b63e8ec87)
-rw-r--r--main/util-vserver/APKBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/main/util-vserver/APKBUILD b/main/util-vserver/APKBUILD
index 066fded1fb..5d77bca77f 100644
--- a/main/util-vserver/APKBUILD
+++ b/main/util-vserver/APKBUILD
@@ -2,7 +2,7 @@
pkgname=util-vserver
pkgver=0.30.216_pre2882
_realver=0.30.216-pre2882
-pkgrel=6
+pkgrel=7
pkgdesc="Linux-VServer admin utilities"
url="http://www.nongnu.org/util-vserver/"
license="GPL"
@@ -24,8 +24,7 @@ subpackages="$pkgname-doc $pkgname-dev"
_builddir="$srcdir"/$pkgname-$_realver
-build() {
- local i
+prepare() {
cd "$_builddir"
for i in ../*.patch; do
[ -r "$i" ] || continue
@@ -38,6 +37,13 @@ build() {
# this is an ugly workaround
sed -i -e "s:as_echo=.*:as_echo=echo:g" configure
+ # issue 305
+ sed -i -e 's/^function //' gentoo/util-vserver
+}
+
+build() {
+ local i
+ cd "$_builddir"
./configure --prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc \