X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=openldap%2Fopenldap.nm;h=1f80a015edd4b838ddc0665bfa5b853b191213b5;hb=b0a349066b4d7141da40f1c5deaa0dc4eeae3d46;hp=fef3ca5500d9449c74f5e0356cd43b7f7e8a32cb;hpb=5447802fdc59ea866d6287d82e0f6920443c2816;p=people%2Fms%2Fipfire-3.x.git diff --git a/openldap/openldap.nm b/openldap/openldap.nm index fef3ca550..1f80a015e 100644 --- a/openldap/openldap.nm +++ b/openldap/openldap.nm @@ -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