aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-11-21 13:16:34 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-11-21 13:16:34 +0000
commiteff24145e92ae8c015cb86c2fd808311821f1d55 (patch)
tree543859d355f9f7e15ddd87f7253360b91af97535 /main
parent0e583804074872734c50a059cde0d7584425577d (diff)
downloadaports-eff24145e92ae8c015cb86c2fd808311821f1d55.tar.bz2
aports-eff24145e92ae8c015cb86c2fd808311821f1d55.tar.xz
main/memcached: APKBUILD updates
Diffstat (limited to 'main')
-rw-r--r--main/memcached/APKBUILD13
1 files changed, 5 insertions, 8 deletions
diff --git a/main/memcached/APKBUILD b/main/memcached/APKBUILD
index 92d22cdda9..8918afbc86 100644
--- a/main/memcached/APKBUILD
+++ b/main/memcached/APKBUILD
@@ -16,7 +16,7 @@ source="http://www.memcached.org/files/memcached-$pkgver.tar.gz
$pkgname.confd
$pkgname.initd"
-_builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
# 1.4.33-r0:
@@ -25,15 +25,12 @@ _builddir="$srcdir/$pkgname-$pkgver"
# - CVE-2016-8706
prepare() {
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ cd $builddir
+ default_prepare || return 1
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -43,7 +40,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir/$pkgname.initd" \
"$pkgdir/etc/init.d/$pkgname" || return 1