aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2023-03-15 15:32:24 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2023-03-15 15:32:24 +0000
commit5e8925925c62564c07bde6d91f911615f41678b4 (patch)
tree5d24d1f3ff5efcc715ca0ca8d22432127b4febb0
parent0ce2cce5608d43802dd3b4d16551ed23341e15c7 (diff)
www/unitc: add new port (+)
The unitc is a command-line interface for NGINX Unit management. WWW: https://unit.nginx.org/
-rw-r--r--www/Makefile1
-rw-r--r--www/unitc/Makefile31
-rw-r--r--www/unitc/distinfo3
-rw-r--r--www/unitc/pkg-descr3
4 files changed, 38 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index b88fece28aca..0b1bf83c19dc 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2359,6 +2359,7 @@
SUBDIR += unit-php
SUBDIR += unit-python
SUBDIR += unit-ruby
+ SUBDIR += unitc
SUBDIR += uwebsockets
SUBDIR += uwsgi
SUBDIR += uwsgitop
diff --git a/www/unitc/Makefile b/www/unitc/Makefile
new file mode 100644
index 000000000000..76da7b01de7a
--- /dev/null
+++ b/www/unitc/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= unitc
+PORTVERSION= ${UNIT_VERSION}
+CATEGORIES= www
+MASTER_SITES?= https://unit.nginx.org/download/
+DISTNAME= unit-${PORTVERSION}
+
+MAINTAINER= osa@FreeBSD.org
+COMMENT= Command-line management tool for NGINX Unit
+WWW= https://unit.nginx.org
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= bash>0:shells/bash \
+ curl:ftp/curl
+
+CPE_VENDOR= nginx
+CPE_PRODUCT= unit
+
+USES+= cpe shebangfix
+SHEBANG_FILES= tools/unitc
+
+NO_BUILD= yes
+
+PLIST_FILES?= bin/unitc
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/tools/unitc ${STAGEDIR}${PREFIX}/bin/
+
+.include "../../www/unit/version.mk"
+.include <bsd.port.mk>
diff --git a/www/unitc/distinfo b/www/unitc/distinfo
new file mode 100644
index 000000000000..9f8623349734
--- /dev/null
+++ b/www/unitc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1677622904
+SHA256 (unit-1.29.1.tar.gz) = 7d756cff8c1a40b38c313fdbe8748333ffce034a3916fa1b502d63cc10623437
+SIZE (unit-1.29.1.tar.gz) = 906654
diff --git a/www/unitc/pkg-descr b/www/unitc/pkg-descr
new file mode 100644
index 000000000000..b753a8a17606
--- /dev/null
+++ b/www/unitc/pkg-descr
@@ -0,0 +1,3 @@
+The unitc tool provides a command-line interface as a wrapper for curl(1)
+for daily configuration and management of NGINX Unit instances. It aims
+to minimize typing effort and shield the users from exotic curl(1) options.