summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfhajny <fhajny>2014-05-30 08:14:07 +0000
committerfhajny <fhajny>2014-05-30 08:14:07 +0000
commit2b3815cea72214ae8fa83d334a19f69efea07108 (patch)
tree2775bea46a0756a3b75d5f3afda7f7078b6d12bc
parentde76644b784b5535ee19977bd862eeb15cc140ff (diff)
downloadpkgsrc-2b3815cea72214ae8fa83d334a19f69efea07108.tar.gz
Add support for the embedded Perl interpreter.
-rw-r--r--www/nginx/Makefile.common11
-rw-r--r--www/nginx/PLIST5
-rw-r--r--www/nginx/options.mk15
3 files changed, 26 insertions, 5 deletions
diff --git a/www/nginx/Makefile.common b/www/nginx/Makefile.common
index 2dc2463a5e5..36392a4cbd9 100644
--- a/www/nginx/Makefile.common
+++ b/www/nginx/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2013/05/25 18:18:58 shattered Exp $
+# $NetBSD: Makefile.common,v 1.3 2014/05/30 08:14:07 fhajny Exp $
# used by www/nginx/Makefile
# used by www/nginx-devel/Makefile
@@ -100,6 +100,15 @@ do-install:
.if !empty(PKG_OPTIONS:Mnaxsi)
${INSTALL_DATA} ${WRKDIR}/${NAXSI}/naxsi_config/naxsi_core.rules ${DESTDIR}${EGDIR}/conf
.endif
+.if !empty(PKG_OPTIONS:Mperl)
+ ${INSTALL_LIB_DIR} ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx
+ ${INSTALL_LIB} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \
+ ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx
+ ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.bs \
+ ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx
+ ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \
+ ${DESTDIR}${PERL5_INSTALLVENDORARCH}
+.endif
.include "../../devel/zlib/buildlink3.mk"
diff --git a/www/nginx/PLIST b/www/nginx/PLIST
index d7476dc2222..d5b55900f5b 100644
--- a/www/nginx/PLIST
+++ b/www/nginx/PLIST
@@ -1,4 +1,7 @@
-@comment $NetBSD: PLIST,v 1.7 2014/03/11 14:05:18 jperkin Exp $
+@comment $NetBSD: PLIST,v 1.8 2014/05/30 08:14:07 fhajny Exp $
+${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/nginx/nginx.bs
+${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/nginx/nginx.so
+${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/nginx.pm
man/man8/nginx.8
sbin/nginx
share/examples/nginx/conf/fastcgi.conf
diff --git a/www/nginx/options.mk b/www/nginx/options.mk
index 855fd1bb487..02d6f590a7f 100644
--- a/www/nginx/options.mk
+++ b/www/nginx/options.mk
@@ -1,14 +1,14 @@
-# $NetBSD: options.mk,v 1.29 2014/03/26 13:31:22 imil Exp $
+# $NetBSD: options.mk,v 1.30 2014/05/30 08:14:07 fhajny Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.nginx
PKG_SUPPORTED_OPTIONS= dav flv gtools inet6 luajit mail-proxy memcache naxsi \
pcre push realip ssl sub uwsgi image-filter upload \
debug status nginx-autodetect-cflags spdy echo \
set-misc headers-more array-var encrypted-session \
- form-input
+ form-input perl
PKG_SUGGESTED_OPTIONS= inet6 pcre ssl
-PLIST_VARS+= naxsi uwsgi
+PLIST_VARS+= naxsi perl uwsgi
.include "../../mk/bsd.options.mk"
@@ -204,3 +204,12 @@ CONFIGURE_ARGS+= --with-http_image_filter_module
.if !empty(PKG_OPTIONS:Mstatus)
CONFIGURE_ARGS+= --with-http_stub_status_module
.endif
+
+.if !empty(PKG_OPTIONS:Mperl)
+CONFIGURE_ARGS+= --with-http_perl_module
+CONFIGURE_ARGS+= --with-perl=${PERL5:Q}
+INSTALLATION_DIRS+= ${PERL5_INSTALLVENDORARCH}/auto/nginx
+PLIST.perl= yes
+.include "../../lang/perl5/dirs.mk"
+.include "../../lang/perl5/buildlink3.mk"
+.endif