aboutsummaryrefslogtreecommitdiff
path: root/net/courier-authlib-ldap/pkg-plist
diff options
context:
space:
mode:
Diffstat (limited to 'net/courier-authlib-ldap/pkg-plist')
-rw-r--r--net/courier-authlib-ldap/pkg-plist9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/courier-authlib-ldap/pkg-plist b/net/courier-authlib-ldap/pkg-plist
index 007d02df5b01..2a5e2800f7b8 100644
--- a/net/courier-authlib-ldap/pkg-plist
+++ b/net/courier-authlib-ldap/pkg-plist
@@ -1,3 +1,4 @@
+@unexec [ ! -f /var/run/authdaemond/pid ] || %D/etc/rc.d/courier-authdaemond.sh stop || true
bin/courierauthconfig
etc/rc.d/courier-authdaemond.sh
%%MYSQLFLAG%%etc/authlib/authmysqlrc.dist
@@ -60,11 +61,9 @@ sbin/courierlogger
%%PORTDOCS%%%%DOCSDIR%%/README.ldap
%%PORTDOCS%%%%DOCSDIR%%/README_authlib.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@exec mkdir -p %D/var/spool/authdaemon 2>/dev/null || true
-@unexec rmdir %D/var/spool/authdaemon 2>/dev/null || true
-@unexec rmdir %D/var/spool 2>/dev/null || true
-@unexec rmdir %D/var/authdaemon 2>/dev/null || true
-@unexec rmdir %D/var 2>/dev/null || true
+@exec mkdir -m 0750 /var/run/authdaemond 2>/dev/null || true
+@exec chown %%MAILUSER%%:%%MAILGROUP%% /var/run/authdaemond 2>/dev/null || true
+@unexec rmdir /var/run/authdaemond 2>/dev/null || true
@unexec rmdir %D/etc/authlib 2>/dev/null || true
@dirrm lib/courier-authlib
@dirrm libexec/courier-authlib