summaryrefslogtreecommitdiff
path: root/www/wwwcount/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2010-06-27 19:16:03 +0000
committerjoerg <joerg>2010-06-27 19:16:03 +0000
commit51f888872843f177c770c86b2947de54a23db4c3 (patch)
tree347e93550856fad5f04d06acbec38fda9c55f63d /www/wwwcount/Makefile
parentcba9895794bd0e83d2eec7273e085ea538b54d27 (diff)
downloadpkgsrc-51f888872843f177c770c86b2947de54a23db4c3.tar.gz
DESTDIR support. Don't install sample.dat as file writeable to nobdy.
Bump revision.
Diffstat (limited to 'www/wwwcount/Makefile')
-rw-r--r--www/wwwcount/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/www/wwwcount/Makefile b/www/wwwcount/Makefile
index babcfceee61..b8fddc8fcdf 100644
--- a/www/wwwcount/Makefile
+++ b/www/wwwcount/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2009/12/17 19:32:28 abs Exp $
+# $NetBSD: Makefile,v 1.19 2010/06/27 19:16:03 joerg Exp $
DISTNAME= wwwcount2.5
PKGNAME= wwwcount-2.5
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.muquit.com/muquit/software/Count/Count.html
COMMENT= Graphical access counter, clock and date indicator for WWW pages
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 \
share/doc/wwwcount/Count2.5/images \
@@ -22,6 +24,11 @@ CONF_FILES= ${PREFIX}/share/examples/wwwcount.conf \
MAKE_JOBS_SAFE= NO
+SUBST_CLASSES+= destdir
+SUBST_STAGE.destdir= pre-install
+SUBST_FILES.destdir= Config.tmpl
+SUBST_SED.destdir= -e s,=\"${PREFIX},=\"${DESTDIR}${PREFIX},
+
pre-configure:
cd ${WRKSRC}; yes "" | PREFIX=${PREFIX} PKG_SYSCONFDIR=${PKG_SYSCONFDIR} VARBASE=${VARBASE} ./Count-config