diff options
author | Oleg A. Mamontov <oleg@mamontov.net> | 2023-08-07 18:41:50 +0000 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2023-08-09 13:01:17 +0000 |
commit | 98173bcdc0a87932e5a5d2b95cf963c918dda82d (patch) | |
tree | a6f5e31284bdade98e791267fa84094a62d0aca8 | |
parent | 0e9787f2f5d748a7e37609278567dd8c7b42035e (diff) | |
download | ports-98173bcdc0a87932e5a5d2b95cf963c918dda82d.tar.gz ports-98173bcdc0a87932e5a5d2b95cf963c918dda82d.zip |
www/angie-module-perl: Angie Perl dynamic module
Module is used to implement location and variable handlers in Perl and insert
Perl calls into SSI.
PR: 272999
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/angie-module-perl/Makefile | 32 | ||||
-rw-r--r-- | www/angie-module-perl/files/patch-src_http_modules_perl_Makefile.PL | 11 | ||||
-rw-r--r-- | www/angie-module-perl/files/pkg-message.in | 15 | ||||
-rw-r--r-- | www/angie-module-perl/pkg-descr | 2 | ||||
-rw-r--r-- | www/angie-module-perl/pkg-plist | 4 |
6 files changed, 65 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 4de59147fde0..c7e017733ffd 100644 --- a/www/Makefile +++ b/www/Makefile @@ -35,6 +35,7 @@ SUBDIR += angie-module-jwt SUBDIR += angie-module-keyval SUBDIR += angie-module-njs + SUBDIR += angie-module-perl SUBDIR += anyremote2html SUBDIR += apache-mode.el SUBDIR += apache24 diff --git a/www/angie-module-perl/Makefile b/www/angie-module-perl/Makefile new file mode 100644 index 000000000000..68096497aede --- /dev/null +++ b/www/angie-module-perl/Makefile @@ -0,0 +1,32 @@ +PORTNAME= angie-module-perl + +COMMENT= Angie Perl dynamic module + +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= perl5 + +CONFIGURE_ADD= --with-http_perl_module=dynamic + +CFLAGS+= -Wno-compound-token-split-by-macro + +MASTERDIR= ${.CURDIR}/../../www/angie + +do-install: + ${MKDIR} ${STAGEDIR}${MODDIR} + ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/nginx + + ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_perl_module.so \ + ${STAGEDIR}${MODDIR} + + ${INSTALL_LIB} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \ + ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/nginx + ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \ + ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL} + +do-install-DEBUG-on: + ${INSTALL} ${COPY} -m ${_SHAREMODE} \ + ${WRKSRC_DEBUG}/objs/ngx_http_perl_module.so \ + ${STAGEDIR}${MODDIR}/ngx_http_perl_module-debug.so + +.include "${MASTERDIR}/Makefile" diff --git a/www/angie-module-perl/files/patch-src_http_modules_perl_Makefile.PL b/www/angie-module-perl/files/patch-src_http_modules_perl_Makefile.PL new file mode 100644 index 000000000000..cf5fb22e8366 --- /dev/null +++ b/www/angie-module-perl/files/patch-src_http_modules_perl_Makefile.PL @@ -0,0 +1,11 @@ +--- src/http/modules/perl/Makefile.PL.orig 2023-05-30 14:39:09 UTC ++++ src/http/modules/perl/Makefile.PL +@@ -13,7 +13,7 @@ WriteMakefile( + ABSTRACT_FROM => 'nginx.pm', # retrieve abstract from module + AUTHOR => 'Igor Sysoev', + +- CCFLAGS => "$ENV{NGX_PM_CFLAGS}", ++ CCFLAGS => "$ENV{NGX_PM_CFLAGS} -Wno-compound-token-split-by-macro", + OPTIMIZE => '-O', + + LDDLFLAGS => "$ENV{NGX_PM_LDFLAGS}", diff --git a/www/angie-module-perl/files/pkg-message.in b/www/angie-module-perl/files/pkg-message.in new file mode 100644 index 000000000000..8049f393c5cc --- /dev/null +++ b/www/angie-module-perl/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: <<EOM + +The Perl dynamic module for Angie has been installed. +To enable this module, add the following to %%PREFIX%%/etc/angie/angie.conf +and reload angie: + + load_module modules/ngx_http_perl_module.so; + +Please refer to the modules documentation for further details: +https://angie.software/en/http_perl/ +EOM +} +] diff --git a/www/angie-module-perl/pkg-descr b/www/angie-module-perl/pkg-descr new file mode 100644 index 000000000000..95ef374cb4ed --- /dev/null +++ b/www/angie-module-perl/pkg-descr @@ -0,0 +1,2 @@ +Module is used to implement location and variable handlers in Perl and insert +Perl calls into SSI. diff --git a/www/angie-module-perl/pkg-plist b/www/angie-module-perl/pkg-plist new file mode 100644 index 000000000000..0f181025471d --- /dev/null +++ b/www/angie-module-perl/pkg-plist @@ -0,0 +1,4 @@ +%%MODDIR%%/ngx_http_perl_module.so +%%DEBUG%%%%MODDIR%%/ngx_http_perl_module-debug.so +%%SITE_ARCH%%/auto/nginx/nginx.so +%%SITE_ARCH%%/nginx.pm |