summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2007-01-23 06:07:50 +0000
committerrillig <rillig>2007-01-23 06:07:50 +0000
commiteba5e36700d70113bafb0678cda9a43d8ea87367 (patch)
treed09a706362667bbc42be5ff7d8c312c7a602ce9e
parent11b4d2186f1b1d2521189c8d26d81095722ffe46 (diff)
downloadpkgsrc-eba5e36700d70113bafb0678cda9a43d8ea87367.tar.gz
Added INSTALLATION_DIRS, fixed file permissions (one x bit) and
converted the package to using the SUBST framework. PKGREVISION++
-rw-r--r--www/p5-HTTPD-User-Manage/Makefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/www/p5-HTTPD-User-Manage/Makefile b/www/p5-HTTPD-User-Manage/Makefile
index cef66cc542b..2c72ad922ec 100644
--- a/www/p5-HTTPD-User-Manage/Makefile
+++ b/www/p5-HTTPD-User-Manage/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.14 2006/03/04 21:31:02 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2007/01/23 06:07:50 rillig Exp $
DISTNAME= HTTPD-User-Manage-1.58
PKGNAME= p5-${DISTNAME}
SVR4_PKGNAME= p5hum
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=HTTPD/}
@@ -13,23 +13,21 @@ COMMENT= Perl script/modules for managing web access control
PERL5_PACKLIST= auto/HTTPD-User-Manage/.packlist
REPLACE_PERL= user_manage
+INSTALLATION_DIRS= bin libexec/cgi-bin share/doc/user_manage
PKG_SYSCONFSUBDIR?= httpd
-post-patch:
- cd ${WRKSRC}; for file in user_manage; do \
- ${SED} -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
- $${file} > $${file}.fixed; \
- if [ -x $${file} ]; then \
- ${CHMOD} +x $${file}.fixed; \
- fi; \
- ${MV} -f $${file}.fixed $${file}; \
- done
+SUBST_CLASSES+= um
+SUBST_STAGE.um= pre-configure
+SUBST_FILES.um= user_manage
+SUBST_VARS.um= PKG_SYSCONFDIR
+
+post-extract:
+ chmod -x ${WRKSRC}/lib/HTTPD/UserAdmin/DBM.pm
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/user_manage ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/user_manage ${PREFIX}/libexec/cgi-bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/user_manage
${INSTALL_DATA} ${WRKSRC}/user_manage.html \
${PREFIX}/share/doc/user_manage/user_manage.html