FreeBSD Bugzilla – Attachment 241588 Details for
Bug 270933
[NEW PORT] www/angie: patch also includes new related ports for dynamic modules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Several new ports at once
angie-full.patch (text/plain), 26.38 KB, created by
oleg
on 2023-04-19 15:00:00 UTC
(
hide
)
Description:
Several new ports at once
Filename:
MIME Type:
Creator:
oleg
Created:
2023-04-19 15:00:00 UTC
Size:
26.38 KB
patch
obsolete
>diff --git a/www/angie-module-geoip2/Makefile b/www/angie-module-geoip2/Makefile >new file mode 100644 >index 000000000000..09b76b792026 >--- /dev/null >+++ b/www/angie-module-geoip2/Makefile >@@ -0,0 +1,27 @@ >+PORTNAME= angie-module-geoip2 >+ >+COMMENT= Dynamic module geoip2 for Angie >+ >+LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb >+ >+GH_TUPLE= leev:ngx_http_geoip2_module:3.4:module >+ >+.include "${.CURDIR}/../angie/bsd.angie.mk" >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${DOCSDIR} >+ ${MKDIR} ${STAGEDIR}${MODDIR} >+ >+.for i in ngx_http_geoip2_module ngx_stream_geoip2_module >+ ${INSTALL_LIB} ${WRKSRC}/objs/${i}.so ${STAGEDIR}${MODDIR} >+.endfor >+.if ${PORT_OPTIONS:MDEBUG} >+. for i in ngx_http_geoip2_module ngx_stream_geoip2_module >+ ${INSTALL} ${COPY} -m ${_SHAREMODE} ${WRKSRC_DEBUG}/objs/${i}.so \ >+ ${STAGEDIR}${MODDIR}/${i}-debug.so >+. endfor >+.endif >+ >+ ${INSTALL_MAN} ${WRKSRC_module}/README.md ${STAGEDIR}${DOCSDIR} >+ >+.include <bsd.port.mk> >diff --git a/www/angie-module-geoip2/distinfo b/www/angie-module-geoip2/distinfo >new file mode 100644 >index 000000000000..830b7e1f4014 >--- /dev/null >+++ b/www/angie-module-geoip2/distinfo >@@ -0,0 +1,5 @@ >+TIMESTAMP = 1681768546 >+SHA256 (angie-1.1.0.tar.gz) = 0441a3f6b589c05da65c75824e4c57e46b82cfc839bea9c0bf1c27773d56b9cf >+SIZE (angie-1.1.0.tar.gz) = 1350759 >+SHA256 (leev-ngx_http_geoip2_module-3.4_GH0.tar.gz) = ad72fc23348d715a330994984531fab9b3606e160483236737f9a4a6957d9452 >+SIZE (leev-ngx_http_geoip2_module-3.4_GH0.tar.gz) = 8877 >diff --git a/www/angie-module-geoip2/files/pkg-message.in b/www/angie-module-geoip2/files/pkg-message.in >new file mode 100644 >index 000000000000..bed1fdf3a651 >--- /dev/null >+++ b/www/angie-module-geoip2/files/pkg-message.in >@@ -0,0 +1,16 @@ >+[ >+{ type: install >+ message: <<EOM >+ >+The GeoIP2 dynamic modules for Angie have been installed. >+To enable these modules, add the following to >+%%PREFIX%%/etc/angie/angie.conf and reload angie: >+ >+ load_module modules/ngx_http_geoip2_module.so; >+ load_module modules/ngx_stream_geoip2_module.so; >+ >+Please refer to the modules documentation for further details: >+https://github.com/leev/ngx_http_geoip2_module >+EOM >+} >+] >diff --git a/www/angie-module-geoip2/pkg-descr b/www/angie-module-geoip2/pkg-descr >new file mode 100644 >index 000000000000..de1090bba22a >--- /dev/null >+++ b/www/angie-module-geoip2/pkg-descr >@@ -0,0 +1,2 @@ >+These modules create variables with values depending on the client IP address, >+using the precompiled MaxMind GeoIP2 databases. >diff --git a/www/angie-module-geoip2/pkg-plist b/www/angie-module-geoip2/pkg-plist >new file mode 100644 >index 000000000000..3cd6ab47f216 >--- /dev/null >+++ b/www/angie-module-geoip2/pkg-plist >@@ -0,0 +1,5 @@ >+%%DOCSDIR%%/README.md >+%%MODDIR%%/ngx_http_geoip2_module.so >+%%MODDIR%%/ngx_stream_geoip2_module.so >+%%DEBUG%%%%MODDIR%%/ngx_http_geoip2_module-debug.so >+%%DEBUG%%%%MODDIR%%/ngx_stream_geoip2_module-debug.so >diff --git a/www/angie-module-headers-more/Makefile b/www/angie-module-headers-more/Makefile >new file mode 100644 >index 000000000000..b521291fac07 >--- /dev/null >+++ b/www/angie-module-headers-more/Makefile >@@ -0,0 +1,25 @@ >+PORTNAME= angie-module-headers-more >+ >+COMMENT= Dynamic module headers-more for Angie >+ >+LICENSE_FILE= ${WRKSRC_module}/README.markdown >+ >+GH_TUPLE= openresty:headers-more-nginx-module:v0.34:module >+ >+.include "${.CURDIR}/../angie/bsd.angie.mk" >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${DOCSDIR} >+ ${MKDIR} ${STAGEDIR}${MODDIR} >+ >+ ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_headers_more_filter_module.so \ >+ ${STAGEDIR}${MODDIR} >+.if ${PORT_OPTIONS:MDEBUG} >+ ${INSTALL} ${COPY} -m ${_SHAREMODE} \ >+ ${WRKSRC_DEBUG}/objs/ngx_http_headers_more_filter_module.so \ >+ ${STAGEDIR}${MODDIR}/ngx_http_headers_more_filter_module-debug.so >+.endif >+ >+ ${INSTALL_MAN} ${WRKSRC_module}/README.markdown ${STAGEDIR}${DOCSDIR} >+ >+.include <bsd.port.mk> >diff --git a/www/angie-module-headers-more/distinfo b/www/angie-module-headers-more/distinfo >new file mode 100644 >index 000000000000..a6d0a02e8906 >--- /dev/null >+++ b/www/angie-module-headers-more/distinfo >@@ -0,0 +1,5 @@ >+TIMESTAMP = 1681898612 >+SHA256 (angie-1.1.0.tar.gz) = 0441a3f6b589c05da65c75824e4c57e46b82cfc839bea9c0bf1c27773d56b9cf >+SIZE (angie-1.1.0.tar.gz) = 1350759 >+SHA256 (openresty-headers-more-nginx-module-v0.34_GH0.tar.gz) = 0c0d2ced2ce895b3f45eb2b230cd90508ab2a773299f153de14a43e44c1209b3 >+SIZE (openresty-headers-more-nginx-module-v0.34_GH0.tar.gz) = 28827 >diff --git a/www/angie-module-headers-more/files/pkg-message.in b/www/angie-module-headers-more/files/pkg-message.in >new file mode 100644 >index 000000000000..236b301bde90 >--- /dev/null >+++ b/www/angie-module-headers-more/files/pkg-message.in >@@ -0,0 +1,15 @@ >+[ >+{ type: install >+ message: <<EOM >+ >+The headers-more dynamic module for Angie has been installed. >+To enable this module, add the following to /etc/angie/angie.conf >+and reload angie: >+ >+ load_module modules/ngx_http_headers_more_filter_module.so; >+ >+Please refer to the module documentation for further details: >+https://github.com/openresty/headers-more-nginx-module/ >+EOM >+} >+] >diff --git a/www/angie-module-headers-more/pkg-descr b/www/angie-module-headers-more/pkg-descr >new file mode 100644 >index 000000000000..2d1caf54cec6 >--- /dev/null >+++ b/www/angie-module-headers-more/pkg-descr >@@ -0,0 +1 @@ >+Set and clear input and output headers for Angie. >diff --git a/www/angie-module-headers-more/pkg-plist b/www/angie-module-headers-more/pkg-plist >new file mode 100644 >index 000000000000..0949818176d6 >--- /dev/null >+++ b/www/angie-module-headers-more/pkg-plist >@@ -0,0 +1,3 @@ >+%%DOCSDIR%%/README.markdown >+%%MODDIR%%/ngx_http_headers_more_filter_module.so >+%%DEBUG%%%%MODDIR%%/ngx_http_headers_more_filter_module-debug.so >diff --git a/www/angie-module-image-filter/Makefile b/www/angie-module-image-filter/Makefile >new file mode 100644 >index 000000000000..f2970408c2b7 >--- /dev/null >+++ b/www/angie-module-image-filter/Makefile >@@ -0,0 +1,24 @@ >+PORTNAME= angie-module-image-filter >+ >+COMMENT= Dynamic module image-filter for Angie >+ >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+LIB_DEPENDS= libgd.so:graphics/gd >+ >+CONFIGURE_ADD= --with-http_image_filter_module=dynamic >+ >+.include "${.CURDIR}/../angie/bsd.angie.mk" >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${MODDIR} >+ >+ ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_image_filter_module.so \ >+ ${STAGEDIR}${MODDIR} >+.if ${PORT_OPTIONS:MDEBUG} >+ ${INSTALL} ${COPY} -m ${_SHAREMODE} \ >+ ${WRKSRC_DEBUG}/objs/ngx_http_image_filter_module.so \ >+ ${STAGEDIR}${MODDIR}/ngx_http_image_filter_module-debug.so >+.endif >+ >+.include <bsd.port.mk> >diff --git a/www/angie-module-image-filter/distinfo b/www/angie-module-image-filter/distinfo >new file mode 100644 >index 000000000000..055dc72b71fc >--- /dev/null >+++ b/www/angie-module-image-filter/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1681768515 >+SHA256 (angie-1.1.0.tar.gz) = 0441a3f6b589c05da65c75824e4c57e46b82cfc839bea9c0bf1c27773d56b9cf >+SIZE (angie-1.1.0.tar.gz) = 1350759 >diff --git a/www/angie-module-image-filter/files/pkg-message.in b/www/angie-module-image-filter/files/pkg-message.in >new file mode 100644 >index 000000000000..61da957540d6 >--- /dev/null >+++ b/www/angie-module-image-filter/files/pkg-message.in >@@ -0,0 +1,15 @@ >+[ >+{ type: install >+ message: <<EOM >+ >+The image-filter dynamic module for Angie has been installed. >+To enable this module, add the following to /etc/angie/angie.conf >+and reload angie: >+ >+ load_module modules/ngx_http_image_filter_module.so; >+ >+Please refer to the modules documentation for further details: >+https://angie.software/en/http_image_filter/ >+EOM >+} >+] >diff --git a/www/angie-module-image-filter/pkg-descr b/www/angie-module-image-filter/pkg-descr >new file mode 100644 >index 000000000000..926b4f7719e7 >--- /dev/null >+++ b/www/angie-module-image-filter/pkg-descr >@@ -0,0 +1 @@ >+Module is a filter that transforms images in JPEG, GIF, PNG, and WebP formats. >diff --git a/www/angie-module-image-filter/pkg-plist b/www/angie-module-image-filter/pkg-plist >new file mode 100644 >index 000000000000..8bee9ea158f0 >--- /dev/null >+++ b/www/angie-module-image-filter/pkg-plist >@@ -0,0 +1,2 @@ >+%%MODDIR%%/ngx_http_image_filter_module.so >+%%DEBUG%%%%MODDIR%%/ngx_http_image_filter_module-debug.so >diff --git a/www/angie-module-perl/Makefile b/www/angie-module-perl/Makefile >new file mode 100644 >index 000000000000..98c38d22f217 >--- /dev/null >+++ b/www/angie-module-perl/Makefile >@@ -0,0 +1,32 @@ >+PORTNAME= angie-module-perl >+ >+COMMENT= Dynamic module perl for Angie >+ >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+USES= perl5 >+ >+CONFIGURE_ADD= --with-http_perl_module=dynamic >+ >+CFLAGS+= -Wno-compound-token-split-by-macro >+ >+.include "${.CURDIR}/../angie/bsd.angie.mk" >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${MODDIR} >+ ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/nginx >+ >+ ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_perl_module.so \ >+ ${STAGEDIR}${MODDIR} >+.if ${PORT_OPTIONS:MDEBUG} >+ ${INSTALL} ${COPY} -m ${_SHAREMODE} \ >+ ${WRKSRC_DEBUG}/objs/ngx_http_perl_module.so \ >+ ${STAGEDIR}${MODDIR}/ngx_http_perl_module-debug.so >+.endif >+ >+ ${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} >+ >+.include <bsd.port.mk> >diff --git a/www/angie-module-perl/distinfo b/www/angie-module-perl/distinfo >new file mode 100644 >index 000000000000..055dc72b71fc >--- /dev/null >+++ b/www/angie-module-perl/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1681768515 >+SHA256 (angie-1.1.0.tar.gz) = 0441a3f6b589c05da65c75824e4c57e46b82cfc839bea9c0bf1c27773d56b9cf >+SIZE (angie-1.1.0.tar.gz) = 1350759 >diff --git a/www/angie-module-perl/files/patch-compound-token-warn b/www/angie-module-perl/files/patch-compound-token-warn >new file mode 100644 >index 000000000000..9cd0f748992c >--- /dev/null >+++ b/www/angie-module-perl/files/patch-compound-token-warn >@@ -0,0 +1,11 @@ >+--- src/http/modules/perl/Makefile.PL.orig 2023-04-19 16:14:21.794655000 +0300 >++++ src/http/modules/perl/Makefile.PL 2023-04-19 16:14:44.661077000 +0300 >+@@ -13,7 +13,7 @@ >+ 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..de76eeb981db >--- /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 /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..926b4f7719e7 >--- /dev/null >+++ b/www/angie-module-perl/pkg-descr >@@ -0,0 +1 @@ >+Module is a filter that transforms images in JPEG, GIF, PNG, and WebP formats. >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 >diff --git a/www/angie-module-xslt/Makefile b/www/angie-module-xslt/Makefile >new file mode 100644 >index 000000000000..60c53781dae3 >--- /dev/null >+++ b/www/angie-module-xslt/Makefile >@@ -0,0 +1,25 @@ >+PORTNAME= angie-module-xslt >+ >+COMMENT= Dynamic module xslt for Angie >+ >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+LIB_DEPENDS= libxslt.so:textproc/libxslt >+ >+CONFIGURE_ADD= --with-http_xslt_module=dynamic >+ >+.include "${.CURDIR}/../angie/bsd.angie.mk" >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${MODDIR} >+ >+ ${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_xslt_filter_module.so \ >+ ${STAGEDIR}${MODDIR} >+ >+.if ${PORT_OPTIONS:MDEBUG} >+ ${INSTALL} ${COPY} -m ${_SHAREMODE} \ >+ ${WRKSRC_DEBUG}/objs/ngx_http_xslt_filter_module.so \ >+ ${STAGEDIR}${MODDIR}/ngx_http_xslt_filter_module-debug.so >+.endif >+ >+.include <bsd.port.mk> >diff --git a/www/angie-module-xslt/distinfo b/www/angie-module-xslt/distinfo >new file mode 100644 >index 000000000000..055dc72b71fc >--- /dev/null >+++ b/www/angie-module-xslt/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1681768515 >+SHA256 (angie-1.1.0.tar.gz) = 0441a3f6b589c05da65c75824e4c57e46b82cfc839bea9c0bf1c27773d56b9cf >+SIZE (angie-1.1.0.tar.gz) = 1350759 >diff --git a/www/angie-module-xslt/files/pkg-message.in b/www/angie-module-xslt/files/pkg-message.in >new file mode 100644 >index 000000000000..dd00d04b2edb >--- /dev/null >+++ b/www/angie-module-xslt/files/pkg-message.in >@@ -0,0 +1,15 @@ >+[ >+{ type: install >+ message: <<EOM >+ >+The XSLT dynamic module for Angie has been installed. >+To enable this module, add the following to /etc/angie/angie.conf >+and reload angie: >+ >+ load_module modules/ngx_http_xslt_filter_module.so; >+ >+Please refer to the modules documentation for further details: >+https://angie.software/en/http_xslt/ >+EOM >+} >+] >diff --git a/www/angie-module-xslt/pkg-descr b/www/angie-module-xslt/pkg-descr >new file mode 100644 >index 000000000000..926b4f7719e7 >--- /dev/null >+++ b/www/angie-module-xslt/pkg-descr >@@ -0,0 +1 @@ >+Module is a filter that transforms images in JPEG, GIF, PNG, and WebP formats. >diff --git a/www/angie-module-xslt/pkg-plist b/www/angie-module-xslt/pkg-plist >new file mode 100644 >index 000000000000..2cc2d0af8035 >--- /dev/null >+++ b/www/angie-module-xslt/pkg-plist >@@ -0,0 +1,2 @@ >+%%MODDIR%%/ngx_http_xslt_filter_module.so >+%%DEBUG%%%%MODDIR%%/ngx_http_xslt_filter_module-debug.so >diff --git a/www/angie/Makefile b/www/angie/Makefile >new file mode 100644 >index 000000000000..a2c281544c6f >--- /dev/null >+++ b/www/angie/Makefile >@@ -0,0 +1,57 @@ >+PORTNAME= angie >+ >+COMMENT= Powerful and scalable web server >+ >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+ALL_TARGET= build >+ >+USE_RC_SUBR= angie >+ >+SUB_FILES= angie.conf.sample \ >+ default.conf.sample \ >+ example.conf.sample \ >+ pkg-message >+ >+.include "${.CURDIR}/bsd.angie.mk" >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${CACHEDIR} >+ ${MKDIR} ${STAGEDIR}${DOCSDIR} >+ ${MKDIR} ${STAGEDIR}${ETCDIR}/http.d >+ ${MKDIR} ${STAGEDIR}${ETCDIR}/stream.d >+ ${MKDIR} ${STAGEDIR}${LOGDIR} >+ ${MKDIR} ${STAGEDIR}${MODDIR} >+ ${MKDIR} ${STAGEDIR}${WWWDIR}/html >+ >+ ${LN} -fs ${MODDIR} ${STAGEDIR}${ETCDIR}/modules >+ >+ ${INSTALL_PROGRAM} ${WRKSRC}/objs/angie \ >+ ${STAGEDIR}${PREFIX}/sbin/angie-nodebug >+ ${LN} -fs angie-nodebug ${STAGEDIR}${PREFIX}/sbin/angie >+.if ${PORT_OPTIONS:MDEBUG} >+ ${INSTALL} ${COPY} -m ${BINMODE} ${WRKSRC_DEBUG}/objs/angie \ >+ ${STAGEDIR}${PREFIX}/sbin/angie-debug >+.endif >+ >+ ${INSTALL_MAN} ${WRKSRC}/objs/angie.8 ${STAGEDIR}${MAN8PREFIX}/man/man8 >+.for i in CHANGES CHANGES.ru README.rst >+ ${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} >+.endfor >+ >+.for i in fastcgi.conf fastcgi_params mime.types scgi_params uwsgi_params >+ ${INSTALL_DATA} ${WRKSRC}/conf/${i} ${STAGEDIR}${ETCDIR}/${i}.sample >+.endfor >+ ${INSTALL_DATA} ${WRKDIR}/angie.conf.sample \ >+ ${STAGEDIR}${ETCDIR} >+ ${INSTALL_DATA} ${WRKDIR}/default.conf.sample \ >+ ${STAGEDIR}${ETCDIR}/http.d >+ ${INSTALL_DATA} ${WRKDIR}/example.conf.sample \ >+ ${STAGEDIR}${ETCDIR}/stream.d >+ >+.for i in 50x.html index.html >+ ${INSTALL_DATA} ${WRKSRC}/html/${i} ${STAGEDIR}${WWWDIR}/html/${i}.sample >+.endfor >+ >+ >+.include <bsd.port.mk> >diff --git a/www/angie/bsd.angie.mk b/www/angie/bsd.angie.mk >new file mode 100644 >index 000000000000..9803bd0c08bb >--- /dev/null >+++ b/www/angie/bsd.angie.mk >@@ -0,0 +1,131 @@ >+ANGIE_VERSION= 1.1.0 >+ >+PORTVERSION= ${ANGIE_VERSION} >+CATEGORIES+= www >+MASTER_SITES+= https://download.angie.software/files/:angie >+DISTNAME= angie-${DISTVERSIONFULL} >+DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}:angie >+ >+MAINTAINER?= oleg@mamontov.net >+WWW?= https://angie.software/en/ >+ >+LICENSE?= BSD2CLAUSE >+.if ${PORTNAME} != angie >+LICENSE_FILE?= ${WRKSRC_module}/LICENSE >+.endif >+ >+.if ${PORTNAME} == angie >+LIB_DEPENDS+= libpcre2-8.so:devel/pcre2 >+.else >+BUILD_DEPENDS+= pcre2>=0:devel/pcre2 >+RUN_DEPENDS+= angie==${ANGIE_VERSION}:www/angie >+.endif >+ >+USES+= ssl >+USE_GITHUB= nodefault >+ >+HAS_CONFIGURE?= yes >+ >+.if ${PORTNAME} != angie >+CONFIGURE_ADD?= --add-dynamic-module=${WRKSRC_module} >+.endif >+ >+CONFIGURE_ARGS= --prefix=${PREFIX}/etc/angie \ >+ --conf-path=${PREFIX}/etc/angie/angie.conf \ >+ --error-log-path=${LOGDIR}/error.log \ >+ --http-log-path=${LOGDIR}/access.log \ >+ --lock-path=${RUNDIR}/angie.lock \ >+ --modules-path=${MODDIR} \ >+ --pid-path=${RUNDIR}/angie.pid \ >+ --sbin-path=${PREFIX}/sbin/angie \ >+ --http-client-body-temp-path=${CACHEDIR}/client_temp \ >+ --http-fastcgi-temp-path=${CACHEDIR}/fastcgi_temp \ >+ --http-proxy-temp-path=${CACHEDIR}/proxy_temp \ >+ --http-scgi-temp-path=${CACHEDIR}/scgi_temp \ >+ --http-uwsgi-temp-path=${CACHEDIR}/uwsgi_temp \ >+ --user=${WWWOWN} \ >+ --group=${WWWGRP} \ >+ --with-file-aio \ >+ --with-http_addition_module \ >+ --with-http_auth_request_module \ >+ --with-http_dav_module \ >+ --with-http_flv_module \ >+ --with-http_gunzip_module \ >+ --with-http_gzip_static_module \ >+ --with-http_mp4_module \ >+ --with-http_random_index_module \ >+ --with-http_realip_module \ >+ --with-http_secure_link_module \ >+ --with-http_slice_module \ >+ --with-http_ssl_module \ >+ --with-http_stub_status_module \ >+ --with-http_sub_module \ >+ --with-http_v2_module \ >+ --with-mail \ >+ --with-mail_ssl_module \ >+ --with-stream \ >+ --with-stream_realip_module \ >+ --with-stream_ssl_module \ >+ --with-stream_ssl_preread_module \ >+ --with-threads \ >+ --with-cc-opt="-I ${LOCALBASE}/include" \ >+ --with-ld-opt="-L ${LOCALBASE}/lib" \ >+ ${CONFIGURE_ADD} >+ >+ALL_TARGET?= modules >+ >+PLIST_SUB+= CACHEDIR=${CACHEDIR} LOGDIR=${LOGDIR} \ >+ MODDIR=${MODDIR} RUNDIR=${RUNDIR} >+ >+SUB_FILES?= pkg-message >+ >+SUB_LIST+= CACHEDIR=${CACHEDIR} LOGDIR=${LOGDIR} \ >+ MODDIR=${MODDIR} RUNDIR=${RUNDIR} WWWOWN=${WWWOWN} >+ >+OPTIONS_SUB= yes >+ >+OPTIONS_DEFINE?= DEBUG >+OPTIONS_DEFAULT?= DEBUG >+DEBUG_DESC= Include debug version >+WRKSRC_DEBUG= ${WRKSRC}-debug >+ >+CACHEDIR= /var/cache/angie >+LOGDIR= /var/log/angie >+MODDIR= ${PREFIX}/libexec/angie >+RUNDIR= /var/run >+ >+.include <bsd.port.options.mk> >+ >+.if ${PORT_OPTIONS:MDEBUG} >+ >+. if !target(post-patch) >+post-patch: >+ @cp -Rp ${WRKSRC} ${WRKSRC_DEBUG} >+. endif >+ >+. if !target(post-configure) >+post-configure: >+ @(cd ${WRKSRC_DEBUG} && \ >+ ${SET_LATE_CONFIGURE_ARGS} \ >+ if ! ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \ >+ CFLAGS="${CFLAGS} -g" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \ >+ LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \ >+ INSTALL="/usr/bin/install -c" \ >+ INSTALL_DATA="${INSTALL_DATA}" \ >+ INSTALL_LIB="${INSTALL_LIB}" \ >+ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ >+ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ >+ ${CONFIGURE_ENV} ${CONFIGURE_CMD} ${CONFIGURE_ARGS} --with-debug; then \ >+ ${ECHO_MSG} "===> Script \"${CONFIGURE_SCRIPT}\" failed unexpectedly."; \ >+ (${ECHO_CMD} ${CONFIGURE_FAIL_MESSAGE}) | ${FMT_80} ; \ >+ ${FALSE}; \ >+ fi \ >+ ) >+. endif >+ >+. if !target(post-build) >+post-build: >+ @(cd ${WRKSRC_DEBUG} && ${DO_MAKE_BUILD} ${ALL_TARGET}) >+. endif >+ >+.endif >diff --git a/www/angie/distinfo b/www/angie/distinfo >new file mode 100644 >index 000000000000..055dc72b71fc >--- /dev/null >+++ b/www/angie/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1681768515 >+SHA256 (angie-1.1.0.tar.gz) = 0441a3f6b589c05da65c75824e4c57e46b82cfc839bea9c0bf1c27773d56b9cf >+SIZE (angie-1.1.0.tar.gz) = 1350759 >diff --git a/www/angie/files/angie.conf.sample.in b/www/angie/files/angie.conf.sample.in >new file mode 100644 >index 000000000000..85f812c7d357 >--- /dev/null >+++ b/www/angie/files/angie.conf.sample.in >@@ -0,0 +1,41 @@ >+user %%WWWOWN%%; >+worker_processes auto; >+worker_rlimit_nofile 65536; >+ >+error_log %%LOGDIR%%/error.log notice; >+pid %%RUNDIR%%/angie.pid; >+ >+events { >+ worker_connections 65536; >+} >+ >+http { >+ include %%ETCDIR%%/mime.types; >+ default_type application/octet-stream; >+ >+ log_format main '$remote_addr - $remote_user [$time_local] "$request" ' >+ '$status $body_bytes_sent "$http_referer" ' >+ '"$http_user_agent" "$http_x_forwarded_for"'; >+ >+ log_format extended '$remote_addr - $remote_user [$time_local] "$request" ' >+ '$status $body_bytes_sent "$http_referer" rt="$request_time" ' >+ '"$http_user_agent" "$http_x_forwarded_for" ' >+ 'h="$host" sn="$server_name" ru="$request_uri" u="$uri" ' >+ 'ucs="$upstream_cache_status" ua="$upstream_addr" us="$upstream_status" ' >+ 'uct="$upstream_connect_time" urt="$upstream_response_time"'; >+ >+ access_log %%LOGDIR%%/access.log main; >+ >+ sendfile on; >+ #tcp_nopush on; >+ >+ keepalive_timeout 65; >+ >+ #gzip on; >+ >+ include %%ETCDIR%%/http.d/*.conf; >+} >+ >+#stream { >+# include %%ETCDIR%%/stream.d/*.conf; >+#} >diff --git a/www/angie/files/angie.in b/www/angie/files/angie.in >new file mode 100644 >index 000000000000..3a55a858e685 >--- /dev/null >+++ b/www/angie/files/angie.in >@@ -0,0 +1,73 @@ >+#!/bin/sh >+ >+# PROVIDE: angie >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+ >+# Add these lines to /etc/rc.conf.local or /etc/rc.conf >+# to enable the service: >+# >+# angie_enable (bool): Set to "NO" by default. >+# Set it to "YES" to enable angie. >+# >+# angie_flags (str): Set to "" by default. >+# Extra flags passed to start command. >+ >+. /etc/rc.subr >+ >+name=angie >+rcvar=angie_enable >+ >+command=%%PREFIX%%/sbin/${name} >+pidfile=%%RUNDIR%%/${name}.pid >+required_files=%%ETCDIR%%/${name}.conf >+ >+extra_commands="configtest reload upgrade" >+ >+configtest_cmd=angie_config_check >+upgrade_cmd="angie_upgrade" >+ >+reload_precmd=angie_config_check >+restart_precmd=angie_config_check >+start_precmd=angie_config_check >+ >+load_rc_config $name >+ >+: ${angie_enable:=NO} >+: ${angie_flags:=} >+: ${angie_config_valid:=""} >+ >+angie_config_check() { >+ [ -n "${angie_config_valid}" ] && return 0 >+ >+ echo "Checking config validity:" >+ eval ${command} ${angie_flags} -t || return 1 >+ >+ angie_config_valid=yes >+} >+ >+angie_upgrade() { >+ if [ ! -s ${pidfile} ]; then >+ echo "No running ${name} found." >+ return 1 >+ fi >+ >+ angie_config_check || return 1 >+ >+ echo "Starting new ${name}." >+ kill -USR2 $(cat ${pidfile}) >+ >+ for i in $(seq 5); do >+ sleep 1 >+ if [ -f ${pidfile} -a -f ${pidfile}.oldbin ]; then >+ echo "Shutting down old ${name}." >+ kill -QUIT $(cat ${pidfile}.oldbin) >+ return 0 >+ fi >+ done >+ >+ echo "Upgrade failed!" >+ return 1 >+} >+ >+run_rc_command "$1" >diff --git a/www/angie/files/default.conf.sample.in b/www/angie/files/default.conf.sample.in >new file mode 100644 >index 000000000000..9ba47bde12b2 >--- /dev/null >+++ b/www/angie/files/default.conf.sample.in >@@ -0,0 +1,49 @@ >+server { >+ listen 80; >+ server_name localhost; >+ >+ #access_log %%LOGDIR%%/host.access.log main; >+ >+ location / { >+ root %%WWWDIR%%/html; >+ index index.html index.htm; >+ } >+ >+ location /status/ { >+ api /status/; >+ allow 127.0.0.1; >+ deny all; >+ } >+ >+ #error_page 404 /404.html; >+ >+ # redirect server error pages to the static page /50x.html >+ # >+ error_page 500 502 503 504 /50x.html; >+ location = /50x.html { >+ root %%WWWDIR%%/html; >+ } >+ >+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80 >+ # >+ #location ~ \.php$ { >+ # proxy_pass http://127.0.0.1; >+ #} >+ >+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 >+ # >+ #location ~ \.php$ { >+ # root html; >+ # fastcgi_pass 127.0.0.1:9000; >+ # fastcgi_index index.php; >+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; >+ # include fastcgi_params; >+ #} >+ >+ # deny access to .htaccess files, if Apache's document root >+ # concurs with angie's one >+ # >+ #location ~ /\.ht { >+ # deny all; >+ #} >+} >diff --git a/www/angie/files/example.conf.sample.in b/www/angie/files/example.conf.sample.in >new file mode 100644 >index 000000000000..b4beadd44310 >--- /dev/null >+++ b/www/angie/files/example.conf.sample.in >@@ -0,0 +1,24 @@ >+#upstream stream_backend { >+# server backend1.example.com:12345 weight=5; >+# server backend2.example.com:12345 max_fails=2 fail_timeout=30s; >+# server backend3.example.com:12345 max_conns=3; >+#} >+# >+#upstream dns_servers { >+# least_conn; >+# server 192.168.136.130:53; >+# server 192.168.136.131:53; >+# server 192.168.136.132:53; >+#} >+# >+#server { >+# listen 12345; >+# proxy_pass stream_backend; >+# proxy_timeout 3s; >+# proxy_connect_timeout 1s; >+#} >+# >+#server { >+# listen 53 udp; >+# proxy_pass dns_servers; >+#} >diff --git a/www/angie/files/pkg-message.in b/www/angie/files/pkg-message.in >new file mode 100644 >index 000000000000..fbd5de396e3d >--- /dev/null >+++ b/www/angie/files/pkg-message.in >@@ -0,0 +1,11 @@ >+[ >+{ type: install >+ message: <<EOM >+ >+Thanks for using Angie! >+ >+Please find the official documentation for Angie here: >+* https://angie.software/en/ >+EOM >+} >+] >diff --git a/www/angie/pkg-descr b/www/angie/pkg-descr >new file mode 100644 >index 000000000000..6c783fb0c552 >--- /dev/null >+++ b/www/angie/pkg-descr >@@ -0,0 +1,2 @@ >+Angie is an efficient, powerful and scalable web server, that was forked from >+nginx with intention to extend functionality far beyond original version. >diff --git a/www/angie/pkg-plist b/www/angie/pkg-plist >new file mode 100644 >index 000000000000..8ee62936b6a9 >--- /dev/null >+++ b/www/angie/pkg-plist >@@ -0,0 +1,28 @@ >+@dir %%ETCDIR%%/http.d >+@dir %%ETCDIR%%/stream.d >+@dir %%CACHEDIR%% >+@dir %%LOGDIR%% >+@dir %%MODDIR%% >+ >+%%ETCDIR%%/modules >+ >+sbin/angie-nodebug >+sbin/angie >+%%DEBUG%%sbin/angie-debug >+ >+man/man8/angie.8.gz >+%%DOCSDIR%%/CHANGES >+%%DOCSDIR%%/CHANGES.ru >+%%DOCSDIR%%/README.rst >+ >+@sample %%ETCDIR%%/angie.conf.sample >+@sample %%ETCDIR%%/fastcgi.conf.sample >+@sample %%ETCDIR%%/fastcgi_params.sample >+@sample %%ETCDIR%%/mime.types.sample >+@sample %%ETCDIR%%/scgi_params.sample >+@sample %%ETCDIR%%/uwsgi_params.sample >+@sample %%ETCDIR%%/http.d/default.conf.sample >+@sample %%ETCDIR%%/stream.d/example.conf.sample >+ >+@sample %%WWWDIR%%/html/50x.html.sample >+@sample %%WWWDIR%%/html/index.html.sample
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval?
(
wen
)
Actions:
View
|
Diff
Attachments on
bug 270933
: 241588