Date: Sunday, June 19, 2011 @ 03:32:04
  Author: andrea
Revision: 127879

upgpkg: openldap 2.4.24-2
db rebuild

Modified:
  openldap/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2011-06-19 07:27:38 UTC (rev 127878)
+++ PKGBUILD    2011-06-19 07:32:04 UTC (rev 127879)
@@ -4,13 +4,13 @@
 
 pkgname=openldap
 pkgver=2.4.24
-pkgrel=1
+pkgrel=2
 pkgdesc="LDAP Server"
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.openldap.org/";
 backup=('etc/openldap/slapd.conf' 'etc/default/slapd' 'etc/conf.d/slapd')
-depends=("libldap>=${pkgver}" 'db' 'tcp_wrappers' 'libfetch' 'util-linux-ng')
+depends=("libldap>=${pkgver}" 'tcp_wrappers' 'libfetch' 'util-linux-ng')
 provides=('openldap-clients')
 replaces=('openldap-clients')
 
source=("ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/${pkgname}-${pkgver}.tgz";
@@ -19,9 +19,10 @@
 md5sums=('116fe1e23a7b67686d5e62274367e6c0'
          '832354417c495f29affd2c772808959d'
          '6be69f6b7e522cb64cce8703da81ed32')
+options=('emptydirs')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd "${srcdir}"/${pkgname}-${pkgver}
    
   export LIBS=-ldb
   ./configure --prefix=/usr \
@@ -71,36 +72,36 @@
 }
 
 package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd "${srcdir}"/${pkgname}-${pkgver}
   
   cd servers
-  make DESTDIR=${pkgdir} install
+  make DESTDIR="${pkgdir}" install
 
   cd ../clients
-  make DESTDIR=${pkgdir} install
+  make DESTDIR="${pkgdir}" install
 
   cd ../doc/man
   for dir in man{1,5,8}; do
     pushd ${dir}
-    make DESTDIR=${pkgdir} install
+    make DESTDIR="${pkgdir}" install
     popd
   done
-  rm ${pkgdir}/usr/share/man/man5/ldap.conf.5
+  rm "${pkgdir}"/usr/share/man/man5/ldap.conf.5
 
   cd ../..
 
-  install -dm700 ${pkgdir}/etc/openldap/slapd.d
-  install -Dm755 ${srcdir}/slapd ${pkgdir}/etc/rc.d/slapd
-  install -Dm644 ${srcdir}/slapd.default ${pkgdir}/etc/conf.d/slapd
-  install -dm700 ${pkgdir}/var/lib/openldap
+  install -dm700 "${pkgdir}"/etc/openldap/slapd.d
+  install -Dm755 "${srcdir}"/slapd "${pkgdir}"/etc/rc.d/slapd
+  install -Dm644 "${srcdir}"/slapd.default "${pkgdir}"/etc/conf.d/slapd
+  install -dm700 "${pkgdir}"/var/lib/openldap
   
   # get rid of duplicate default conf files
-  rm ${pkgdir}/etc/openldap/*.default
+  rm "${pkgdir}"/etc/openldap/*.default
 
   # hack to fix screwed up dirs
   sed -e 's|^pidfile[[:space:]].*$|pidfile   /var/run/slapd.pid|g' \
       -e 's|^argsfile[[:space:]].*$|argsfile  /var/run/slapd.args|g' \
-      -i ${pkgdir}/etc/openldap/slapd.conf
+      -i "${pkgdir}"/etc/openldap/slapd.conf
       
-  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
 }

Reply via email to