mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Use /var instead of PREFIX/var
PR: 186431 Approved by: maintainer timeout (3 weeks)
This commit is contained in:
parent
c46cfd4ea3
commit
f882080b7e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366954
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= hiawatha
|
||||
PORTVERSION= 9.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= SF/fbsdports/hiawatha/ \
|
||||
http://www.hiawatha-webserver.org/files/:monitor
|
||||
@ -22,15 +23,9 @@ USES= cmake compiler:c11
|
||||
USE_LDCONFIG= yes
|
||||
USE_RC_SUBR= hiawatha
|
||||
|
||||
CMAKE_ARGS+= -DCMAKE_INSTALL_BINDIR=${PREFIX}/bin \
|
||||
-DCMAKE_INSTALL_SBINDIR=${PREFIX}/sbin \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=${ETCDIR} \
|
||||
-DCMAKE_INSTALL_LIBDIR=${PREFIX}/lib \
|
||||
-DCONFIG_DIR=${ETCDIR} \
|
||||
-DWEBROOT_DIR=${WWWDIR} \
|
||||
CMAKE_ARGS= -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
||||
-DCMAKE_INSTALL_MANDIR=${PREFIX}/man \
|
||||
-DLOG_DIR=/var/log/hiawatha \
|
||||
-DPID_DIR=/var/run
|
||||
-DWEBROOT_DIR=${WWWDIR}
|
||||
|
||||
OPTIONS_DEFINE= CACHE DOCS IPV6 MONITOR RPROXY SSL TOMAHAWK TOOLKIT XSLT
|
||||
|
||||
@ -68,8 +63,6 @@ XSLT_USE= GNOME=libxslt
|
||||
XSLT_CMAKE_ON= -DENABLE_XSLT=on
|
||||
XSLT_CMAKE_OFF= -DENABLE_XSLT=off
|
||||
|
||||
PLIST_SUB+= ECHO_MSG=${ECHO_MSG}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
|
||||
${WRKSRC}/man/hiawatha.1.in ${WRKSRC}/man/cgi-wrapper.1.in \
|
||||
|
@ -17,11 +17,10 @@ man/man1/ssi-cgi.1.gz
|
||||
man/man1/wigwam.1.gz
|
||||
@sample %%WWWDIR%%/index.html.sample
|
||||
@dirrmtry %%WWWDIR%%
|
||||
@dirrmtry var/lib/hiawatha
|
||||
@dirrmtry var/lib
|
||||
@dirrmtry var
|
||||
@dirrmtry lib/hiawatha
|
||||
@dirrmtry %%ETCDIR%%
|
||||
@unexec rmdir "/var/log/hiawatha" >/dev/null 2>&1 || :
|
||||
@exec if [ ! -d /var/log/hiawatha ] ; then mkdir /var/log/hiawatha ; fi
|
||||
@unexec t=`/bin/ls /var/log/hiawatha`; if [ -z "$t" ]; then %%ECHO_MSG%% "===> Log directory is empty, removing it."; rmdir /var/log/hiawatha; fi;
|
||||
@cwd /var
|
||||
@dirrmtry log/hiawatha
|
||||
@dirrmtry lib/hiawatha
|
||||
@dirrmtry lib
|
||||
@cwd
|
||||
|
Loading…
Reference in New Issue
Block a user