summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-09-02 17:31:01 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-09-02 17:31:01 +0000
commitcecf200f3db8440c420b94ba7055b9b40c536acd (patch)
treeb0b27b10384625cb2eb7138bb5905894323f8418 /www
parent15d2040d72b4b0cb9ed51d2e0792945c11f21414 (diff)
downloadfreebsd-ports-cecf200f3db8440c420b94ba7055b9b40c536acd.zip
Package empty directories
Diffstat (limited to 'www')
-rw-r--r--www/xshttpd-devel/Makefile4
-rw-r--r--www/xshttpd-devel/pkg-plist6
2 files changed, 6 insertions, 4 deletions
diff --git a/www/xshttpd-devel/Makefile b/www/xshttpd-devel/Makefile
index b4324bafa524..b07098179a9b 100644
--- a/www/xshttpd-devel/Makefile
+++ b/www/xshttpd-devel/Makefile
@@ -55,7 +55,9 @@ post-patch:
${WRKSRC}/contrib/Makefile.in
post-install:
- @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${WWWDIR}/htdocs
+ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${WWWDIR}/htdocs \
+ ${STAGEDIR}/var/log/xshttpd \
+ ${STAGEDIR}/var/db/xshttpd/sessions
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/www/xshttpd-devel/pkg-plist b/www/xshttpd-devel/pkg-plist
index 6e6d571cbe47..0bf5f1701a61 100644
--- a/www/xshttpd-devel/pkg-plist
+++ b/www/xshttpd-devel/pkg-plist
@@ -97,6 +97,6 @@ man/man7/httpd_ssi.7.gz
@dirrmtry %%WWWDIR%%
@dirrmtry %%ETCDIR%%
@dirrmtry libexec/xshttpd
-@cwd /
-@unexec rm -d var/log/xshttpd var/db/xshttpd/sessions var/db/xshttpd 2>/dev/null || true
-@exec mkdir -p var/log/xshttpd var/db/xshttpd/sessions
+@dirrmtry /var/log/xshttpd
+@dirrmtry /var/db/xshttpd/sessions
+@dirrmtry /var/db/xshttpd