diff options
author | vs <vs@FreeBSD.org> | 2004-08-27 18:57:53 +0000 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-08-27 18:57:53 +0000 |
commit | 86eb998ce63ded5d5b13e013252733350e4174d9 (patch) | |
tree | 039fed29dc28f91e1aaca6ace5e3b1f601cef650 /www/mod_dav/files | |
parent | bb9303e24b8a4eea616ddfb5de82b044a54382b5 (diff) | |
download | FreeBSD-ports-86eb998ce63ded5d5b13e013252733350e4174d9.zip FreeBSD-ports-86eb998ce63ded5d5b13e013252733350e4174d9.tar.gz |
Fix previous commit:
- owner/group was undefined when installing from package
- substitute %%APXS%% in pkg-install
Noted by: eik
Diffstat (limited to 'www/mod_dav/files')
-rw-r--r-- | www/mod_dav/files/pkg-install.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/www/mod_dav/files/pkg-install.in b/www/mod_dav/files/pkg-install.in new file mode 100644 index 0000000..e6e1d47 --- /dev/null +++ b/www/mod_dav/files/pkg-install.in @@ -0,0 +1,23 @@ +#!/bin/sh + +CHMOD=/bin/chmod +CHOWN=/usr/sbin/chown +TOUCH=/usr/bin/touch + +case $2 in +POST-INSTALL) + %%APXS%% -e -a -n dav libdav.so + for i in DAVLock.dir DAVLock.pag ; do + ${TOUCH} /var/db/$i + ${CHOWN} %%WWWOWN%%:%%WWWGRP%% /var/db/$i + ${CHMOD} 640 /var/db/$i + done + ;; +POST-DEINSTALL) + %%APXS%% -e -A -n dav libdav.so + for i in DAVLock.dir DAVLock.pag ; do + rm -f /var/db/$i + done + ;; +esac +exit 0 |