diff --git a/www/libapreq2/Makefile b/www/libapreq2/Makefile new file mode 100644 index 0000000..be0880e --- /dev/null +++ b/www/libapreq2/Makefile @@ -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 diff --git a/www/libapreq2/distinfo b/www/libapreq2/distinfo new file mode 100644 index 0000000..c018170 --- /dev/null +++ b/www/libapreq2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1678731141 +SHA256 (libapreq2-2.17.tar.gz) = 046487f084c12fa1c822affc5f7de56efed9b48905a426e631a6b949c114d86c +SIZE (libapreq2-2.17.tar.gz) = 849867 diff --git a/www/libapreq2/files/patch-glue-Makefile.in b/www/libapreq2/files/patch-glue-Makefile.in new file mode 100644 index 0000000..9a66859 --- /dev/null +++ b/www/libapreq2/files/patch-glue-Makefile.in @@ -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 diff --git a/www/libapreq2/files/patch-glue-perl-Makefile.PL b/www/libapreq2/files/patch-glue-perl-Makefile.PL new file mode 100644 index 0000000..4387e26 --- /dev/null +++ b/www/libapreq2/files/patch-glue-perl-Makefile.PL @@ -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{ diff --git a/www/libapreq2/files/patch-module-Makefile.in b/www/libapreq2/files/patch-module-Makefile.in new file mode 100644 index 0000000..bc8b746 --- /dev/null +++ b/www/libapreq2/files/patch-module-Makefile.in @@ -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) diff --git a/www/libapreq2/pkg-descr b/www/libapreq2/pkg-descr new file mode 100644 index 0000000..acdb305 --- /dev/null +++ b/www/libapreq2/pkg-descr @@ -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/ diff --git a/www/libapreq2/pkg-plist b/www/libapreq2/pkg-plist new file mode 100644 index 0000000..e550adf --- /dev/null +++ b/www/libapreq2/pkg-plist @@ -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