git: b152692c897f - main - net-mgmt/icinga-ipl-i18n: add new Port

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Wed, 14 Dec 2022 13:30:09 UTC
The branch main has been updated by joneum:

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

commit b152692c897ff8ef9b54fa0e4b16ea749b74be44
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2022-12-14 13:28:28 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2022-12-14 13:30:04 +0000

    net-mgmt/icinga-ipl-i18n: add new Port
    
    ipl-i18n provides a translation suite using PHP's native gettext extension for Icinga.
    
    Sponsored by:   Netzkommune GmbH
---
 net-mgmt/Makefile                  |  1 +
 net-mgmt/icinga-ipl-i18n/Makefile  | 30 ++++++++++++++++++++++++++++++
 net-mgmt/icinga-ipl-i18n/distinfo  |  3 +++
 net-mgmt/icinga-ipl-i18n/pkg-descr |  1 +
 net-mgmt/icinga-ipl-i18n/pkg-plist | 25 +++++++++++++++++++++++++
 5 files changed, 60 insertions(+)

diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index d3549d5b4e2f..47c8e25ad5db 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -82,6 +82,7 @@
     SUBDIR += gsnmp
     SUBDIR += guifi-snpservices
     SUBDIR += hastmon
+    SUBDIR += icinga-ipl-i18n
     SUBDIR += icinga-php-library
     SUBDIR += icinga-php-thirdparty
     SUBDIR += icinga2
diff --git a/net-mgmt/icinga-ipl-i18n/Makefile b/net-mgmt/icinga-ipl-i18n/Makefile
new file mode 100644
index 000000000000..10e99a383eab
--- /dev/null
+++ b/net-mgmt/icinga-ipl-i18n/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	icinga-ipl-i18n
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.2.0
+CATEGORIES=	net-mgmt www
+PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
+
+MAINTAINER=	joneum@FreeBSD.org
+COMMENT=	Icinga PHP library
+WWW=		https://github.com/Icinga/ipl-i18n
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		php:web,flavors
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	icinga
+GH_PROJECT=	ipl-i18n
+
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+WWWDIR?=	${PREFIX}/www/icingaweb2/modules/${PORTNAME:C/^.*-//}
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${WWWDIR}
+	(cd ${WRKSRC} && \
+		${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/icinga-ipl-i18n/distinfo b/net-mgmt/icinga-ipl-i18n/distinfo
new file mode 100644
index 000000000000..092b258daa47
--- /dev/null
+++ b/net-mgmt/icinga-ipl-i18n/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1671020944
+SHA256 (icinga-ipl-i18n-v0.2.0_GH0.tar.gz) = 810570c7a044ca1868cbd920169b1ed93f2705b1ff2d8444c51f0210622a3977
+SIZE (icinga-ipl-i18n-v0.2.0_GH0.tar.gz) = 9163
diff --git a/net-mgmt/icinga-ipl-i18n/pkg-descr b/net-mgmt/icinga-ipl-i18n/pkg-descr
new file mode 100644
index 000000000000..4e3beac04932
--- /dev/null
+++ b/net-mgmt/icinga-ipl-i18n/pkg-descr
@@ -0,0 +1 @@
+ipl-i18n provides a translation suite using PHP's native gettext extension for Icinga.
diff --git a/net-mgmt/icinga-ipl-i18n/pkg-plist b/net-mgmt/icinga-ipl-i18n/pkg-plist
new file mode 100644
index 000000000000..488a0cc301f9
--- /dev/null
+++ b/net-mgmt/icinga-ipl-i18n/pkg-plist
@@ -0,0 +1,25 @@
+%%WWWDIR%%/.github/workflows/php.yml
+%%WWWDIR%%/.gitignore
+%%WWWDIR%%/LICENSE
+%%WWWDIR%%/README.md
+%%WWWDIR%%/composer.json
+%%WWWDIR%%/phpcs.xml
+%%WWWDIR%%/phpunit.xml
+%%WWWDIR%%/src/GettextTranslator.php
+%%WWWDIR%%/src/Locale.php
+%%WWWDIR%%/src/NoopTranslator.php
+%%WWWDIR%%/src/StaticTranslator.php
+%%WWWDIR%%/src/Translation.php
+%%WWWDIR%%/src/functions.php
+%%WWWDIR%%/src/functions_include.php
+%%WWWDIR%%/tests/FunctionsTest.php
+%%WWWDIR%%/tests/GettextTranslatorTest.php
+%%WWWDIR%%/tests/LocaleTest.php
+%%WWWDIR%%/tests/locale/de_DE/LC_MESSAGES/default.mo
+%%WWWDIR%%/tests/locale/de_DE/LC_MESSAGES/default.po
+%%WWWDIR%%/tests/locale/de_DE/LC_MESSAGES/special.mo
+%%WWWDIR%%/tests/locale/de_DE/LC_MESSAGES/special.po
+%%WWWDIR%%/tests/locale/it_IT/LC_MESSAGES/default.mo
+%%WWWDIR%%/tests/locale/it_IT/LC_MESSAGES/default.po
+%%WWWDIR%%/tests/locale/it_IT/LC_MESSAGES/special.mo
+%%WWWDIR%%/tests/locale/it_IT/LC_MESSAGES/special.po