Skip to content

Commit dffb271

Browse files
committed
- use new $opt-target
- improve kldstat check - use new defined postexec, preunexec in pkg-plist with hat apache@
1 parent 5b8022a commit dffb271

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎www/apache24/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ post-install:
177177
-${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
178178
-${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/apache24/mod_*.so
179179

180-
.if ${PORT_OPTIONS:MLOG_FORENSIC}
180+
post-install-LOG_FORENSIC-on:
181181
${INSTALL_SCRIPT} ${WRKSRC}/support/check_forensic ${STAGEDIR}${PREFIX}/sbin
182-
.endif
183182

184183
# maintainer only, check for new modules
185184
modlist: extract

‎www/apache24/files/apache24.in‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ envvars="%%PREFIX%%/sbin/envvars"
5252
apache24_accf()
5353
{
5454
if checkyesno apache24_http_accept_enable; then
55-
/sbin/kldstat -v | grep accf_http > /dev/null 2>&1 || /sbin/kldload accf_http || return ${?}
56-
/sbin/kldstat -v | grep accf_data > /dev/null 2>&1 || /sbin/kldload accf_data || return ${?}
55+
/sbin/kldstat -qm accf_http || /sbin/kldload accf_http || return ${?}
56+
/sbin/kldstat -qm accf_data || /sbin/kldload accf_data || return ${?}
5757
else
5858
apache24_flags="${apache24_flags} -DNOHTTPACCEPT"
5959
fi

‎www/apache24/pkg-plist‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ sbin/split-logfile
243243
%%DATADIR%%/build/program.mk
244244
%%DATADIR%%/build/rules.mk
245245
%%DATADIR%%/build/special.mk
246-
@unexec if cmp -s %D/%%WWWDIR%%/data/index.html %D/%%DATADIR%%/misc/index.html; then rm -f %D/%%WWWDIR%%/data/index.html; fi
246+
@preunexec if cmp -s %D/%%WWWDIR%%/data/index.html %D/%%DATADIR%%/misc/index.html; then rm -f %D/%%WWWDIR%%/data/index.html; fi
247247
%%DATADIR%%/misc/index.html
248-
@exec [ -f %D/%%WWWDIR%%/data/index.html ] || cp %D/%%DATADIR%%/misc/index.html %D/%%WWWDIR%%/data/index.html
248+
@postexec [ -f %D/%%WWWDIR%%/data/index.html ] || cp %D/%%DATADIR%%/misc/index.html %D/%%WWWDIR%%/data/index.html
249249
@(,,0400) %%WWWDIR%%/cgi-bin/printenv
250250
@(,,0400) %%WWWDIR%%/cgi-bin/test-cgi
251251
%%WWWDIR%%/error/HTTP_BAD_GATEWAY.html.var
@@ -510,6 +510,6 @@ sbin/split-logfile
510510
%%WWWDIR%%/icons/world2.gif
511511
%%WWWDIR%%/icons/world2.png
512512
%%WWWDIR%%/icons/xml.png
513-
@unexec rm -f %D/%%ETCDIR%%/httpd.conf.bak 2> /dev/null || true
513+
@preunexec rm -f %D/%%ETCDIR%%/httpd.conf.bak 2> /dev/null || true
514514
@dir %%ETCDIR%%/envvars.d
515515
@dir %%WWWDIR%%/data

0 commit comments

Comments
 (0)