pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/wwwoffle Add PKG_DESTDIR_SUPPORT - release maintai...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/175a5def04fd
branches:  trunk
changeset: 554392:175a5def04fd
user:      abs <abs%pkgsrc.org@localhost>
date:      Fri Feb 13 22:37:02 2009 +0000

description:
Add PKG_DESTDIR_SUPPORT - release maintainership

diffstat:

 www/wwwoffle/MESSAGE  |   6 +++---
 www/wwwoffle/Makefile |  23 +++++++++++++----------
 2 files changed, 16 insertions(+), 13 deletions(-)

diffs (75 lines):

diff -r fa9a0ca85229 -r 175a5def04fd www/wwwoffle/MESSAGE
--- a/www/wwwoffle/MESSAGE      Fri Feb 13 22:36:15 2009 +0000
+++ b/www/wwwoffle/MESSAGE      Fri Feb 13 22:37:02 2009 +0000
@@ -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 @@
    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 -r fa9a0ca85229 -r 175a5def04fd www/wwwoffle/Makefile
--- a/www/wwwoffle/Makefile     Fri Feb 13 22:36:15 2009 +0000
+++ b/www/wwwoffle/Makefile     Fri Feb 13 22:37:02 2009 +0000
@@ -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 @@
 MASTER_SITES=  http://www.gedanken.freeserve.co.uk/download-wwwoffle/
 EXTRACT_SUFX=  .tgz
 
-MAINTAINER=    abs%NetBSD.org@localhost
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.gedanken.demon.co.uk/wwwoffle/
 COMMENT=       WWW proxy with support for offline browsing
 
@@ -46,24 +46,27 @@
                ${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}



Home | Main Index | Thread Index | Old Index