aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-11-19 21:01:11 +0800
committeredwin <edwin@FreeBSD.org>2002-11-19 21:01:11 +0800
commitcc5bd43f5227473e6e301cd6458628ea27fd069c (patch)
treea5e7ea74e1d0de615c2600f300439490d33e8695 /sysutils
parent7d9313d66a5c78c343a26581a4914cb0df445a8e (diff)
downloadfreebsd-ports-gnome-cc5bd43f5227473e6e301cd6458628ea27fd069c.tar.gz
freebsd-ports-gnome-cc5bd43f5227473e6e301cd6458628ea27fd069c.tar.zst
freebsd-ports-gnome-cc5bd43f5227473e6e301cd6458628ea27fd069c.zip
Make sure that $PREFIX/www/cgi-bin exist before it tries to write to it.
Probably a bento-only test, but at least it builds without problems again.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/uptimed/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysutils/uptimed/Makefile b/sysutils/uptimed/Makefile
index 3cfb3cfbd65d..66fa2045672a 100644
--- a/sysutils/uptimed/Makefile
+++ b/sysutils/uptimed/Makefile
@@ -27,6 +27,9 @@ MAN8= uptimed.8
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/uptimed.sh.sample ${PREFIX}/etc/rc.d/
+ if [ ! -d "${PREFIX}/www/cgi-bin/" ]; then \
+ ${MKDIR} -p ${PREFIX}/www/cgi-bin; \
+ fi
${INSTALL_PROGRAM} ${PREFIX}/bin/uprecords ${PREFIX}/www/cgi-bin/uprecords.cgi
${INSTALL_DATA} ${WRKSRC}/sample-cgi/* ${PREFIX}/www/cgi-bin/