]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
openldap: Update to 2.4.32.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 16 Sep 2012 09:05:01 +0000 (11:05 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 16 Sep 2012 15:52:18 +0000 (17:52 +0200)
Also add scriptlets to interact with systemd.

Fixes #10204.

openldap/openldap.nm
openldap/systemd/openldap.service

index fef3ca5500d9449c74f5e0356cd43b7f7e8a32cb..1f80a015edd4b838ddc0665bfa5b853b191213b5 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = openldap
-version    = 2.4.30
+version    = 2.4.32
 release    = 1
 
 groups     = System/Daemons
@@ -51,11 +51,6 @@ build
                --enable-ndb=no \
                --disable-static
 
-# Doens't seem to work in chroot.
-#define test
-#      cd %{DIR_APP} && make check
-#endef
-
        install_cmds
                mv -v %{BUILDROOT}%{libdir}/slapd %{BUILDROOT}/usr/sbin/slapd
                ln -svf slapd %{BUILDROOT}/usr/sbin/slapacl
@@ -85,6 +80,24 @@ end
 
 packages
        package %{name}
+               script postin
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script preun
+                       systemctl --no-reload disable openldap.service >/dev/null 2>&1 || :
+                       systemctl stop openldap.service >/dev/null 2>&1 || :
+               end
+
+               script postun
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postup
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+                       systemctl try-restart openldap.service >/dev/null 2>&1 || :
+               end
+       end
 
        package %{name}-libs
                template LIBS
index 4eb155fc9e952d81715e139b2e5cb364ba48ebdc..8c2c57ba422502a555c6534e7dec6fe360b816d1 100644 (file)
@@ -1,5 +1,5 @@
 [Unit]
-Description=Very Secure FTP Daemon
+Description=OpenLDAP
 After=basic.target
 
 [Service]