387091ce18
Version 3.11 1. Killed warning in CGI::Cookie about MOD_PERL_API_VERSION 2. Fixed append() so that it works in function mode. 3. Workaround for a bug that appears in Apache2 versions through 2.0.54 in which SCRIPT_NAME and PATH_INFO are incorrect if the additional path_info contains a double slash. This workaround will handle the common case of http://mysite.com/cgi-bin/log.cgi/http://www.some.other.site/args, but will not handle the uncommon case of a ScriptAlias directive that adds additional path information to the end of the translated URI.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.36 2005/10/20 17:33:04 abs Exp $
|
|
#
|
|
|
|
VERS= 3.11
|
|
DISTNAME= CGI.pm-${VERS}
|
|
PKGNAME= p5-CGI-${VERS}
|
|
SVR4_PKGNAME= p5cgi
|
|
CATEGORIES= www perl5
|
|
MASTER_SITES+= ${MASTER_SITE_PERL_CPAN:=CGI/}
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://stein.cshl.org/WWW/software/CGI/
|
|
COMMENT= Perl5 module for writing forms-based CGI programs
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_LANGUAGES= # empty
|
|
PERL5_PACKLIST= auto/CGI/.packlist
|
|
HTMLDIR= ${PREFIX}/share/doc/html/p5-CGI
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/examples; \
|
|
for file in *.cgi *.pl; do \
|
|
${SED} -e "s|^#!/.*|#!${PERL5}|g" \
|
|
$${file} > $${file}.tmp; \
|
|
${MV} -f $${file}.tmp $${file}; \
|
|
done; \
|
|
${CHMOD} +x *.cgi; \
|
|
${PERL5} make_links.pl
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${HTMLDIR}
|
|
${INSTALL_DATA_DIR} ${HTMLDIR}/examples
|
|
cd ${WRKSRC}; ${INSTALL_DATA} *.html ${HTMLDIR}
|
|
cd ${WRKSRC}/examples; \
|
|
${INSTALL_DATA} *.gif *.html *.txt *.xbm ${HTMLDIR}/examples; \
|
|
${INSTALL_SCRIPT} *.cgi ${HTMLDIR}/examples
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|