From 69e2c485f34fd4bc1f341673ae48c60f72670eab Mon Sep 17 00:00:00 2001 From: rh Date: Thu, 2 Dec 1999 20:46:35 +0000 Subject: Import of ap-Embperl-1.2.0, an Apache Perl5 library for embedding perl in HTML documents. This package was submitted by Havard Eidnes in pkg/8936 (with a few modifications by me) -- thanks! --- www/ap-Embperl/Makefile | 25 ++++++++++++++++++ www/ap-Embperl/files/md5 | 3 +++ www/ap-Embperl/files/patch-sum | 4 +++ www/ap-Embperl/patches/patch-aa | 52 ++++++++++++++++++++++++++++++++++++++ www/ap-Embperl/patches/patch-ab | 15 +++++++++++ www/ap-Embperl/pkg/COMMENT | 1 + www/ap-Embperl/pkg/DESCR | 17 +++++++++++++ www/ap-Embperl/pkg/PLIST-md.shared | 4 +++ www/ap-Embperl/pkg/PLIST-md.static | 4 +++ www/ap-Embperl/pkg/PLIST-mi | 20 +++++++++++++++ 10 files changed, 145 insertions(+) create mode 100644 www/ap-Embperl/Makefile create mode 100644 www/ap-Embperl/files/md5 create mode 100644 www/ap-Embperl/files/patch-sum create mode 100644 www/ap-Embperl/patches/patch-aa create mode 100644 www/ap-Embperl/patches/patch-ab create mode 100644 www/ap-Embperl/pkg/COMMENT create mode 100644 www/ap-Embperl/pkg/DESCR create mode 100644 www/ap-Embperl/pkg/PLIST-md.shared create mode 100644 www/ap-Embperl/pkg/PLIST-md.static create mode 100644 www/ap-Embperl/pkg/PLIST-mi (limited to 'www') diff --git a/www/ap-Embperl/Makefile b/www/ap-Embperl/Makefile new file mode 100644 index 00000000000..58ea9dc6aeb --- /dev/null +++ b/www/ap-Embperl/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ +# + +DISTNAME= HTML-Embperl-1.2.0 +PKGNAME= ap-Embperl-1.2.0 +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Apache/} + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://perl.apache.org/embperl/ + +DEPENDS+= ap-perl-*:../../www/ap-perl +DEPENDS+= p5-HTML-Parser-*:../../www/p5-HTML-Parser + +USE_PERL5= YES + +do-configure: + @cd ${WRKSRC}; ${SETENV} \ + ${MAKE_ENV} \ + APACHE_SRC=${PREFIX}/include/httpd \ + APACHE_MODULES=${PREFIX}/lib/httpd \ + APACHE=${PREFIX}/sbin/httpd \ + ${PREFIX}/bin/perl Makefile.PL + +.include "../../mk/bsd.pkg.mk" diff --git a/www/ap-Embperl/files/md5 b/www/ap-Embperl/files/md5 new file mode 100644 index 00000000000..bf0e33288e7 --- /dev/null +++ b/www/ap-Embperl/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ + +MD5 (HTML-Embperl-1.2.0.tar.gz) = 77aecf6dcd021031975c02b3a3d6bad0 diff --git a/www/ap-Embperl/files/patch-sum b/www/ap-Embperl/files/patch-sum new file mode 100644 index 00000000000..ef4da2492e0 --- /dev/null +++ b/www/ap-Embperl/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ + +MD5 (patch-aa) = 3df070be2bc4d84fddfb72498e22fcfd +MD5 (patch-ab) = a508adfbf6e3218d6e46fb87db27f7a0 diff --git a/www/ap-Embperl/patches/patch-aa b/www/ap-Embperl/patches/patch-aa new file mode 100644 index 00000000000..291fecf5f35 --- /dev/null +++ b/www/ap-Embperl/patches/patch-aa @@ -0,0 +1,52 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ + +Our perl_module is named mod_perl.so, not libperl.so +Get rid of annoying interaction, partly by commenting out some code, +partly by adding support for a few environment variables. + +--- Makefile.PL.dist Wed Nov 17 07:40:47 1999 ++++ Makefile.PL Thu Dec 2 19:38:08 1999 +@@ -24,10 +24,10 @@ + %neededmodules = + ( + 'mod_perl.c' => { name => 'perl_module', +- path => ['$apache_src/modules/perl/libperl.so', '$EPBINDIR/modules/libperl.so'], ++ path => ['$apache_src/modules/perl/mod_perl.so', '$EPBINDIR/modules/mod_perl.so'], + win32path => ['$EPBINDIR/modules/apachemoduleperl.dll'], + win32path => ['$mpdll'], +- file => 'libperl.so', ++ file => 'mod_perl.so', + win32file => 'apachemoduleperl.dll', + }, + 'mod_dir.c' => { name => 'dir_module', +@@ -328,7 +328,8 @@ + + if (-e "$apache_src/httpd.h" || -e "$apache_src/main/httpd.h" || -e "$apache_src/include/httpd.h") + { +- $b = GetYesNo ("Use $apache_src as Apache source", 'y') if (!$b) ; ++ # $b = GetYesNo ("Use $apache_src as Apache source", 'y') if (!$b) ; ++ $b = 1; + } + } + +@@ -519,7 +520,8 @@ + $EPGROUP = GetString ("Group to run httpd", $EPGROUP) ; + } + +- $EPHTTPD = "$apache_src/httpd" ; ++ $EPHTTPD = $ENV{APACHE}; ++ $EPHTTPD = "$apache_src/httpd" if (! -e $EPHTTPD); + $EPHTTPD = "$apache_src/httpsd" if (!-e $EPHTTPD && -e "$apache_src/httpsd") ; + + if (!-e $EPHTTPD) +@@ -565,7 +567,9 @@ + $EPBINDIR = dirname ($EPHTTPD) ; + $EPMODPERL = '' ; + +- $addmodpath = '' ; ++ # $addmodpath = '' ; ++ $addmodpath = $ENV{APACHE_MODULES}; ++ $addmodpath = '' if (! -d $addmodpath); + while (($mod, $opt) = each %neededmodules) + { + if (!grep (/$mod/, @modules)) diff --git a/www/ap-Embperl/patches/patch-ab b/www/ap-Embperl/patches/patch-ab new file mode 100644 index 00000000000..0e79839cd6f --- /dev/null +++ b/www/ap-Embperl/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ + +Perl's pod2man complains of missing "DESCRIPTION", so add one. + +--- EmbperlD.pod.dist Wed Nov 17 07:40:48 1999 ++++ EmbperlD.pod Thu Dec 2 19:45:01 1999 +@@ -8,6 +8,8 @@ + + I ist ein Perlmodul welches es erlaubt beliebigen Perlcode in HTML Dokumente einzufügen. + ++=head1 DESCRIPTION ++ + =head1 Aufrufen/Konfigurieren von Embperl + + =head2 mod_perl Konfiguration diff --git a/www/ap-Embperl/pkg/COMMENT b/www/ap-Embperl/pkg/COMMENT new file mode 100644 index 00000000000..343dd206c79 --- /dev/null +++ b/www/ap-Embperl/pkg/COMMENT @@ -0,0 +1 @@ +perl5 library for embedding perl in HTML documents diff --git a/www/ap-Embperl/pkg/DESCR b/www/ap-Embperl/pkg/DESCR new file mode 100644 index 00000000000..7befb69b488 --- /dev/null +++ b/www/ap-Embperl/pkg/DESCR @@ -0,0 +1,17 @@ + Embperl gives you the power to embed Perl code in your HTML + documents. Using Perl means being able to use a very + elaborate programming language, which is widely used for + WWW purposes. You can also use hundreds of Perl modules + which have already been written - including DBI - for + database access to a growing number of database systems. + + While this could also be done with other packages, Embperl + has several features especially for HTML: dynamic tables, + formfield-processing, escaping/unescaping and more. + + Embperl is a server-side tool, which means it's + browser-indpendent. It can run in various ways: Under + mod_perl, as a cgi script, or offline. + + There is also a module for Database access within Embperl, + look at DBIx::Recordset. diff --git a/www/ap-Embperl/pkg/PLIST-md.shared b/www/ap-Embperl/pkg/PLIST-md.shared new file mode 100644 index 00000000000..1b7e3d76e79 --- /dev/null +++ b/www/ap-Embperl/pkg/PLIST-md.shared @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST-md.shared,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/HTML/Embperl/Embperl.so +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/HTML/Embperl/Embperl.bs +@dirrm lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/HTML/Embperl diff --git a/www/ap-Embperl/pkg/PLIST-md.static b/www/ap-Embperl/pkg/PLIST-md.static new file mode 100644 index 00000000000..79df1f510e2 --- /dev/null +++ b/www/ap-Embperl/pkg/PLIST-md.static @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST-md.static,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/HTML/Embperl/Embperl.a +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/HTML/Embperl/extralibs.ld +@dirrm lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/HTML/Embperl diff --git a/www/ap-Embperl/pkg/PLIST-mi b/www/ap-Embperl/pkg/PLIST-mi new file mode 100644 index 00000000000..dd7e48806ec --- /dev/null +++ b/www/ap-Embperl/pkg/PLIST-mi @@ -0,0 +1,20 @@ +@comment $NetBSD: PLIST-mi,v 1.1.1.1 1999/12/02 20:46:35 rh Exp $ +lib/perl5/site_perl/HTML/Features.pod +lib/perl5/site_perl/HTML/IntroD.pod +lib/perl5/site_perl/HTML/embpcgi.pl +lib/perl5/site_perl/HTML/Embperl.pm +lib/perl5/site_perl/HTML/embpexec.pl +lib/perl5/site_perl/HTML/FeaturesD.pod +lib/perl5/site_perl/HTML/Embperl/Session.pm +lib/perl5/site_perl/HTML/Embperl/Module.pm +lib/perl5/site_perl/HTML/INSTALL.pod +lib/perl5/site_perl/HTML/Embperl.pod +lib/perl5/site_perl/HTML/Faq.pod +lib/perl5/site_perl/HTML/Changes.pod +lib/perl5/site_perl/HTML/EmbperlD.pod +lib/perl5/site_perl/HTML/Intro.pod +lib/perl5/site_perl/HTML/embpcgi.test.pl +lib/perl5/man/man3/HTML::Embperl.3 +lib/perl5/man/man3/HTML::EmbperlD.3 +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/HTML/Embperl/.packlist +@dirrm lib/perl5/site_perl/HTML/Embperl -- cgit v1.2.3