diff options
-rw-r--r-- | www/p5-libapreq/Makefile | 33 | ||||
-rw-r--r-- | www/p5-libapreq/distinfo | 1 | ||||
-rw-r--r-- | www/p5-libapreq/files/patch-aa | 119 | ||||
-rw-r--r-- | www/p5-libapreq/pkg-comment | 1 | ||||
-rw-r--r-- | www/p5-libapreq/pkg-descr | 11 | ||||
-rw-r--r-- | www/p5-libapreq/pkg-plist | 25 |
6 files changed, 190 insertions, 0 deletions
diff --git a/www/p5-libapreq/Makefile b/www/p5-libapreq/Makefile new file mode 100644 index 000000000000..6b57bbcec4f6 --- /dev/null +++ b/www/p5-libapreq/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: p5-libapreq +# Version required: 0.31 +# Date created: March 13, 2000 +# Whom: Frank Mayhar <frank@exit.com> +# +# $FreeBSD$ +# + +DISTNAME= libapreq-0.31 +PKGNAME= p5-libapreq-0.31 +CATEGORIES= www perl5 devel +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Apache + +MAINTAINER= frank@exit.com + +BUILD_DEPENDS= ${LOCALBASE}/include/apache/httpd.h:${PORTSDIR}/www/apache13 \ + /nonexistent:${PORTSDIR}/www/p5-Apache:extract + +USE_PERL5= YES + +MAN3= Apache::Request.3 Apache::Cookie.3 libapreq.3 Apache::libapreq.3 + +MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +do-configure: + cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${PERL} Makefile.PL + +post-install: + ${CP} ${WRKSRC}/blib/arch/auto/libapreq/libapreq.so ${LOCALBASE}/lib + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib + +.include <bsd.port.mk> diff --git a/www/p5-libapreq/distinfo b/www/p5-libapreq/distinfo new file mode 100644 index 000000000000..73fa7af96c89 --- /dev/null +++ b/www/p5-libapreq/distinfo @@ -0,0 +1 @@ +MD5 (libapreq-0.31.tar.gz) = a40cce50e85bf090088f4fdcea3be865 diff --git a/www/p5-libapreq/files/patch-aa b/www/p5-libapreq/files/patch-aa new file mode 100644 index 000000000000..2d52d5fd12f4 --- /dev/null +++ b/www/p5-libapreq/files/patch-aa @@ -0,0 +1,119 @@ +--- c/Makefile.PL.orig Tue Mar 14 09:16:14 2000 ++++ c/Makefile.PL Tue Mar 14 16:31:06 2000 +@@ -7,49 +7,41 @@ + win32_setup(); + } + else { +- require Apache::src; +- my $src = Apache::src->new; ++ my $inc = `apxs -q INCLUDEDIR`; + + use Cwd; + my $pwd = fastcwd; + my @objs = qw(apache_request.o apache_cookie.o multipart_buffer.o); +- $MY_LD_RUN_PATH = "$Config{installsitearch}/auto/libapreq:$pwd"; + + WriteMakefile( +- #grr, problems with things finding libapreq.so, sort out later. +- 'LINKTYPE' => 'static', +-# 'SKIP' => [qw(dynamic_lib dynamic_bs)], ++ 'LINKTYPE' => 'dynamic', + 'NAME' => 'libapreq', +- 'INC' => $src->inc, +- 'TYPEMAPS' => $src->typemaps, ++ 'INC' => "-I$inc", + 'OBJECT' => "@objs", + ); + } + + use Cwd; + my $pwd = fastcwd; +-$ENV{LD_RUN_PATH} = +- "$ENV{LD_RUN_PATH}:$Config{installsitearch}/auto/libapr:$pwd"; + +-sub MY::dynamic { +- my $self = shift; +- my $string = $self->MM::dynamic; +- $string =~ s/(Makefile\s+).*/$1/g; +- $string; +-} +- +-sub MY::top_targets { +- my $self = shift; +- my $string = $self->MM::top_targets; +- my $libapreq = <<"EOF"; +-LD_RUN_PATH = $ENV{LD_RUN_PATH} +-EOF +- +- my $so = "\n".'$(DLBASE).$(DLEXT): $(INST_DYNAMIC)'."\n"; +- +- $string =~ s/(pure_all\s+::\s+)(.*)/$1 static $2/; +- return $libapreq . $so . $string; +-} ++#sub MY::dynamic { ++# my $self = shift; ++# my $string = $self->MM::dynamic; ++# $string =~ s/(Makefile\s+).*/$1/g; ++# $string; ++#} ++ ++#sub MY::top_targets { ++# my $self = shift; ++# my $string = $self->MM::top_targets; ++# my $libapreq = <<"EOF"; ++#EOF ++# ++# my $so = "\n".'$(DLBASE).$(DLEXT): $(INST_DYNAMIC)'."\n"; ++# ++# $string =~ s/(pure_all\s+::\s+)(.*)/$1 static $2/; ++# return $libapreq . $so . $string; ++#} + + sub MY::post_initialize { + my $self = shift; +--- Cookie/Makefile.PL.orig Tue Mar 14 16:02:52 2000 ++++ Cookie/Makefile.PL Tue Mar 14 16:05:01 2000 +@@ -15,9 +15,8 @@ + xsubpp("Cookie"); + } + else { +- require Apache::src; +- my $src = Apache::src->new; + use File::Path 'mkpath'; ++ my $inc = `apxs -q INCLUDEDIR`; + my $root = "../blib/arch/auto/libapreq"; + mkpath $root, 1, 0755 unless -d $root; + +@@ -25,8 +24,7 @@ + system "touch $root/libapreq.a"; + WriteMakefile( + @mm_args, +- 'INC' => "-I../c ". $src->inc, +- 'TYPEMAPS' => $src->typemaps, ++ 'INC' => "-I../c -I$inc -I$ENV{'PORTSDIR'}/www/p5-Apache/work/mod_perl-1.21/src/modules/perl", + 'LIBS' => "-L$root -lapreq", + ); + unlink "$root/libapreq.a"; +--- Request/Makefile.PL.orig Tue Mar 14 09:53:01 2000 ++++ Request/Makefile.PL Tue Mar 14 16:01:06 2000 +@@ -15,9 +15,8 @@ + xsubpp("Request"); + } + else { +- require Apache::src; +- my $src = Apache::src->new; + use File::Path 'mkpath'; ++ my $inc = `apxs -q INCLUDEDIR`; + my $root = "../blib/arch/auto/libapreq"; + mkpath $root, 1, 0755 unless -d $root; + +@@ -25,8 +24,7 @@ + system "touch $root/libapreq.a"; + WriteMakefile( + @mm_args, +- 'INC' => "-I../c ". $src->inc, +- 'TYPEMAPS' => $src->typemaps, ++ 'INC' => "-I../c -I$inc -I$ENV{'PORTSDIR'}/www/p5-Apache/work/mod_perl-1.21/src/modules/perl", + 'LIBS' => "-L$root -lapreq", + ); + unlink "$root/libapreq.a"; diff --git a/www/p5-libapreq/pkg-comment b/www/p5-libapreq/pkg-comment new file mode 100644 index 000000000000..3f63ba0dabb9 --- /dev/null +++ b/www/p5-libapreq/pkg-comment @@ -0,0 +1 @@ +Install libraries/include files into Perl architecture dependent locations. diff --git a/www/p5-libapreq/pkg-descr b/www/p5-libapreq/pkg-descr new file mode 100644 index 000000000000..22c7c9afd087 --- /dev/null +++ b/www/p5-libapreq/pkg-descr @@ -0,0 +1,11 @@ +libapreq - Generic Apache Request Library + +This package contains modules for manipulating client request data via +the Apache API with Perl and C. Functionality includes: + + - parsing of application/x-www-form-urlencoded data + - parsing of multipart/form-data + - parsing of HTTP Cookies + +See libapreq.pod for the C API documentation and +eg/c/ for examples. diff --git a/www/p5-libapreq/pkg-plist b/www/p5-libapreq/pkg-plist new file mode 100644 index 000000000000..a6f92d24542a --- /dev/null +++ b/www/p5-libapreq/pkg-plist @@ -0,0 +1,25 @@ +lib/libapreq.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/include/apache_request.h +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/include/apache_cookie.h +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/include/multipart_buffer.h +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/libapreq.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/libapreq.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Request/Request.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Request/Request.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Cookie/Cookie.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Cookie/Cookie.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/libapreq.pod +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/libapreq.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Request.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Cookie.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/.packlist +@exec ldconfig -m lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq +@exec ldconfig -m lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Request +@exec ldconfig -m lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Cookie +@unexec /sbin/ldconfig -R +@unexec /sbin/ldconfig -R +@unexec /sbin/ldconfig -R +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Request +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Cookie +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/include +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq |