Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2023 13:04:40 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 98173bcdc0a8 - main - www/angie-module-perl: Angie Perl dynamic module
Message-ID:  <202308091304.379D4eha090304@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98173bcdc0a87932e5a5d2b95cf963c918dda82d

commit 98173bcdc0a87932e5a5d2b95cf963c918dda82d
Author:     Oleg A. Mamontov <oleg@mamontov.net>
AuthorDate: 2023-08-07 18:41:50 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-08-09 13:01:17 +0000

    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
---
 www/Makefile                                       |  1 +
 www/angie-module-perl/Makefile                     | 32 ++++++++++++++++++++++
 .../files/patch-src_http_modules_perl_Makefile.PL  | 11 ++++++++
 www/angie-module-perl/files/pkg-message.in         | 15 ++++++++++
 www/angie-module-perl/pkg-descr                    |  2 ++
 www/angie-module-perl/pkg-plist                    |  4 +++
 6 files changed, 65 insertions(+)

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



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