add www/libaprep2 from porttree

This commit is contained in:
2025-07-18 04:25:11 +02:00
parent 8befa9b010
commit afb8ac49b7
7 changed files with 88 additions and 0 deletions

24
www/libapreq2/Makefile Normal file
View File

@ -0,0 +1,24 @@
PORTNAME= libapreq2
PORTVERSION= 2.17
PORTREVISION= 0
CATEGORIES= www devel
MASTER_SITES= APACHE_HTTPD/libapreq
MAINTAINER= apache@FreeBSD.org
COMMENT= Generic Apache2 Request Library
WWW= https://metacpan.org/dist/libapreq2
LICENSE= APACHE20
LIB_DEPENDS= libapr-1.so:devel/apr1 \
libaprutil-1.so:devel/apr1 \
libexpat.so:textproc/expat2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-apache2-apxs=${APXS} --with-expat=${LOCALBASE}
INSTALL_TARGET= install-strip
USES= apache cpe libtool
CPE_VENDOR= apache
USE_LDCONFIG= yes
.include <bsd.port.mk>

3
www/libapreq2/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1678731141
SHA256 (libapreq2-2.17.tar.gz) = 046487f084c12fa1c822affc5f7de56efed9b48905a426e631a6b949c114d86c
SIZE (libapreq2-2.17.tar.gz) = 849867

View File

@ -0,0 +1,11 @@
--- ./glue/Makefile.in.orig 2009-04-13 06:32:19.000000000 +0000
+++ ./glue/Makefile.in 2009-04-13 06:32:29.000000000 +0000
@@ -266,7 +266,7 @@
perl_install:
cd perl; INSTALL=1 @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@
- cd perl; $(MAKE) install
+ cd perl; $(MAKE) pure_install
perl_clean:
-cd perl; $(MAKE) clean

View File

@ -0,0 +1,13 @@
--- glue/perl/Makefile.PL.orig 2006-08-09 04:26:45.000000000 +0000
+++ glue/perl/Makefile.PL 2008-08-25 18:07:08.000000000 +0000
@@ -415,8 +450,8 @@
'NAME' => '$class',
'VERSION' => '$version',
'TYPEMAPS' => [qw(@$mp2_typemaps $typemap)],
- 'INC' => "-I$base_dir/glue/perl/xs -I$inc_dir -I$xs_dir $apache_includes",
- 'LIBS' => "$apreq_libs $apr_libs",
+ 'INC' => "-I$base_dir/glue/perl/xs -I$inc_dir -I$xs_dir $apache_includes -I\\\$(LOCALBASE)/%%APACHEINCLUDEDIR%%/modules/perl",
+ 'LIBS' => "$apreq_libs $apr_libs -L\\\$(LOCALBASE)/lib",
} ;
$txt .= "'depend' => $deps,\n" if ($deps) ;
$txt .= qq{

View File

@ -0,0 +1,11 @@
--- module/Makefile.in.orig 2023-03-13 19:18:13.887355000 +0100
+++ module/Makefile.in 2023-03-13 19:19:15.902362000 +0100
@@ -100,7 +100,7 @@ CONFIG_CLEAN_VPATH_FILES =
CONFIG_HEADER = $(top_builddir)/include/apreq_config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
-PROGRAMS = $(noinst_PROGRAMS)
+PROGRAMS =
test_cgi_SOURCES = test_cgi.c
test_cgi_OBJECTS = test_cgi.$(OBJEXT)
test_cgi_LDADD = $(LDADD)

10
www/libapreq2/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
libapreq2 - Generic Apache2 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 also: https://httpd.apache.org/apreq/

16
www/libapreq2/pkg-plist Normal file
View File

@ -0,0 +1,16 @@
bin/apreq2-config
%%APACHEINCLUDEDIR%%/apreq2/apreq_module_apache2.h
include/apreq2/apreq.h
include/apreq2/apreq_cookie.h
include/apreq2/apreq_error.h
include/apreq2/apreq_module.h
include/apreq2/apreq_param.h
include/apreq2/apreq_parser.h
include/apreq2/apreq_util.h
include/apreq2/apreq_version.h
lib/libapreq2.a
lib/libapreq2.so
lib/libapreq2.so.3
lib/libapreq2.so.3.8.1
%%APACHEMODDIR%%/mod_apreq2.a
%%APACHEMODDIR%%/mod_apreq2.so