aboutsummaryrefslogtreecommitdiffstats
path: root/main/openldap/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-10-26 20:40:57 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-10-26 21:14:51 +0200
commitf39c25211d4ee926662d8d5a6242195256534d9b (patch)
treef590977b8f2a02a13d9357fd25a8d3b810f5835e /main/openldap/APKBUILD
parent37aedafe0391550421f305e72e6fb9e23f768687 (diff)
downloadaports-f39c25211d4ee926662d8d5a6242195256534d9b.tar.bz2
aports-f39c25211d4ee926662d8d5a6242195256534d9b.tar.xz
main/openldap: move .default configs to -doc and remove empty run dir
Diffstat (limited to 'main/openldap/APKBUILD')
-rw-r--r--main/openldap/APKBUILD6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/openldap/APKBUILD b/main/openldap/APKBUILD
index 1094c96909..4bc8e629ad 100644
--- a/main/openldap/APKBUILD
+++ b/main/openldap/APKBUILD
@@ -103,6 +103,8 @@ package() {
cd "$pkgdir"
+ rmdir var/lib/openldap/run
+
# Fix tools symlinks to slapd.
local path; for path in $(find usr/sbin/ -type l); do
ln -sf slapd $path
@@ -111,6 +113,10 @@ package() {
# Move executable from lib to sbin.
mv usr/lib/slapd usr/sbin/
+ # Move *.default configs to docs.
+ mkdir -p usr/share/doc/$pkgname
+ mv etc/openldap/*.default usr/share/doc/$pkgname/
+
sed -i -e 's:/var/lib/openldap/run:/run/openldap:g' \
-e 's:back_bdb.la:back_bdb.so:' \
-e 's:back_hdb.la:back_hdb.so:' \