pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/tinyproxy user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0acb2df566f9
branches:  trunk
changeset: 561078:0acb2df566f9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 18:50:54 2009 +0000

description:
user-destdir support

diffstat:

 www/tinyproxy/Makefile |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 114092f3f893 -r 0acb2df566f9 www/tinyproxy/Makefile
--- a/www/tinyproxy/Makefile    Tue Jul 07 18:49:13 2009 +0000
+++ b/www/tinyproxy/Makefile    Tue Jul 07 18:50:54 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2008/01/18 05:09:54 tnn Exp $
+# $NetBSD: Makefile,v 1.25 2009/07/07 18:50:54 joerg Exp $
 #
 
 DISTNAME=      tinyproxy-1.6.2
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://tinyproxy.sourceforge.net/
 COMMENT=       Lightweight HTTP/SSL proxy
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= YES
 
 RCD_SCRIPTS=           tinyproxy
@@ -49,13 +51,13 @@
 SUBST_SED.docs+=       -e 's,@DATADIR@,${PREFIX}/share/tinyproxy,g'
 SUBST_SED.docs+=       -e 's,@VARBASE@,${VARBASE},g'
 
+INSTALLATION_DIRS=     ${EGDIR} share/doc/tinyproxy
+
 post-install:
-       ${INSTALL_DATA_DIR} ${EGDIR}
        ${INSTALL_DATA} ${WRKSRC}/doc/tinyproxy.conf \
-               ${EGDIR}/tinyproxy.conf.default
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tinyproxy
+               ${DESTDIR}${EGDIR}/tinyproxy.conf.default
        ${INSTALL_DATA} ${WRKSRC}/doc/filter-howto.txt \
-               ${PREFIX}/share/doc/tinyproxy/
+               ${DESTDIR}${PREFIX}/share/doc/tinyproxy/
 
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index