summaryrefslogtreecommitdiff
path: root/www/p5-CGI/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/p5-CGI/Makefile')
-rw-r--r--www/p5-CGI/Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/www/p5-CGI/Makefile b/www/p5-CGI/Makefile
index be22dd6d04a..e07a8faffdf 100644
--- a/www/p5-CGI/Makefile
+++ b/www/p5-CGI/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2000/09/05 09:25:21 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2000/09/15 14:50:58 jlam Exp $
#
DISTNAME= CGI.pm-2.72
@@ -13,6 +13,15 @@ MAINTAINER= christos@netbsd.org
DEPENDS+= perl-{5.0*,5.6.0nb2,base-5.[6-9]*}:../../lang/perl5-base
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/CGI/.packlist
+HTMLDIR= ${PREFIX}/share/doc/html/p5-CGI
+
+post-extract:
+ @cd ${WRKSRC}/examples; for file in *.cgi *.html *.pl; do \
+ ${MV} -f $${file} $${file}.tmp; \
+ ${SED} -e "s,/usr/local/bin/perl,${PERL5},g" \
+ < $${file}.tmp > $${file}; \
+ ${RM} -f $${file}.tmp; \
+ done
pre-configure:
${CP} ${FILESDIR}/Makefile.PL ${WRKSRC}/Makefile.PL
@@ -20,4 +29,16 @@ pre-configure:
do-configure:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+post-build:
+ @cd ${WRKSRC}/examples; ${PERL5} make_links.pl
+
+pre-install:
+ @${RM} -rf ${WRKSRC}/examples/WORLD_WRITABLE
+
+post-install:
+ ${INSTALL_DATA_DIR} ${HTMLDIR}
+ ${INSTALL_DATA} ${WRKSRC}/cgi*.html ${HTMLDIR}
+ ${CP} -R ${WRKSRC}/examples ${HTMLDIR}/examples
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${HTMLDIR}/examples
+
.include "../../mk/bsd.pkg.mk"