freebsd-ports/sysutils/uptimed/Makefile
Edwin Groothuis 17f3a661b3 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.
2002-11-19 13:01:11 +00:00

36 lines
831 B
Makefile

# New ports collection makefile for: uptimed
# Date created: 23 July 2002
# Whom: Andy Fawcett <andy@athame.co.uk>
#
# $FreeBSD$
PORTNAME= uptimed
PORTVERSION= 0.2.0
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= uptimed
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= andy@athame.co.uk
PREFIX= ${LOCALBASE}
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${LOCALBASE}
USE_GMAKE= yes
MAN1= uprecords.1
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/
.include <bsd.port.mk>