commit c5f6e169dfbb6098ac145cc26de3e79cce477a21
parent e599f80ac1e632da8ae0dcee0553a50bdfdeeda4
Author: vasyahacker <vasya@magicfreedom.com>
Date: Tue, 25 Apr 2023 14:38:31 +0400
angie
Diffstat:
6 files changed, 170 insertions(+), 0 deletions(-)
diff --git a/www/angie/Makefile b/www/angie/Makefile
@@ -0,0 +1,85 @@
+#ONLY_FOR_ARCHS = ???
+#NOT_FOR_ARCHS = ???
+COMMENT = A web server as drop-in replacement for Nginx
+VERSION = 1.1.0
+DISTNAME = angie-${VERSION}
+#PKGNAME = ???
+CATEGORIES = www
+HOMEPAGE = https://angie.software
+MAINTAINER = vasyahacker <vasya@magicfreedom.com>
+# BSD-like
+PERMIT_PACKAGE= Yes
+WANTLIB = c z pcre ssl crypto exslt xml2 xslt gd m perl
+#exslt xml2 xslt
+LIB_DEPENDS = devel/pcre \
+ graphics/gd \
+ textproc/libxml \
+ textproc/libxslt
+MODULES += perl
+MASTER_SITES = https://download.angie.software/files/
+#MASTER_SITES0 = https://github.com/
+EXTRACT_SUFX = .tar.gz
+#DIST_SUBDIR = ???
+#PATCHFILES = ???
+#PATCH_DIST_STRIP = -p0
+COMPILER = base-clang ports-gcc base-gcc
+.include <bsd.port.arch.mk>
+NO_TEST = Yes
+CONFIGURE_STYLE= simple
+CFLAGS = -Wall
+ALL_TARGET=
+ANGIE_DIR = /var/www
+SUBST_VARS = ANGIE_DIR
+CONFIGURE_ARGS = --prefix=${ANGIE_DIR} \
+ --conf-path=${SYSCONFDIR}/angie/angie.conf \
+ --sbin-path=${PREFIX}/sbin/angie \
+ --pid-path=/var/run/angie.pid \
+ --lock-path=/var/run/angie.lock \
+ --http-log-path=logs/access.log \
+ --error-log-path=logs/error.log \
+ --http-client-body-temp-path=${ANGIE_DIR}/cache/client_body_temp \
+ --http-proxy-temp-path=${ANGIE_DIR}/cache/proxy_temp \
+ --http-fastcgi-temp-path=${ANGIE_DIR}/cache/fastcgi_temp \
+ --http-scgi-temp-path=${ANGIE_DIR}/cache/scgi_temp \
+ --http-uwsgi-temp-path=${ANGIE_DIR}/cache/uwsgi_temp \
+ --user=www \
+ --group=www \
+ --with-http_auth_request_module \
+ --with-http_dav_module \
+ --with-http_image_filter_module=dynamic \
+ --with-http_gzip_static_module \
+ --with-http_gunzip_module \
+ --with-http_perl_module=dynamic \
+ --with-http_realip_module \
+ --with-http_slice_module \
+ --with-http_ssl_module \
+ --with-http_stub_status_module \
+ --with-http_v2_module \
+ --with-http_xslt_module=dynamic \
+ --with-mail=dynamic \
+ --with-stream=dynamic \
+ --with-stream_ssl_module \
+ --with-stream_ssl_preread_module \
+ --without-pcre2
+
+SUBSTFILES= conf/angie.conf
+
+pre-configure:
+ @cd ${WRKSRC} && ${SUBST_CMD} ${SUBSTFILES}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/angie/
+ ${INSTALL_PROGRAM} ${WRKSRC}/objs/angie ${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/objs/angie.8 ${PREFIX}/man/man8/
+ ${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/share/angie/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/angie/html/
+ ${INSTALL_DATA} ${WRKSRC}/html/* ${PREFIX}/share/angie/html/
+ ${INSTALL_DATA_DIR} ${WRKINST}/var/www/modules/
+ ${INSTALL_DATA} ${WRKSRC}/objs/*.so ${WRKINST}/var/www/modules/
+ ${INSTALL_DATA_DIR} ${PREFIX}/${P5ARCH}/auto/nginx/
+ ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \
+ ${PREFIX}/${P5ARCH}/
+ ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \
+ ${PREFIX}/${P5ARCH}/auto/nginx/
+
+.include <bsd.port.mk>
diff --git a/www/angie/distinfo b/www/angie/distinfo
@@ -0,0 +1,2 @@
+SHA256 (angie-1.1.0.tar.gz) = BEGj9rWJwF2mXHWCTkxX5GuCz8g5vqnAvxwndz1Wuc8=
+SIZE (angie-1.1.0.tar.gz) = 1350759
diff --git a/www/angie/pkg/DESCR b/www/angie/pkg/DESCR
@@ -0,0 +1,9 @@
+A web server forked from nginx by the nginx development team
+to significantly extend the original functionality.
+
+Angie is an efficient, powerful and scalable web server,
+that was forked from nginx by some of its former core devs,
+with intention to extend functionality far beyond original version.
+
+Angie is a drop-in replacement for nginx,
+so you can use existing nginx configuration without major changes.
diff --git a/www/angie/pkg/PLIST b/www/angie/pkg/PLIST
@@ -0,0 +1,49 @@
+@pkgpath www/angie
+@rcscript ${RCDIR}/angie
+@man man/man8/angie.8
+@bin sbin/angie
+@mode 700
+@owner www
+@group www
+@sample ${ANGIE_DIR}/tmp/
+@mode
+@owner
+@group
+share/doc/pkg-readmes/${PKGSTEM}
+share/angie/
+@sample ${SYSCONFDIR}/angie/
+share/angie/angie.conf
+@sample ${SYSCONFDIR}/angie/angie.conf
+share/angie/fastcgi.conf
+@sample ${SYSCONFDIR}/angie/fastcgi.conf
+share/angie/fastcgi_params
+@sample ${SYSCONFDIR}/angie/fastcgi_params
+share/angie/html/
+@sample ${ANGIE_DIR}/html/
+share/angie/html/50x.html
+@sample ${ANGIE_DIR}/html/50x.html
+share/angie/html/index.html
+@sample ${ANGIE_DIR}/html/index.html
+share/angie/koi-utf
+@sample ${SYSCONFDIR}/angie/koi-utf
+share/angie/koi-win
+@sample ${SYSCONFDIR}/angie/koi-win
+share/angie/mime.types
+@sample ${SYSCONFDIR}/angie/mime.types
+share/angie/scgi_params
+@sample ${SYSCONFDIR}/angie/scgi_params
+share/angie/uwsgi_params
+@sample ${SYSCONFDIR}/angie/uwsgi_params
+share/angie/win-utf
+@sample ${SYSCONFDIR}/angie/win-utf
+${P5ARCH}/
+${P5ARCH}/auto/
+${P5ARCH}/auto/nginx/
+@so ${P5ARCH}/auto/nginx/nginx.so
+${P5ARCH}/nginx.pm
+@cwd ${ANGIE_DIR}/modules
+@so ngx_http_image_filter_module.so
+@so ngx_http_perl_module.so
+@so ngx_http_xslt_filter_module.so
+@so ngx_mail_module.so
+@so ngx_stream_module.so
diff --git a/www/angie/pkg/README b/www/angie/pkg/README
@@ -0,0 +1,11 @@
++-----------------------------------------------------------------------
+| Running ${PKGSTEM} on OpenBSD
++-----------------------------------------------------------------------
+
+Log file rotation
+=================
+To use newsyslog to rotate the log files, you can replace the standard
+entries for httpd(8) in /etc/newsyslog.conf with these:
+
+/var/www/logs/access.log 644 4 * $W0 Z /var/run/angie.pid SIGUSR1
+/var/www/logs/error.log 644 7 250 * Z /var/run/angie.pid SIGUSR1
diff --git a/www/angie/pkg/angie.rc b/www/angie/pkg/angie.rc
@@ -0,0 +1,14 @@
+#!/bin/ksh
+
+daemon="${TRUEPREFIX}/sbin/angie"
+
+. /etc/rc.d/rc.subr
+
+pexp="angie: master process ${daemon}${daemon_flags:+ ${daemon_flags}}"
+rc_stop_signal=QUIT
+
+rc_configtest() {
+ ${daemon} ${daemon_flags} -t
+}
+
+rc_cmd $1