Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2000 18:36:30 -0800 (PST)
From:      Frank Mayhar <frank@exit.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17379: New port.
Message-ID:  <200003150236.SAA82689@realtime.exit.com>

next in thread | raw e-mail | index | archive | help

>Number:         17379
>Category:       ports
>Synopsis:       New port, www/p5-libapreq
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 14 18:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Frank Mayhar
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Exit Consulting
>Environment:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-libapreq
#	p5-libapreq/files
#	p5-libapreq/files/md5
#	p5-libapreq/pkg
#	p5-libapreq/pkg/PLIST
#	p5-libapreq/pkg/COMMENT
#	p5-libapreq/pkg/DESCR
#	p5-libapreq/Makefile
#	p5-libapreq/patches
#	p5-libapreq/patches/patch-aa
#
echo c - p5-libapreq
mkdir -p p5-libapreq > /dev/null 2>&1
echo c - p5-libapreq/files
mkdir -p p5-libapreq/files > /dev/null 2>&1
echo x - p5-libapreq/files/md5
sed 's/^X//' >p5-libapreq/files/md5 << 'END-of-p5-libapreq/files/md5'
XMD5 (libapreq-0.31.tar.gz) = a40cce50e85bf090088f4fdcea3be865
END-of-p5-libapreq/files/md5
echo c - p5-libapreq/pkg
mkdir -p p5-libapreq/pkg > /dev/null 2>&1
echo x - p5-libapreq/pkg/PLIST
sed 's/^X//' >p5-libapreq/pkg/PLIST << 'END-of-p5-libapreq/pkg/PLIST'
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/include/apache_request.h
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/include/apache_cookie.h
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/include/multipart_buffer.h
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/libapreq.so
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/libapreq.bs
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Request/Request.so
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Request/Request.bs
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Cookie/Cookie.so
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Cookie/Cookie.bs
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/libapreq.pod
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/libapreq.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Request.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Apache/Cookie.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/.packlist
X@exec ldconfig -m lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq
X@exec ldconfig -m lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Request
X@exec ldconfig -m lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Cookie
X@unexec /sbin/ldconfig -R
X@unexec /sbin/ldconfig -R
X@unexec /sbin/ldconfig -R
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Request
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Apache/Cookie
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq/include
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/libapreq
END-of-p5-libapreq/pkg/PLIST
echo x - p5-libapreq/pkg/COMMENT
sed 's/^X//' >p5-libapreq/pkg/COMMENT << 'END-of-p5-libapreq/pkg/COMMENT'
XInstall libraries/include files into Perl architecture dependent locations.
END-of-p5-libapreq/pkg/COMMENT
echo x - p5-libapreq/pkg/DESCR
sed 's/^X//' >p5-libapreq/pkg/DESCR << 'END-of-p5-libapreq/pkg/DESCR'
Xlibapreq - Generic Apache Request Library
X
XThis package contains modules for manipulating client request data via
Xthe Apache API with Perl and C.  Functionality includes:
X
X - parsing of application/x-www-form-urlencoded data
X - parsing of multipart/form-data 
X - parsing of HTTP Cookies
X
XSee libapreq.pod for the C API documentation and
Xeg/c/ for examples.
END-of-p5-libapreq/pkg/DESCR
echo x - p5-libapreq/Makefile
sed 's/^X//' >p5-libapreq/Makefile << 'END-of-p5-libapreq/Makefile'
X# New ports collection makefile for:	p5-libapreq
X# Version required:                     0.31
X# Date created:				March 13, 2000
X# Whom:	      				Frank Mayhar <frank@exit.com>
X#
X# $FreeBSD: ports/www/p5-libwww/Makefile,v 1.37 2000/01/07 23:25:39 ache Exp $
X#
X
XDISTNAME=       libapreq-0.31
XPKGNAME=        p5-libapreq-0.31
XCATEGORIES=     www perl5 devel
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=     Apache
X
XMAINTAINER=	frank@exit.com
X
XBUILD_DEPENDS= 	${PORTSDIR}/www/apache13/work/apache_1.3.11/src/include/httpd.h:${PORTSDIR}/www/apache13
X
XUSE_PERL5=	YES
X
XMAN3=           Apache::Request.3 Apache::Cookie.3 libapreq.3 Apache::libapreq.3
X
XMAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
X
Xdo-configure:
X		cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${PERL} Makefile.PL
X
X.include <bsd.port.mk>
END-of-p5-libapreq/Makefile
echo c - p5-libapreq/patches
mkdir -p p5-libapreq/patches > /dev/null 2>&1
echo x - p5-libapreq/patches/patch-aa
sed 's/^X//' >p5-libapreq/patches/patch-aa << 'END-of-p5-libapreq/patches/patch-aa'
X--- c/Makefile.PL.orig	Tue Mar 14 09:16:14 2000
X+++ c/Makefile.PL	Tue Mar 14 16:31:06 2000
X@@ -7,49 +7,41 @@
X     win32_setup();
X }
X else {
X-    require Apache::src;
X-    my $src = Apache::src->new;
X+    my $inc = `apxs -q INCLUDEDIR`;
X 
X     use Cwd;
X     my $pwd = fastcwd;
X     my @objs = qw(apache_request.o apache_cookie.o multipart_buffer.o);
X-    $MY_LD_RUN_PATH = "$Config{installsitearch}/auto/libapreq:$pwd"; 
X 
X     WriteMakefile(
X-       #grr, problems with things finding libapreq.so, sort out later.
X-       'LINKTYPE' => 'static',
X-#       'SKIP' => [qw(dynamic_lib dynamic_bs)],
X+       'LINKTYPE' => 'dynamic',
X        'NAME'	 => 'libapreq',
X-       'INC' 	 => $src->inc,
X-       'TYPEMAPS'   => $src->typemaps,
X+       'INC' 	 => "-I$inc",
X        'OBJECT' => "@objs",
X     );
X }
X 
X use Cwd;
X my $pwd = fastcwd;
X-$ENV{LD_RUN_PATH} = 
X-    "$ENV{LD_RUN_PATH}:$Config{installsitearch}/auto/libapr:$pwd";
X 
X-sub MY::dynamic {
X-    my $self = shift;
X-    my $string = $self->MM::dynamic;
X-    $string =~ s/(Makefile\s+).*/$1/g;
X-    $string;
X-}
X-
X-sub MY::top_targets { 
X-    my $self = shift; 
X-    my $string = $self->MM::top_targets; 
X-    my $libapreq = <<"EOF";
X-LD_RUN_PATH = $ENV{LD_RUN_PATH}
X-EOF
X-
X-    my $so = "\n".'$(DLBASE).$(DLEXT): $(INST_DYNAMIC)'."\n";
X-
X-    $string =~ s/(pure_all\s+::\s+)(.*)/$1 static $2/; 
X-    return $libapreq . $so . $string;
X-}
X+#sub MY::dynamic {
X+#    my $self = shift;
X+#    my $string = $self->MM::dynamic;
X+#    $string =~ s/(Makefile\s+).*/$1/g;
X+#    $string;
X+#}
X+
X+#sub MY::top_targets { 
X+#    my $self = shift; 
X+#    my $string = $self->MM::top_targets; 
X+#    my $libapreq = <<"EOF";
X+#EOF
X+#
X+#    my $so = "\n".'$(DLBASE).$(DLEXT): $(INST_DYNAMIC)'."\n";
X+#
X+#    $string =~ s/(pure_all\s+::\s+)(.*)/$1 static $2/; 
X+#    return $libapreq . $so . $string;
X+#}
X 
X sub MY::post_initialize { 
X     my $self = shift; 
X--- Cookie/Makefile.PL.orig	Tue Mar 14 16:02:52 2000
X+++ Cookie/Makefile.PL	Tue Mar 14 16:05:01 2000
X@@ -15,9 +15,8 @@
X     xsubpp("Cookie");
X }
X else {
X-    require Apache::src;
X-    my $src = Apache::src->new;
X     use File::Path 'mkpath';
X+    my $inc = `apxs -q INCLUDEDIR`;
X     my $root = "../blib/arch/auto/libapreq";
X     mkpath $root, 1, 0755 unless -d $root;
X 
X@@ -25,8 +24,7 @@
X     system "touch $root/libapreq.a";
X     WriteMakefile(
X         @mm_args,
X-        'INC'	=> "-I../c ". $src->inc,
X-        'TYPEMAPS'  => $src->typemaps,
X+        'INC'	=> "-I../c -I$inc -I$ENV{'PORTSDIR'}/www/p5-Apache/work/mod_perl-1.21/src/modules/perl",
X         'LIBS' => "-L$root -lapreq",
X     );
X     unlink "$root/libapreq.a";
X--- Request/Makefile.PL.orig	Tue Mar 14 09:53:01 2000
X+++ Request/Makefile.PL	Tue Mar 14 16:01:06 2000
X@@ -15,9 +15,8 @@
X     xsubpp("Request");
X }
X else {
X-    require Apache::src;
X-    my $src = Apache::src->new;
X     use File::Path 'mkpath';
X+    my $inc = `apxs -q INCLUDEDIR`;
X     my $root = "../blib/arch/auto/libapreq";
X     mkpath $root, 1, 0755 unless -d $root;
X 
X@@ -25,8 +24,7 @@
X     system "touch $root/libapreq.a";
X     WriteMakefile(
X 	  @mm_args,
X-	  'INC'	=> "-I../c ". $src->inc,
X-	  'TYPEMAPS'  => $src->typemaps,
X+	  'INC'	=> "-I../c -I$inc -I$ENV{'PORTSDIR'}/www/p5-Apache/work/mod_perl-1.21/src/modules/perl",
X           'LIBS' => "-L$root -lapreq",
X     );
X     unlink "$root/libapreq.a";
END-of-p5-libapreq/patches/patch-aa

>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003150236.SAA82689>