aboutsummaryrefslogtreecommitdiffstats
path: root/main/openldap
diff options
context:
space:
mode:
Diffstat (limited to 'main/openldap')
-rw-r--r--main/openldap/APKBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/main/openldap/APKBUILD b/main/openldap/APKBUILD
index 4ad917f0ac..6e5637e52f 100644
--- a/main/openldap/APKBUILD
+++ b/main/openldap/APKBUILD
@@ -22,15 +22,21 @@ source="ftp://ftp.$pkgname.org/pub/OpenLDAP/$pkgname-release/$pkgname-$pkgver.tg
slurpd.initd
"
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ sed -e '/^STRIP/s,-s,,g' \
+ -i build/top.mk || return 1
+}
+
# berkdb crypt ipv6 ssl
build () {
cd "$srcdir"/$pkgname-$pkgver
- for i in ../*.patch; do
- msg "Applying $i..."
- patch -p1 < $i || return 1
- done
-
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \