summaryrefslogtreecommitdiff
path: root/www/p5-HTTPD-User-Manage
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-26 05:18:32 +0000
committerjlam <jlam@pkgsrc.org>2001-11-26 05:18:32 +0000
commit748e348ae265b79b0a8844e62564c27990ed9a37 (patch)
treed2ee51970f6bbc62338eade6396c128cc3365855 /www/p5-HTTPD-User-Manage
parent450b47d81a172ca0abaa318e207fd42566bfe3dc (diff)
downloadpkgsrc-748e348ae265b79b0a8844e62564c27990ed9a37.tar.gz
Respect PKG_SYSCONFDIR.
Diffstat (limited to 'www/p5-HTTPD-User-Manage')
-rw-r--r--www/p5-HTTPD-User-Manage/Makefile15
-rw-r--r--www/p5-HTTPD-User-Manage/distinfo4
-rw-r--r--www/p5-HTTPD-User-Manage/patches/patch-aa4
3 files changed, 15 insertions, 8 deletions
diff --git a/www/p5-HTTPD-User-Manage/Makefile b/www/p5-HTTPD-User-Manage/Makefile
index b2a91a73969..a7007ab6c75 100644
--- a/www/p5-HTTPD-User-Manage/Makefile
+++ b/www/p5-HTTPD-User-Manage/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/10/18 15:20:51 veego Exp $
+# $NetBSD: Makefile,v 1.4 2001/11/26 05:18:32 jlam Exp $
DISTNAME= HTTPD-User-Manage-1.58
PKGNAME= p5-${DISTNAME}
@@ -14,13 +14,20 @@ USE_PERL5= # defined
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/HTTPD-User-Manage/.packlist
REPLACE_PERL= user_manage
+PKG_SYSCONFSUBDIR?= httpd
+
do-configure:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
post-patch:
- @${MV} ${WRKSRC}/user_manage ${WRKSRC}/user_manage.old
- @${SED} -e "s+__PREFIX__+${PREFIX}+g" \
- ${WRKSRC}/user_manage.old > ${WRKSRC}/user_manage
+ 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
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/user_manage ${PREFIX}/bin
diff --git a/www/p5-HTTPD-User-Manage/distinfo b/www/p5-HTTPD-User-Manage/distinfo
index 6c55e0007bb..bb8d644c5ed 100644
--- a/www/p5-HTTPD-User-Manage/distinfo
+++ b/www/p5-HTTPD-User-Manage/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2001/07/17 23:04:10 wiz Exp $
+$NetBSD: distinfo,v 1.3 2001/11/26 05:18:32 jlam Exp $
SHA1 (HTTPD-User-Manage-1.58.tar.gz) = 56141f1d4a1889da2adeaca74977dd43e4d7338f
Size (HTTPD-User-Manage-1.58.tar.gz) = 112006 bytes
-SHA1 (patch-aa) = 647f7e7be191db3947c609e888a34d35767ba4ef
+SHA1 (patch-aa) = fc9338ddfdb4e16319fb2e215fbd028326c6077b
diff --git a/www/p5-HTTPD-User-Manage/patches/patch-aa b/www/p5-HTTPD-User-Manage/patches/patch-aa
index aa17c9e08d0..a513b71d79a 100644
--- a/www/p5-HTTPD-User-Manage/patches/patch-aa
+++ b/www/p5-HTTPD-User-Manage/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2001/07/17 23:04:11 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2001/11/26 05:18:32 jlam Exp $
--- user_manage.orig Tue Feb 20 04:50:33 2001
+++ user_manage Fri Jul 13 20:32:51 2001
@@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.2 2001/07/17 23:04:11 wiz Exp $
# Path to our configuration file. Change as appropriate for
# your site.
-$CONFIG_FILE = './t/realms.conf';
-+$CONFIG_FILE = '__PREFIX__/etc/httpd/realms.conf';
++$CONFIG_FILE = '@PKG_SYSCONFDIR@/realms.conf';
# Set this to the name of your server. Only 'apache' is guaranteed
# to work. 'ncsa' and 'netscape' might work too -- you'll have to try.