git: 77182bb119b8 - main - www/icapeg: new port

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Tue, 09 May 2023 08:32:32 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=77182bb119b8985ddb7ef168ef8f4fd1ec824116

commit 77182bb119b8985ddb7ef168ef8f4fd1ec824116
Author:     Khaled Emara <kemara@egirna.com>
AuthorDate: 2023-05-08 16:01:05 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-05-09 08:27:49 +0000

    www/icapeg: new port
    
    ICAPeg is an Open Source implementation of ICAP (RFC 3507) server,
    designed to enable web proxies to utilize the function of API based
    services along with standalone executables and databases in order to
    provide content inspection and manipulation services.
    
    WWW: https://github.com/egirna/icapeg
    
    PR:             271151
    Reviewed by:    diizzy
    Signed-off-by:  Khaled Emara <kemara@egirna.com>
---
 www/Makefile         |  1 +
 www/icapeg/Makefile  | 26 ++++++++++++++++++++++++++
 www/icapeg/distinfo  |  5 +++++
 www/icapeg/pkg-descr |  4 ++++
 4 files changed, 36 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index f1d468d61b6b..91f5c2cc9379 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -245,6 +245,7 @@
     SUBDIR += httrack
     SUBDIR += hurl
     SUBDIR += hypermail
+    SUBDIR += icapeg
     SUBDIR += igal2
     SUBDIR += ikiwiki
     SUBDIR += ilias
diff --git a/www/icapeg/Makefile b/www/icapeg/Makefile
new file mode 100644
index 000000000000..6e8ddc5c97c6
--- /dev/null
+++ b/www/icapeg/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	icapeg
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.0.0
+CATEGORIES=	www
+
+MAINTAINER=	support@egirna.com
+COMMENT=	ICAP server implementation with Multi vendor support
+WWW=		https://github.com/egirna/icapeg
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+GO_MODULE=	github.com/egirna/icapeg
+
+post-install:
+	${MKDIR} ${STAGEDIR}${ETCDIR}
+	${INSTALL_DATA} ${WRKSRC}/config.toml ${STAGEDIR}${ETCDIR}/config.toml.sample
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/temp/exception-page.html ${STAGEDIR}${DATADIR}/exception-page.html
+
+PLIST_FILES=	"${DATADIR}/exception-page.html" \
+		"@sample ${ETCDIR}/config.toml.sample" \
+		bin/icapeg
+
+.include <bsd.port.mk>
diff --git a/www/icapeg/distinfo b/www/icapeg/distinfo
new file mode 100644
index 000000000000..f9872291b6b6
--- /dev/null
+++ b/www/icapeg/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1683286476
+SHA256 (go/www_icapeg/icapeg-v1.0.0/v1.0.0.mod) = f5dd506f5a783d79a500114ddb1606065ed43794743d9de63324349289436778
+SIZE (go/www_icapeg/icapeg-v1.0.0/v1.0.0.mod) = 1066
+SHA256 (go/www_icapeg/icapeg-v1.0.0/v1.0.0.zip) = 4ada6aa16317641f532574aad25dd993ad014502d9a2ab7f90a3ebf650c62319
+SIZE (go/www_icapeg/icapeg-v1.0.0/v1.0.0.zip) = 5941840
diff --git a/www/icapeg/pkg-descr b/www/icapeg/pkg-descr
new file mode 100644
index 000000000000..2caeaddf5dc7
--- /dev/null
+++ b/www/icapeg/pkg-descr
@@ -0,0 +1,4 @@
+ICAPeg is an Open Source implementation of ICAP (RFC 3507) server,
+designed to enable web proxies to utilize the function of API based
+services along with standalone executables and databases in order to
+provide content inspection and manipulation services.