git: 5e8925925c62 - main - www/unitc: add new port (+)

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Wed, 15 Mar 2023 15:34:32 UTC
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5e8925925c62564c07bde6d91f911615f41678b4

commit 5e8925925c62564c07bde6d91f911615f41678b4
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2023-03-15 15:32:24 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2023-03-15 15:32:24 +0000

    www/unitc: add new port (+)
    
    The unitc is a command-line interface for NGINX Unit management.
    
    WWW:    https://unit.nginx.org/
---
 www/Makefile        |  1 +
 www/unitc/Makefile  | 31 +++++++++++++++++++++++++++++++
 www/unitc/distinfo  |  3 +++
 www/unitc/pkg-descr |  3 +++
 4 files changed, 38 insertions(+)

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.