pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/squid31 Fix destdir build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/941976b9afd5
branches:  trunk
changeset: 395527:941976b9afd5
user:      tron <tron%pkgsrc.org@localhost>
date:      Wed Jul 08 15:02:01 2009 +0000

description:
Fix destdir build.

diffstat:

 www/squid31/Makefile |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (34 lines):

diff -r ac1f72057b68 -r 941976b9afd5 www/squid31/Makefile
--- a/www/squid31/Makefile      Wed Jul 08 15:00:28 2009 +0000
+++ b/www/squid31/Makefile      Wed Jul 08 15:02:01 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2009/07/07 18:25:13 tron Exp $
+# $NetBSD: Makefile,v 1.9 2009/07/08 15:02:01 tron Exp $
 
 DISTNAME=      squid-3.1.0.9
 PKGNAME=       ${DISTNAME}     # Necessary for "pkgsrc/www/squid/options.mk"
@@ -36,15 +36,15 @@
          ${WRKSRC}/src/squid.conf.default
 
 install-error-pages:
-       cd ${WRKSRC}/errors &&                                  \
-       for DIR in *; do                                        \
-         if [ -d $$DIR ]; then                         \
-           ERROR_DIR=${PREFIX}/share/squid/errors/$$DIR;       \
-           ${INSTALL_DATA_DIR} $$ERROR_DIR;                    \
-           for FILE in $$DIR/ERR_*; do                 \
-             ${INSTALL_DATA} $$FILE $$ERROR_DIR;               \
-           done;                                               \
-         fi;                                                   \
+       cd ${WRKSRC}/errors &&                                          \
+       for DIR in *; do                                                \
+         if [ -d $$DIR ]; then                                         \
+           ERROR_DIR=${DESTDIR}${PREFIX}/share/squid/errors/$$DIR;     \
+           ${INSTALL_DATA_DIR} $$ERROR_DIR;                            \
+           for FILE in $$DIR/ERR_*; do                                 \
+             ${INSTALL_DATA} $$FILE $$ERROR_DIR;                       \
+           done;                                                       \
+         fi;                                                           \
        done
        ${LN} -s en ${PREFIX}/share/squid/errors/templates
 



Home | Main Index | Thread Index | Old Index