1998-08-09 01:17:19 +00:00
|
|
|
# New ports collection makefile for: wwwoffle
|
|
|
|
# Date created: 1 Jun 1998
|
|
|
|
# Whom: Peter Mutsaers
|
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1998-08-09 01:17:19 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= wwwoffle
|
2000-04-29 20:33:44 +00:00
|
|
|
PORTVERSION= 2.5e
|
1998-08-09 01:17:19 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ftp://ftp.demon.co.uk/pub/unix/httpd/ \
|
|
|
|
${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= apps/www/servers
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2000-04-29 20:33:44 +00:00
|
|
|
MAINTAINER= ben@scientia.demon.co.uk
|
1999-03-08 20:38:20 +00:00
|
|
|
|
|
|
|
USE_PERL5= yes
|
1998-08-09 01:17:19 +00:00
|
|
|
|
2000-05-19 08:44:38 +00:00
|
|
|
# $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}
|
1998-08-09 01:17:19 +00:00
|
|
|
|
2000-05-19 08:44:38 +00:00
|
|
|
PLIST_SUB+= SPOOL=${SPOOL}
|
1999-03-08 20:38:20 +00:00
|
|
|
|
2000-04-29 20:33:44 +00:00
|
|
|
MAKE_ENV+= SPOOL="${SPOOL}" \
|
2000-05-19 08:44:38 +00:00
|
|
|
BINOWN="${BINOWN}" \
|
|
|
|
BINGRP="${BINGRP}" \
|
2000-04-29 20:33:44 +00:00
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}" \
|
|
|
|
INSTALL_MAN="${INSTALL_MAN}"
|
1999-03-08 20:38:20 +00:00
|
|
|
|
2000-05-19 08:44:38 +00:00
|
|
|
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
|
|
|
|
|
1999-03-08 20:38:20 +00:00
|
|
|
post-install:
|
2000-04-29 20:33:44 +00:00
|
|
|
@${MKDIR} ${SPOOL}/wwwoffle
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/upgrade-config.pl ${SPOOL}/wwwoffle
|
2000-05-19 08:44:38 +00:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/wwwoffled.sh ${PREFIX}/etc/rc.d/wwwoffled.sh.sample
|
2000-04-29 20:33:44 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-03-08 20:38:20 +00:00
|
|
|
|
1998-08-09 01:17:19 +00:00
|
|
|
.include <bsd.port.mk>
|