git: 82380dc78d70 - main - www/unit: Remove expired port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 31 Dec 2025 12:10:26 UTC
The branch main has been updated by rene:
URL: https://cgit.FreeBSD.org/ports/commit/?id=82380dc78d7045ae7d564188cf123e27b87ac127
commit 82380dc78d7045ae7d564188cf123e27b87ac127
Author: Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-12-31 12:10:18 +0000
Commit: Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-12-31 12:10:18 +0000
www/unit: Remove expired port
2025-12-31 www/unit: Upstream repo archived on Oct 8 2025
---
MOVED | 1 +
www/Makefile | 1 -
www/unit/Makefile | 144 -----------------------------------
www/unit/distinfo | 5 --
www/unit/files/extra-patch-auto-make | 22 ------
www/unit/files/patch-auto_otel | 17 -----
www/unit/files/unitd.in | 53 -------------
www/unit/pkg-descr | 4 -
www/unit/version.mk | 7 --
9 files changed, 1 insertion(+), 253 deletions(-)
diff --git a/MOVED b/MOVED
index 8f0a8de946e5..1730601d8919 100644
--- a/MOVED
+++ b/MOVED
@@ -4978,3 +4978,4 @@ graphics/tumble||2025-12-31|Has expired: historical tool, use imagemagick instea
devel/py-cadquery-pywrap||2025-12-31|Has expired: This port was part of an effort to port CadQuery. This has been abandoned, so this port is no longer needed as it serves no other purpose
www/unit-ruby||2025-12-31|Has expired: Upstream repo archived on Oct 8 2025
www/unitc||2025-12-31|Removed, part of expired www/unit
+www/unit||2025-12-31|Has expired: Upstream repo archived on Oct 8 2025
diff --git a/www/Makefile b/www/Makefile
index c1c096f5a801..4e3308cba7c8 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2644,7 +2644,6 @@
SUBDIR += ufdbguard
SUBDIR += ulfius
SUBDIR += ungoogled-chromium
- SUBDIR += unit
SUBDIR += urlfinder
SUBDIR += uwebsockets
SUBDIR += uwsgi
diff --git a/www/unit/Makefile b/www/unit/Makefile
deleted file mode 100644
index b512e3bb89e9..000000000000
--- a/www/unit/Makefile
+++ /dev/null
@@ -1,144 +0,0 @@
-PORTNAME= unit
-PORTVERSION= ${UNIT_VERSION}
-PORTREVISION= 1
-CATEGORIES= www
-MASTER_SITES?= https://unit.nginx.org/download/
-DISTFILES?= ${PORTNAME}-${PORTVERSION}.tar.gz
-
-PATCH_SITES= https://github.com/nginx/unit/commit/
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT?= Dynamic web application server
-WWW= https://unit.nginx.org
-
-LICENSE= APACHE20
-LICENSE_FILE= ${WRKSRC}/LICENSE
-
-DEPRECATED= Upstream repo archived on Oct 8 2025
-EXPIRATION_DATE=2025-12-31
-
-USES+= compiler:c11 cpe gmake ssl
-
-CPE_VENDOR= nginx
-CPE_PRODUCT= unit
-
-OPTIONS_DEFINE?= \
- DEBUG \
- IPV6 \
- NJS \
- OTEL \
- UNIXSOCK
-OPTIONS_DEFAULT?= IPV6 UNIXSOCK
-
-DEBUG_DESC= Enable debug logging
-NJS_DESC= Enable NGINX JavaScript
-OTEL_DESC= Enable OpenTelemetry
-UNIXSOCK_DESC= Enable unix sockets
-
-.include <bsd.port.options.mk>
-
-HAS_CONFIGURE= yes
-
-UNIT_VARDIR?= /var
-UNIT_DBDIR?= ${UNIT_VARDIR}/db/${PORTNAME}
-UNIT_LOGDIR?= ${UNIT_VARDIR}/log/${PORTNAME}
-UNIT_LOGFILE?= ${UNIT_LOGDIR}/${PORTNAME}.log
-UNIT_PIDFILE?= ${UNIT_RUNDIR}/${PORTNAME}.pid
-UNIT_RUNDIR?= ${UNIT_VARDIR}/run/unit
-UNIT_SOCK?= ${UNIT_RUNDIR}/control.unit.sock
-UNIT_TMPDIR?= ${UNIT_VARDIR}/tmp/unit
-
-CONFIGURE_ARGS= --prefix=${PREFIX} \
- --ld-opt="-L${LOCALBASE}/lib" \
- --log=${UNIT_LOGFILE} \
- --logdir=${UNIT_LOGDIR} \
- --modulesdir=${PREFIX}/libexec/unit/modules \
- --openssl \
- --pid=${UNIT_PIDFILE} \
- --runstatedir=${UNIT_RUNDIR} \
- --statedir=${UNIT_DBDIR} \
- --tmpdir=${UNIT_TMPDIR} \
- --user=${WWWOWN} --group=${WWWGRP}
-
-USERS?= ${WWWOWN}
-GROUPS?=${WWWGRP}
-
-ALL_TARGET=
-
-LIB_DEPENDS+= libpcre2-8.so:devel/pcre2
-
-PLIST_DIRS?= libexec/unit/modules \
- libexec/unit
-PLIST_FILES?= sbin/unitd \
- share/man/man8/unitd.8.gz
-
-USE_RC_SUBR?= unitd
-SUB_LIST= PREFIX=${PREFIX} \
- UNIT_PIDFILE=${UNIT_PIDFILE} \
- UNIT_SOCK=${UNIT_SOCK} \
- UNIT_TMPDIR=${UNIT_TMPDIR} \
- WWWOWN=${WWWOWN} \
- WWWGRP=${WWWGRP}
-
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+=--debug
-.endif
-
-.if empty(PORT_OPTIONS:MIPV6)
-CONFIGURE_ARGS+=--no-ipv6
-.endif
-
-.if ${PORT_OPTIONS:MNJS}
-USES+= pkgconfig
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libnjs.a:devel/libnjs
-LIB_DEPENDS+= libquickjs.so:lang/quickjs
-CONFIGURE_ARGS+=--njs \
- --cc-opt="-I${LOCALBASE}/include" \
- --ld-opt="-L${LOCALBASE}/lib"
-.endif
-
-.if ${PORT_OPTIONS:MOTEL}
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libotel.a:devel/unit-otel
-CONFIGURE_ARGS+= --otel
-EXTRA_PATCHES+= ${FILESDIR}/extra-patch-auto-make
-.endif
-
-.if empty(PORT_OPTIONS:MUNIXSOCK)
-CONFIGURE_ARGS+=--no-unix-sockets
-.else
-CONFIGURE_ARGS+=--control=unix:${UNIT_SOCK}
-.endif
-
-.if defined(UNIT_MODNAME) && ${UNIT_MODNAME:Mperl*}
-# Fix build failure on clang >= 12
-CFLAGS+= -Wno-compound-token-split-by-macro
-.endif
-
-.if (defined(UNIT_MODNAME) && ${UNIT_MODNAME:Mphp}) || make(makesum)
-PATCHFILES= ad736f9f4fddd844aed1eb6ee8a9dc88df5533fb.patch:-p1
-.endif
-
-.if !defined(UNIT_MODNAME)
-post-patch-OTEL-on:
- ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
- ${WRKSRC}/auto/make
-
-do-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE}
-
-post-install:
- ${MKDIR} ${STAGEDIR}${UNIT_DBDIR}
- ${MKDIR} ${STAGEDIR}${UNIT_LOGDIR}
- ${MKDIR} ${STAGEDIR}${UNIT_RUNDIR}
- ${MKDIR} ${STAGEDIR}${UNIT_TMPDIR}
- ${ECHO_CMD} @dir ${UNIT_DBDIR} >> ${TMPPLIST}
- ${ECHO_CMD} @dir ${UNIT_LOGDIR} >> ${TMPPLIST}
- ${ECHO_CMD} @dir ${UNIT_RUNDIR} >> ${TMPPLIST}
- ${ECHO_CMD} @dir ${UNIT_TMPDIR} >> ${TMPPLIST}
- ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules
- ${INSTALL_MAN} ${WRKSRC}/build/share/man/man8/unitd.8 \
- ${STAGEDIR}${PREFIX}/share/man/man8
-.endif
-
-.include "../../www/unit/version.mk"
-.include <bsd.port.mk>
diff --git a/www/unit/distinfo b/www/unit/distinfo
deleted file mode 100644
index 8c22b0ebba20..000000000000
--- a/www/unit/distinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-TIMESTAMP = 1760062694
-SHA256 (unit-1.35.0.tar.gz) = 20bb921b8128ff046c3d7a52b93ab2d94ae46c3b5a85d479b6b5ee9928e89c87
-SIZE (unit-1.35.0.tar.gz) = 1066376
-SHA256 (ad736f9f4fddd844aed1eb6ee8a9dc88df5533fb.patch) = ddfc67f0952043d93192a12b39b0b490b32fe40fcfe4520595ca5fed2a6c58e8
-SIZE (ad736f9f4fddd844aed1eb6ee8a9dc88df5533fb.patch) = 980
diff --git a/www/unit/files/extra-patch-auto-make b/www/unit/files/extra-patch-auto-make
deleted file mode 100644
index b709171b8027..000000000000
--- a/www/unit/files/extra-patch-auto-make
+++ /dev/null
@@ -1,22 +0,0 @@
---- auto/make.orig 2025-01-10 16:45:42 UTC
-+++ auto/make
-@@ -43,7 +43,7 @@ RUST_FLAGS = --release
- cat << END >> $NXT_MAKEFILE
-
- RUST_FLAGS = --release
--NXT_OTEL_LIB_STATIC = $NXT_BUILD_DIR/lib/libotel.a
-+NXT_OTEL_LIB_STATIC = %%LOCALBASE%%/lib/libotel.a
-
- END
-
-@@ -585,10 +585,5 @@ NXT_OTEL_DEPS=" \
-
- cat << END >> $NXT_MAKEFILE
-
--\$(NXT_OTEL_LIB_STATIC): $NXT_OTEL_DEPS
-- \$(PP_CR) \$@
-- \$(v)cargo rustc \$(RUST_FLAGS) \\
-- --manifest-path $NXT_OTEL_LIB_DIR/Cargo.toml \\
-- -- --emit link=../../$NXT_BUILD_DIR/lib/libotel.a
- END
- fi
diff --git a/www/unit/files/patch-auto_otel b/www/unit/files/patch-auto_otel
deleted file mode 100644
index b9aebd5aae07..000000000000
--- a/www/unit/files/patch-auto_otel
+++ /dev/null
@@ -1,17 +0,0 @@
---- auto/otel.orig 2025-01-13 14:51:13 UTC
-+++ auto/otel
-@@ -8,14 +8,12 @@ if [ $NXT_OTEL = YES ]; then
- $echo -n " - checking for rust compiler ... "
- if [ -z $(which rustc 2>/dev/null) ]; then
- $echo "not found"
-- exit 1;
- fi
- $echo "found"
-
- $echo -n " - checking for cargo ... "
- if [ -z $(which cargo 2>/dev/null) ]; then
- $echo "not found."
-- exit 1;
- fi
- $echo "found"
-
diff --git a/www/unit/files/unitd.in b/www/unit/files/unitd.in
deleted file mode 100644
index 1104ed906cfd..000000000000
--- a/www/unit/files/unitd.in
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: unitd
-# REQUIRE: LOGIN cleanvar
-# KEYWORD: shutdown
-
-#
-# Add the following lines to /etc/rc.conf to enable nginx:
-# unitd_enable (bool): Set to "NO" by default.
-# Set it to "YES" to enable unit
-# unitd_sockfile (str): Set to "" by default.
-# Set it to "127.0.0.1:8443" to enable the unit control
-# socket on the network address
-
-. /etc/rc.subr
-
-name="unitd"
-rcvar=unitd_enable
-
-command="%%PREFIX%%/sbin/unitd"
-start_precmd=start_precmd
-_tmpprefix="%%UNIT_TMPDIR%%"
-
-unitd_checktmpdir()
-{
- if [ ! -d ${_tmpprefix} ] ; then
- install -d -o %%WWWOWN%% -g %%WWWGRP%% -m 755 ${_tmpprefix}
- else
- chown -R %%WWWOWN%%:%%WWWGRP%% ${_tmpprefix}
- fi
-}
-
-start_precmd()
-{
- unitd_checktmpdir
- rm -f %%UNIT_SOCK%%
-}
-
-load_rc_config $name
-
-# Default value
-: ${unitd_sockfile=""}
-
-pidfile=${unit_pidfile:-"%%UNIT_PIDFILE%%"}
-unitd_enable=${unitd_enable:-"NO"}
-sockfile=${unitd_sockfile}
-
-if [ x${sockfile} != "x" ]
-then
- command_args="--control ${sockfile}"
-fi
-
-run_rc_command "$1"
diff --git a/www/unit/pkg-descr b/www/unit/pkg-descr
deleted file mode 100644
index e4a86863bff6..000000000000
--- a/www/unit/pkg-descr
+++ /dev/null
@@ -1,4 +0,0 @@
-NGINX Unit is a dynamic web application server, designed to run applications
-in multiple languages. Unit is lightweight, polyglot, and dynamically
-configured via API. The design of the server allows reconfiguration of
-specific application parameters as needed by the engineering or operations.
diff --git a/www/unit/version.mk b/www/unit/version.mk
deleted file mode 100644
index b47ec048a5c5..000000000000
--- a/www/unit/version.mk
+++ /dev/null
@@ -1,7 +0,0 @@
-.if !defined(UNITVERSION_MK)
-UNITVERSION_MK= defined
-
-# Define NGINX Unit's version.
-UNIT_VERSION= 1.35.0
-
-.endif # UNITVERSION_MK