summaryrefslogtreecommitdiffstats
path: root/sysutils/uptimed/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-11-19 13:01:11 +0000
committeredwin <edwin@FreeBSD.org>2002-11-19 13:01:11 +0000
commitcc5bd43f5227473e6e301cd6458628ea27fd069c (patch)
treea5e7ea74e1d0de615c2600f300439490d33e8695 /sysutils/uptimed/Makefile
parent7d9313d66a5c78c343a26581a4914cb0df445a8e (diff)
downloadFreeBSD-ports-cc5bd43f5227473e6e301cd6458628ea27fd069c.zip
FreeBSD-ports-cc5bd43f5227473e6e301cd6458628ea27fd069c.tar.gz
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/uptimed/Makefile')
-rw-r--r--sysutils/uptimed/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysutils/uptimed/Makefile b/sysutils/uptimed/Makefile
index 3cfb3cf..66fa204 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/
OpenPOWER on IntegriCloud