1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/www/wwwoffle/Makefile

58 lines
1.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wwwoffle
# Date created: 1 Jun 1998
# Whom: Peter Mutsaers
#
1999-08-31 02:43:35 +00:00
# $FreeBSD$
#
PORTNAME= wwwoffle
PORTVERSION= 2.5e
CATEGORIES= www
MASTER_SITES= ftp://ftp.demon.co.uk/pub/unix/httpd/ \
${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/www/servers
EXTRACT_SUFX= .tgz
MAINTAINER= ben@FreeBSD.org
USE_PERL5= yes
# $SPOOL seems like a common name which could be used for other things, so
# use $WWWOFFLE_SPOOL as the overriding setting.
WWWOFFLE_SPOOL?= /var/spool
SPOOL= ${WWWOFFLE_SPOOL}
PLIST_SUB+= SPOOL=${SPOOL}
MAKE_ENV+= SPOOL="${SPOOL}" \
BINOWN="${BINOWN}" \
BINGRP="${BINGRP}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_MAN="${INSTALL_MAN}"
MAN1= wwwoffle.1
MAN5= wwwoffle.conf.5
MAN8= wwwoffled.8
.if ${SPOOL} != "/var/spool"
# If using a non-standard spool, change all the documentation (and anything
# else) to reflect that.
PKGMESSAGE=${WRKDIR}/MESSAGE
do-configure:
@find ${WRKSRC} | xargs ${CHMOD} u+w
@find ${WRKSRC} -type f | \
xargs perl -pi -e 's@/var/spool/wwwoffle@${SPOOL}/wwwoffle@g'
@${SED} 's@/var/spool/wwwoffle@${SPOOL}/wwwoffle@g' \
${PKGDIR}/MESSAGE > ${PKGMESSAGE}
.endif
post-install:
@${MKDIR} ${SPOOL}/wwwoffle
@${INSTALL_SCRIPT} ${WRKSRC}/upgrade-config.pl ${SPOOL}/wwwoffle
@${INSTALL_SCRIPT} ${FILESDIR}/wwwoffled.sh ${PREFIX}/etc/rc.d/wwwoffled.sh.sample
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>