1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Add examples, so that one looking at the man page will be able to find them.

Approved by:	maintainer
This commit is contained in:
Mathieu Arnold 2005-02-25 17:30:55 +00:00
parent f76a88ef5d
commit 3b792b32ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129779
2 changed files with 41 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= CGI.pm
PORTVERSION= 3.05
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
@ -23,6 +24,24 @@ MAN3= CGI.3 CGI::Apache.3 CGI::Carp.3 CGI::Cookie.3 \
CGI::Fast.3 CGI::Pretty.3 CGI::Push.3 CGI::Switch.3 \
CGI::Util.3
.if !defined(NOPORTDOCS)
EXAMPLES= examples/caution.xbm examples/clickable_image.cgi \
examples/cookie.cgi examples/crash.cgi examples/customize.cgi \
examples/diff_upload.cgi examples/dna.small.gif \
examples/file_upload.cgi examples/frameset.cgi \
examples/index.html examples/internal_links.cgi \
examples/javascript.cgi examples/make_links.pl \
examples/monty.cgi examples/multiple_forms.cgi \
examples/nph-clock.cgi examples/nph-multipart.cgi \
examples/popup.cgi examples/save_state.cgi \
examples/tryit.cgi examples/wilogo.gif
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601

View File

@ -8,5 +8,27 @@
%%SITE_PERL%%/CGI/Switch.pm
%%SITE_PERL%%/CGI/Util.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/.packlist
%%PORTDOCS%%%%EXAMPLESDIR%%/caution.xbm
%%PORTDOCS%%%%EXAMPLESDIR%%/clickable_image.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/cookie.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/crash.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/customize.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/diff_upload.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/dna.small.gif
%%PORTDOCS%%%%EXAMPLESDIR%%/file_upload.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/frameset.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/index.html
%%PORTDOCS%%%%EXAMPLESDIR%%/internal_links.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/javascript.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/make_links.pl
%%PORTDOCS%%%%EXAMPLESDIR%%/monty.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/multiple_forms.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/nph-clock.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/nph-multipart.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/popup.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/save_state.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/tryit.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/wilogo.gif
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/CGI 2>/dev/null || true