mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
Re-package:
- Drop pkg-plist in favour of PLIST_FILES - Use pkg-message instead of post-install-target - Synchronize installation from port and package: The module wasn't enabled after installing from the package - Create files necessary for locking to work out-of-the-box Approved by: clement
This commit is contained in:
parent
53f8d76019
commit
fdb2cb4d49
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117434
@ -18,6 +18,10 @@ COMMENT= An Apache module that provides DAV capabilities
|
||||
# This port will work with the following version of Apache and anything newer.
|
||||
APACHE_VERSION= 1.3.6
|
||||
|
||||
PKGDEINSTALL= ${PKGINSTALL}
|
||||
PKGMESSAGE= ${WRKSRC}/pkg-message
|
||||
PLIST_FILES= etc/apache/apache.conf.mod_dav libexec/apache/libdav.so
|
||||
|
||||
USE_APACHE= yes
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
||||
@ -43,16 +47,17 @@ pre-everything::
|
||||
@/bin/sleep 5
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
do-install:
|
||||
BINMODE=755 ${INSTALL_PROGRAM} ${WRKSRC}/libdav.so ${PREFIX}/libexec/apache
|
||||
${INSTALL_DATA} ${FILESDIR}/apache.conf.mod_dav ${PREFIX}/etc/apache
|
||||
@${ECHO_MSG} "*******************************************************"
|
||||
@${ECHO_MSG} "* Please review the mod_dav configuration in the main"
|
||||
@${ECHO_MSG} "* Apache configuration file."
|
||||
@${ECHO_MSG} "* ${PREFIX}/etc/apache/httpd.conf"
|
||||
@${ECHO_MSG} "*"
|
||||
@${ECHO_MSG} "* Look at the file ${PREFIX}/etc/apache/apache.conf.mod_dav"
|
||||
@${ECHO_MSG} "* for indications on what to do."
|
||||
@${ECHO_MSG} "*"
|
||||
@${ECHO_MSG} "*******************************************************"
|
||||
|
||||
post-install:
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
@${SETENV} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} PKG_PREFIX=${PREFIX} \
|
||||
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
.endif
|
||||
@${SED} -e 's+%%PREFIX%%+${PREFIX}+' ${FILESDIR}/pkg-message.in \
|
||||
> ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
10
www/mod_dav/files/pkg-message.in
Normal file
10
www/mod_dav/files/pkg-message.in
Normal file
@ -0,0 +1,10 @@
|
||||
*******************************************************
|
||||
* Please review the mod_dav configuration in the main
|
||||
* Apache configuration file:
|
||||
* %%PREFIX%%/etc/apache/httpd.conf
|
||||
*
|
||||
* Look at the file %%PREFIX%%/etc/apache/apache.conf.mod_dav
|
||||
* for indications on what to do. The default lock database
|
||||
* has already been created in /var/db/DAVLock.{dir,pag}.
|
||||
*
|
||||
*******************************************************
|
23
www/mod_dav/pkg-install
Normal file
23
www/mod_dav/pkg-install
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
CHMOD=/bin/chmod
|
||||
CHOWN=/usr/sbin/chown
|
||||
TOUCH=/usr/bin/touch
|
||||
|
||||
case $2 in
|
||||
POST-INSTALL)
|
||||
${PKG_PREFIX}/sbin/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)
|
||||
${PKG_PREFIX}/sbin/apxs -e -A -n dav libdav.so
|
||||
for i in DAVLock.dir DAVLock.pag ; do
|
||||
rm -f /var/db/$i
|
||||
done
|
||||
;;
|
||||
esac
|
||||
exit 0
|
@ -1,2 +0,0 @@
|
||||
etc/apache/apache.conf.mod_dav
|
||||
libexec/apache/libdav.so
|
Loading…
Reference in New Issue
Block a user