From 7af377d7b46f251bee6c51400f1394af5c89a837 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 15 Sep 2000 14:50:58 +0000 Subject: Install p5-CGI documentation. --- www/p5-CGI/Makefile | 23 ++++++++++++++++++++++- www/p5-CGI/pkg/PLIST | 43 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 64 insertions(+), 2 deletions(-) (limited to 'www/p5-CGI') 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" diff --git a/www/p5-CGI/pkg/PLIST b/www/p5-CGI/pkg/PLIST index 65e178df182..0c3e9959ed0 100644 --- a/www/p5-CGI/pkg/PLIST +++ b/www/p5-CGI/pkg/PLIST @@ -1 +1,42 @@ -@comment $NetBSD: PLIST,v 1.2 2000/08/27 07:11:24 jlam Exp $ +@comment $NetBSD: PLIST,v 1.3 2000/09/15 14:50:58 jlam Exp $ +share/doc/html/p5-CGI/cgi-lib_porting.html +share/doc/html/p5-CGI/cgi_docs.html +share/doc/html/p5-CGI/examples/caution.xbm +share/doc/html/p5-CGI/examples/clickable_image.cgi +share/doc/html/p5-CGI/examples/clickable_image.txt +share/doc/html/p5-CGI/examples/cookie.cgi +share/doc/html/p5-CGI/examples/cookie.txt +share/doc/html/p5-CGI/examples/crash.cgi +share/doc/html/p5-CGI/examples/crash.txt +share/doc/html/p5-CGI/examples/customize.cgi +share/doc/html/p5-CGI/examples/customize.txt +share/doc/html/p5-CGI/examples/diff_upload.cgi +share/doc/html/p5-CGI/examples/diff_upload.txt +share/doc/html/p5-CGI/examples/dna.small.gif +share/doc/html/p5-CGI/examples/file_upload.cgi +share/doc/html/p5-CGI/examples/file_upload.txt +share/doc/html/p5-CGI/examples/frameset.cgi +share/doc/html/p5-CGI/examples/frameset.txt +share/doc/html/p5-CGI/examples/index.html +share/doc/html/p5-CGI/examples/internal_links.cgi +share/doc/html/p5-CGI/examples/internal_links.txt +share/doc/html/p5-CGI/examples/javascript.cgi +share/doc/html/p5-CGI/examples/javascript.txt +share/doc/html/p5-CGI/examples/make_links.pl +share/doc/html/p5-CGI/examples/monty.cgi +share/doc/html/p5-CGI/examples/monty.txt +share/doc/html/p5-CGI/examples/multiple_forms.cgi +share/doc/html/p5-CGI/examples/multiple_forms.txt +share/doc/html/p5-CGI/examples/nph-clock.cgi +share/doc/html/p5-CGI/examples/nph-clock.txt +share/doc/html/p5-CGI/examples/nph-multipart.cgi +share/doc/html/p5-CGI/examples/nph-multipart.txt +share/doc/html/p5-CGI/examples/popup.cgi +share/doc/html/p5-CGI/examples/popup.txt +share/doc/html/p5-CGI/examples/save_state.cgi +share/doc/html/p5-CGI/examples/save_state.txt +share/doc/html/p5-CGI/examples/tryit.cgi +share/doc/html/p5-CGI/examples/tryit.txt +share/doc/html/p5-CGI/examples/wilogo.gif +@dirrm share/doc/html/p5-CGI/examples +@dirrm share/doc/html/p5-CGI -- cgit v1.2.3