pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www www/unit: import unit-1.22.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/691d045df331
branches:  trunk
changeset: 446873:691d045df331
user:      otis <otis%pkgsrc.org@localhost>
date:      Sun Feb 14 11:56:57 2021 +0000

description:
www/unit: import unit-1.22.0

NGINX Unit is a polyglot app server, a reverse proxy, and a static file server,
available for Unix-like systems. It was built by nginx team members from
scratch to be highly efficient and fully configurable at runtime.

Vast majority of work done by Sergey A. Osokin <osa%FreeBSD.org@localhost>

WWW: http://unit.nginx.org/

diffstat:

 www/unit-perl/DESCR                                 |    1 +
 www/unit-perl/Makefile                              |   21 +++
 www/unit-php/DESCR                                  |    1 +
 www/unit-php/Makefile                               |   29 ++++
 www/unit-python/DESCR                               |    1 +
 www/unit-python/Makefile                            |   20 +++
 www/unit-ruby/DESCR                                 |    1 +
 www/unit-ruby/Makefile                              |   19 ++
 www/unit/DESCR                                      |    6 +
 www/unit/Makefile                                   |   14 ++
 www/unit/Makefile.common                            |   60 +++++++++
 www/unit/PLIST                                      |    2 +
 www/unit/PLIST.module                               |    2 +
 www/unit/common.mk                                  |   10 +
 www/unit/distinfo                                   |   16 ++
 www/unit/ext.mk                                     |   53 ++++++++
 www/unit/files/smf/manifest.xml                     |   31 ++++
 www/unit/files/unit.sh                              |   17 ++
 www/unit/options.mk                                 |   33 +++++
 www/unit/patches/patch-auto_events                  |  128 ++++++++++++++++++++
 www/unit/patches/patch-auto_os_conf                 |   16 ++
 www/unit/patches/patch-src_nxt__cert.c              |   34 +++++
 www/unit/patches/patch-src_nxt__conf__validation.c  |   22 +++
 www/unit/patches/patch-src_nxt__kqueue__engine.c    |   21 +++
 www/unit/patches/patch-src_nxt__php__sapi.c         |   15 ++
 www/unit/patches/patch-src_nxt__router.c            |   17 ++
 www/unit/patches/patch-src_nxt__unit.c              |   19 ++
 www/unit/patches/patch-src_nxt__unix.h              |   30 ++++
 www/unit/patches/patch-src_nxt__websocket__header.h |   14 ++
 www/unit/version.mk                                 |   20 +++
 30 files changed, 673 insertions(+), 0 deletions(-)

diffs (truncated from 793 to 300 lines):

diff -r 9c7c165a12a5 -r 691d045df331 www/unit-perl/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit-perl/DESCR       Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,1 @@
+Perl module for NGINX Unit.
diff -r 9c7c165a12a5 -r 691d045df331 www/unit-perl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit-perl/Makefile    Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2021/02/14 11:56:57 otis Exp $
+
+PKGNAME=       unit-${LANG}-${UNIT_VERSION}
+COMMENT=       Perl module for NGINX Unit
+
+LANG=          perl
+MODNAME=       ${LANG}
+
+MAINTAINER=    osa%FreeBSD.org@localhost
+
+USE_TOOLS+=    perl
+
+post-configure:
+       ${RUN} cd ${WRKSRC} && ${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV}        \
+               ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} ${CONFIGURE_SCRIPT}       \
+                       ${LANG} --module=${MODNAME}
+
+.include "../../lang/perl5/buildlink3.mk"
+.include "../../wip/unit/ext.mk"
+.include "../../wip/unit/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 9c7c165a12a5 -r 691d045df331 www/unit-php/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit-php/DESCR        Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,1 @@
+PHP module for NGINX Unit.
diff -r 9c7c165a12a5 -r 691d045df331 www/unit-php/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit-php/Makefile     Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2021/02/14 11:56:57 otis Exp $
+
+PKGNAME=       unit-${LANG}${PHP_VERSION:R:S|.||g}-${UNIT_VERSION}
+COMMENT=       PHP module for NGINX Unit
+
+LANG=          php
+MODNAME=       ${LANG}${PHP_VERSION}
+
+MAINTAINER=    osa%FreeBSD.org@localhost
+
+PHP_VERSIONS_ACCEPTED?=        56 72 73 74
+
+.include "../../lang/php/phpversion.mk"
+
+#.if empty(PKG_BUILD_OPTIONS.${PHP_PKG_PREFIX}:Mphp-embed)
+#BROKEN=               "Requires the php-embed option enabled in PHP."
+#.endif
+
+post-configure:
+       ${RUN} cd ${WRKSRC} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV}       \
+               ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS}                   \
+                       ${CONFIGURE_SCRIPT} ${LANG}                     \
+                               --lib-path=${PREFIX}/lib                \
+                               --module=${MODNAME}
+
+.include "${PHPPKGSRCDIR}/buildlink3.mk"
+.include "../../wip/unit/ext.mk"
+.include "../../wip/unit/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 9c7c165a12a5 -r 691d045df331 www/unit-python/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit-python/DESCR     Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,1 @@
+Perl module for NGINX Unit.
diff -r 9c7c165a12a5 -r 691d045df331 www/unit-python/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit-python/Makefile  Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2021/02/14 11:56:58 otis Exp $
+
+PKGNAME=       unit-${LANG}-${UNIT_VERSION}
+COMMENT=       Python module for NGINX Unit
+
+LANG=          python
+MODNAME=       ${LANG}
+
+MAINTAINER=    osa%FreeBSD.org@localhost
+
+post-configure:
+       ${RUN} cd ${WRKSRC} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV}               \
+               ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} ${CONFIGURE_SCRIPT}       \
+                       ${LANG} --module=${MODNAME}                             \
+                               --config=${LANG}${PYVERSSUFFIX}-config
+
+.include "../../lang/${LANG}/application.mk"
+.include "../../wip/unit/ext.mk"
+.include "../../wip/unit/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 9c7c165a12a5 -r 691d045df331 www/unit-ruby/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit-ruby/DESCR       Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,1 @@
+Ruby module for NGINX Unit.
diff -r 9c7c165a12a5 -r 691d045df331 www/unit-ruby/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit-ruby/Makefile    Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2021/02/14 11:56:58 otis Exp $
+
+PKGNAME=       unit-${LANG}-${UNIT_VERSION}
+COMMENT=       Ruby module for NGINX Unit
+
+LANG=          ruby
+MODNAME=       ${LANG}
+
+MAINTAINER=    osa%FreeBSD.org@localhost
+
+post-configure:
+       ${RUN} cd ${WRKSRC} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV}       \
+               ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS}                   \
+                       ${CONFIGURE_SCRIPT} ${LANG} --module=${MODNAME}
+
+.include "../../lang/${LANG}/buildlink3.mk"
+.include "../../wip/unit/ext.mk"
+.include "../../wip/unit/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 9c7c165a12a5 -r 691d045df331 www/unit/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit/DESCR    Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,6 @@
+NGINX Unit is a lightweight dynamic open-source server for diverse
+web applications.
+
+Built from scratch, Unit can run web apps in different language
+versions; fully configurable in runtime with zero interruption, it
+enables on-the-fly granular management for engineering and operations.
diff -r 9c7c165a12a5 -r 691d045df331 www/unit/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit/Makefile Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2021/02/14 11:56:57 otis Exp $
+
+.include "../../wip/unit/version.mk"
+
+DISTNAME=      unit-${UNIT_VERSION}
+
+COMMENT=       Dynamic web application server
+
+MAINTAINER=    osa%FreeBSD.org@localhost
+
+RCD_SCRIPTS=   unit
+
+.include "../../wip/unit/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 9c7c165a12a5 -r 691d045df331 www/unit/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit/Makefile.common  Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,60 @@
+# $NetBSD: Makefile.common,v 1.1 2021/02/14 11:56:57 otis Exp $
+#
+# used by www/libunit/Makefile
+# used by www/unit/Makefile
+# used by www/unit-perl/Makefile
+# used by www/unit-php/Makefile
+# used by www/unit-python/Makefile
+# used by www/unit-ruby/Makefile
+
+# Do *not* add any version-specific data here
+
+CATEGORIES=    www
+MASTER_SITES=  https://unit.nginx.org/download/
+
+HOMEPAGE=      https://unit.nginx.org/
+LICENSE=       apache-2.0
+
+.include "../../mk/bsd.prefs.mk"
+
+UNIT_USER?=            unit
+UNIT_GROUP?=           unit
+UNIT_DATADIR?=         ${VARBASE}/db/unit
+UNIT_LOGDIR?=          ${VARBASE}/log/unit
+UNIT_RUNDIR?=          ${VARBASE}/run/unit
+UNIT_PIDDIR?=          ${VARBASE}/run
+UNIT_TMPDIR?=          ${VARBASE}/tmp
+
+BUILD_DEFS+=           UNIT_DATADIR UNIT_LOGDIR UNIT_PIDDIR VARBASE
+
+PKG_USERS_VARS+=       UNIT_USER
+PKG_GROUPS_VARS+=      UNIT_GROUP
+PKG_GROUPS=            ${UNIT_GROUP}
+PKG_USERS=             ${UNIT_USER}:${UNIT_GROUP}
+
+PKG_GECOS.${UNIT_USER}=        NGINX Unit server user
+PKG_HOME.${UNIT_USER}= ${UNIT_DATADIR}
+PKG_SHELL.${UNIT_USER}=        ${NOLOGIN}
+
+USE_PKGLOCALEDIR=      yes
+HAS_CONFIGURE=         yes
+CONFIGURE_ENV+=                PATH=${PATH}
+CONFIGURE_ARGS+=       --prefix=${PREFIX}
+CONFIGURE_ARGS+=       --ld-opt="-L${PREFIX}/lib -R${PREFIX}/lib"
+CONFIGURE_ARGS+=       --log=${UNIT_LOGDIR}/unit.log
+CONFIGURE_ARGS+=       --modules=${UNIT_EXTENSION_DIR}
+CONFIGURE_ARGS+=       --pid=${UNIT_PIDDIR}/unit.pid
+CONFIGURE_ARGS+=       --state=${UNIT_DATADIR}
+CONFIGURE_ARGS+=       --control=unix:${UNIT_RUNDIR}/control.unit.sock
+CONFIGURE_ARGS+=       --tmp=${UNIT_TMPDIR}
+CONFIGURE_ARGS+=       --user=${UNIT_USER}
+CONFIGURE_ARGS+=       --group=${UNIT_GROUP}
+
+.include "../../wip/unit/options.mk"
+
+INSTALLATION_DIRS+=    sbin ${UNIT_EXTENSION_DIR}
+MAKE_DIRS+=            ${UNIT_PIDDIR} ${UNIT_DATADIR} ${UNIT_RUNDIR}
+OWN_DIRS=              ${UNIT_LOGDIR} ${UNIT_RUNDIR}
+OWN_DIRS_PERMS+=       ${UNIT_DATADIR} ${UNIT_USER} ${UNIT_GROUP} 0700
+
+USE_LANGUAGES= c
diff -r 9c7c165a12a5 -r 691d045df331 www/unit/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit/PLIST    Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2021/02/14 11:56:57 otis Exp $
+sbin/unitd
diff -r 9c7c165a12a5 -r 691d045df331 www/unit/PLIST.module
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit/PLIST.module     Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.module,v 1.1 2021/02/14 11:56:57 otis Exp $
+${UNIT_EXTENSION_DIR}/${PKGMODNAME}.${SHLIB_SUFFIX}
diff -r 9c7c165a12a5 -r 691d045df331 www/unit/common.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit/common.mk        Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: common.mk,v 1.1 2021/02/14 11:56:57 otis Exp $
+
+.if !defined(UNITCOMMON_MK)
+UNITCOMMON_MK= defined
+
+DISTNAME?=     unit-${UNIT_VERSION}
+
+.endif
+
+.include "../../wip/unit/version.mk"
diff -r 9c7c165a12a5 -r 691d045df331 www/unit/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit/distinfo Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: distinfo,v 1.1 2021/02/14 11:56:57 otis Exp $
+
+SHA1 (unit-1.22.0.tar.gz) = ab38a89c12d15a56fdc1a51dd6fa8a689e02abae
+RMD160 (unit-1.22.0.tar.gz) = a658f1c8f898e381a017303264b0d7202627cdbb
+SHA512 (unit-1.22.0.tar.gz) = 7418e9dd86c10d64184f5a2f3e26c27bacc53b90ba35658fba6af00a57df89645c16c16b510d3e570eee6f8fdeef4ec7f92971f7231093e3da118e858ed386f5
+Size (unit-1.22.0.tar.gz) = 824763 bytes
+SHA1 (patch-auto_events) = 0347dfefbedaacd206c8c2bfd8ea38b18995dd9f
+SHA1 (patch-auto_os_conf) = 6d1cd7aef662a60d4288014eb6fadbe8c1268e55
+SHA1 (patch-src_nxt__cert.c) = c91e45f148a079b543a0d3cb277388bffb3e2854
+SHA1 (patch-src_nxt__conf__validation.c) = bc00a598fc3e8a6bb9ccee3b773b603e788b426f
+SHA1 (patch-src_nxt__kqueue__engine.c) = c341425f4b21d4cff6e003958f88a04b53dc4ee1
+SHA1 (patch-src_nxt__php__sapi.c) = 2d5e557ff2066bec78f5bfbca6a64688f60da01b
+SHA1 (patch-src_nxt__router.c) = cc679af06fce1589d555c001574cd4cbd1af53b7
+SHA1 (patch-src_nxt__unit.c) = fd9a43fc2cbcd342cd5e82e074c3c5a3d6a090cb
+SHA1 (patch-src_nxt__unix.h) = c0db5bc4d9c45a3ead48627567284d8b3041b0a0
+SHA1 (patch-src_nxt__websocket__header.h) = 1b50405b187cc8a662372a1c20ab7737278135ae
diff -r 9c7c165a12a5 -r 691d045df331 www/unit/ext.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/unit/ext.mk   Sun Feb 14 11:56:57 2021 +0000
@@ -0,0 +1,53 @@
+# $NetBSD: ext.mk,v 1.1 2021/02/14 11:56:57 otis Exp $
+#
+# NGINX Unit extension package framework, for bundled extensions.
+#
+# Just include this file, define MODNAME, define PKGREVISION if necessary,
+# add dependencies, and add the appropriate --with-configure-arg, then include
+# bsd.pkg.mk.
+#
+# used by wip/unit-perl/Makefile
+# used by wip/unit-php/Makefile
+# used by wip/unit-python/Makefile
+# used by wip/unit-ruby/Makefile
+
+.if !defined(UNITEXT_MK)
+UNITEXT_MK=    defined
+
+.include "../../wip/unit/version.mk"
+
+DISTINFO_FILE= ${.CURDIR}/../../wip/unit/distinfo
+PATCHDIR=      ${.CURDIR}/../../wip/unit/patches
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !defined(MODNAME)
+PKG_FAIL_REASON+=      "MODNAME should be defined"
+.endif
+
+PKGMODNAME?=   ${MODNAME}.unit
+
+PLIST_SUBST+=  PKGMODNAME=${MODNAME}.unit
+PLIST_SUBST+=  SHLIB_SUFFIX=${SHLIB_SUFFIX}
+PLIST_SUBST+=  UNIT_EXTENSION_DIR=${UNIT_EXTENSION_DIR}
+



Home | Main Index | Thread Index | Old Index