diff options
author | abs <abs@pkgsrc.org> | 2009-02-13 22:37:02 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-02-13 22:37:02 +0000 |
commit | 5efb03790081903ca48e2518d86a5852914288ae (patch) | |
tree | 12a522d6ce10c9e3511603184ccead81078a4300 /www/wwwoffle | |
parent | 8cdceaf503f04412c39aeccb4777ddee2cb59750 (diff) | |
download | pkgsrc-5efb03790081903ca48e2518d86a5852914288ae.tar.gz |
Add PKG_DESTDIR_SUPPORT - release maintainership
Diffstat (limited to 'www/wwwoffle')
-rw-r--r-- | www/wwwoffle/MESSAGE | 6 | ||||
-rw-r--r-- | www/wwwoffle/Makefile | 23 |
2 files changed, 16 insertions, 13 deletions
diff --git a/www/wwwoffle/MESSAGE b/www/wwwoffle/MESSAGE index 68fdbf235f3..f60cab62451 100644 --- a/www/wwwoffle/MESSAGE +++ b/www/wwwoffle/MESSAGE @@ -1,5 +1,5 @@ =========================================================================== -$NetBSD: MESSAGE,v 1.6 2005/11/01 12:22:24 abs Exp $ +$NetBSD: MESSAGE,v 1.7 2009/02/13 22:37:02 abs Exp $ 1) To enable "wwwwoffled" to start on boot on NetBSD-1.5 or newer, please copy "${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/wwwoffled" to @@ -20,8 +20,8 @@ fi example "crontab fragment": # wwwoffle proxy maintenance -01 1 * * 0-5 /usr/bin/nice ${PREFIX}/bin/wwwoffle -purge -c ${PREFIX}/etc/wwwoffle/wwwoffle.conf && /bin/sh /var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-incr -01 1 * * 6 /usr/bin/nice ${PREFIX}/bin/wwwoffle -purge -c ${PREFIX}/etc/wwwoffle/wwwoffle.conf && /bin/sh /var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full +01 1 * * 0-5 /usr/bin/nice ${PREFIX}/bin/wwwoffle -purge -c ${PREFIX}/etc/wwwoffle/wwwoffle.conf && /bin/sh /var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-incr +01 1 * * 6 /usr/bin/nice ${PREFIX}/bin/wwwoffle -purge -c ${PREFIX}/etc/wwwoffle/wwwoffle.conf && /bin/sh /var/wwwoffle/search/htdig/scripts/wwwoffle-htdig-full 3) Docs and links for the other supported cache searchers, and all documentation in fact, is easily accessible once wwwoffle is started, diff --git a/www/wwwoffle/Makefile b/www/wwwoffle/Makefile index 2a411fa40a3..f65a5ea5c7a 100644 --- a/www/wwwoffle/Makefile +++ b/www/wwwoffle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.71 2007/12/21 22:54:57 joerg Exp $ +# $NetBSD: Makefile,v 1.72 2009/02/13 22:37:02 abs Exp $ DISTNAME= wwwoffle-2.9a PKGREVISION= 1 @@ -6,7 +6,7 @@ CATEGORIES= www MASTER_SITES= http://www.gedanken.freeserve.co.uk/download-wwwoffle/ EXTRACT_SUFX= .tgz -MAINTAINER= abs@NetBSD.org +MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.gedanken.demon.co.uk/wwwoffle/ COMMENT= WWW proxy with support for offline browsing @@ -46,24 +46,27 @@ post-build: ${RM} $$f.old; \ done +PKG_DESTDIR_SUPPORT = user-destdir + # For bulk-build machines: a one-time install/deinstall, if wwwoffle # is never run, leaves an incomplete cache directory, which the install # target incorrectly calculates to be a pre-2.2 cache. This tricks it # into setting up the cache directory properly. pre-install: - ${MKDIR} ${VARBASE}/wwwoffle/prevtime1 + ${MKDIR} ${DESTDIR}${VARBASE}/wwwoffle/prevtime1 post-install: ${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config.pl \ - ${PREFIX}/sbin/wwwoffle-upgrade-config.pl + ${DESTDIR}${PREFIX}/sbin/wwwoffle-upgrade-config.pl ${INSTALL_SCRIPT} ${WRKSRC}/conf/upgrade-config-2.0-2.5.pl \ - ${PREFIX}/sbin/wwwoffle-upgrade-config-2.0-2.5.pl + ${DESTDIR}${PREFIX}/sbin/wwwoffle-upgrade-config-2.0-2.5.pl # Directories other than html and search are automatically created at run time - ${TAR} cCf / - var/wwwoffle/html var/wwwoffle/search | ${GZIP_CMD} -9 \ - > ${PREFIX}/libdata/wwwoffle-spool.tar.gz - ${RMDIR} ${PREFIX}/share/doc/wwwoffle/ru - ${RMDIR} ${PREFIX}/share/doc/wwwoffle/nl - ${RMDIR} ${PREFIX}/share/doc/wwwoffle/it + ${TAR} cCf ${DESTDIR}/ - var/wwwoffle/html var/wwwoffle/search | \ + ${GZIP_CMD} -9 \ + > ${DESTDIR}${PREFIX}/libdata/wwwoffle-spool.tar.gz + ${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/ru + ${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/nl + ${RMDIR} ${DESTDIR}${PREFIX}/share/doc/wwwoffle/it @${ECHO} @${ECHO} ==+===+===+===+===+===+===+===+===+===+===+===+===+===+===+= @${ECHO} |