aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Neumeister <joneum@FreeBSD.org>2022-12-14 13:28:28 +0000
committerJochen Neumeister <joneum@FreeBSD.org>2022-12-14 13:30:04 +0000
commitb152692c897ff8ef9b54fa0e4b16ea749b74be44 (patch)
tree1291c2e3abbdf18926735cfa5a4fc111dd76227a
parent26c717c271d9f329dba8e4645daf5fb3201649a2 (diff)
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
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/icinga-ipl-i18n/Makefile30
-rw-r--r--net-mgmt/icinga-ipl-i18n/distinfo3
-rw-r--r--net-mgmt/icinga-ipl-i18n/pkg-descr1
-rw-r--r--net-mgmt/icinga-ipl-i18n/pkg-plist25
5 files changed, 60 insertions, 0 deletions
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