diff options
author | jlam <jlam> | 2000-09-15 14:50:58 +0000 |
---|---|---|
committer | jlam <jlam> | 2000-09-15 14:50:58 +0000 |
commit | 7af377d7b46f251bee6c51400f1394af5c89a837 (patch) | |
tree | 5a86424caa94bdfcf90805755a8e00fa9a47eee2 /www/p5-CGI/Makefile | |
parent | f5aeeda74670d8c468d2487c75eb2c351c238dc1 (diff) | |
download | pkgsrc-7af377d7b46f251bee6c51400f1394af5c89a837.tar.gz |
Install p5-CGI documentation.
Diffstat (limited to 'www/p5-CGI/Makefile')
-rw-r--r-- | www/p5-CGI/Makefile | 23 |
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" |