diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2002-11-19 13:01:11 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2002-11-19 13:01:11 +0000 |
commit | 17f3a661b3e76c13ba1532ba731b8340f730a7b2 (patch) | |
tree | 45cd70aa180d60d45a8be774e4f90e11fda4e871 /sysutils/uptimed/Makefile | |
parent | upgrade to 1.2.1 (diff) |
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/Makefile | 3 |
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/ |