diff options
Diffstat (limited to 'www/wwwoffle/Makefile')
-rw-r--r-- | www/wwwoffle/Makefile | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/www/wwwoffle/Makefile b/www/wwwoffle/Makefile index 100f374e09b..e83a3edcabc 100644 --- a/www/wwwoffle/Makefile +++ b/www/wwwoffle/Makefile @@ -1,12 +1,12 @@ -# $NetBSD: Makefile,v 1.7 1999/04/21 10:08:20 tron Exp $ +# $NetBSD: Makefile,v 1.8 1999/09/03 21:07:36 tron Exp $ -DISTNAME= wwwoffle-2.2 +DISTNAME= wwwoffle-2.4 CATEGORIES= www MASTER_SITES= ftp://ftp.demon.co.uk/pub/unix/httpd/ \ - ftp://sunsite.unc.edu/pub/Linux/apps/www/servers/ + ${MASTER_SITE_SUNSITE:=apps/www/servers/} EXTRACT_SUFX= .tgz -MAINTAINER= magick@bundy.lip.owl.de +MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/ USE_GMAKE= yes @@ -15,6 +15,21 @@ NO_CONFIGURE= yes MESSAGE_FILE= ${WRKDIR}/MESSAGE PLIST_SRC= ${WRKDIR}/PLIST +# to get USE_INET6 +.include "../../mk/bsd.prefs.mk" + +# IPv6 support +.if defined(USE_INET6) && ${USE_INET6} == YES +PATCHDIR= ${WRKDIR}/.patches +.endif + +pre-patch: +.if defined(USE_INET6) && ${USE_INET6} == YES + ${MKDIR} ${WRKDIR}/.patches + ${CP} ${.CURDIR}/patches/patch-* ${WRKDIR}/.patches + ${CP} ${.CURDIR}/patches.v6/patch-* ${WRKDIR}/.patches +.endif + post-build: @${SED} -e 's#@PREFIX@#${PREFIX}#g' <${FILESDIR}/wwwoffle.sh \ >${WRKDIR}/wwwoffle.sh @@ -26,9 +41,15 @@ pre-install: ${MKDIR} ${PREFIX}/etc/wwwoffle post-install: - ${CP} ${PREFIX}/etc/wwwoffle/wwwoffle.conf \ - ${PREFIX}/etc/wwwoffle/wwwoffle.conf.default + if [ -f ${PREFIX}/etc/wwwoffle/wwwoffle.conf.install ]; then \ + ${MV} ${PREFIX}/etc/wwwoffle/wwwoffle.conf.install \ + ${PREFIX}/etc/wwwoffle/wwwoffle.conf.default; \ + else \ + ${CP} -p ${PREFIX}/etc/wwwoffle/wwwoffle.conf \ + ${PREFIX}/etc/wwwoffle/wwwoffle.conf.default; \ + fi ${INSTALL_SCRIPT} ${WRKDIR}/wwwoffle.sh ${PREFIX}/etc/rc.d + ${CHOWN} -R ${BINOWN}:${BINGRP} /var/wwwoffle ${GTAR} czCf / ${PREFIX}/libdata/wwwoffle-spool.tar.gz var/wwwoffle .include "../../mk/bsd.pkg.mk" |