diff options
author | joerg <joerg@pkgsrc.org> | 2017-07-03 13:04:01 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2017-07-03 13:04:01 +0000 |
commit | 55058f48256392a5593801fbfd104d927a1da2c2 (patch) | |
tree | ceaf21386dd1e695d697d38e7382bb91d319a9c2 | |
parent | 80d954f3f7c0f6d39521af5576526410b27dbcfb (diff) | |
download | pkgsrc-55058f48256392a5593801fbfd104d927a1da2c2.tar.gz |
Fix bash scripts to use a normal shell.
-rw-r--r-- | sysutils/zabbix-frontend/Makefile | 10 | ||||
-rw-r--r-- | sysutils/zabbix/distinfo | 4 | ||||
-rw-r--r-- | sysutils/zabbix/patches/patch-frontends_php_locale_add__new__language.sh | 13 | ||||
-rw-r--r-- | sysutils/zabbix/patches/patch-frontends_php_locale_make__mo.sh | 12 |
4 files changed, 36 insertions, 3 deletions
diff --git a/sysutils/zabbix-frontend/Makefile b/sysutils/zabbix-frontend/Makefile index f4ba26b5234..75810ab2f55 100644 --- a/sysutils/zabbix-frontend/Makefile +++ b/sysutils/zabbix-frontend/Makefile @@ -1,14 +1,19 @@ -# $NetBSD: Makefile,v 1.2 2017/06/06 09:12:59 adam Exp $ +# $NetBSD: Makefile,v 1.3 2017/07/03 13:04:01 joerg Exp $ .include "../../sysutils/zabbix/Makefile.common" PKGNAME= ${DISTNAME:S/-/-frontend-/} +PKGREVISION= 1 COMMENT= Zabbix PHP frontend USE_TOOLS+= pax -NO_CONFIGURE= yes NO_BUILD= yes +do-configure: + ${DO_NADA} + +REPLACE_SH+= ${WRKSRC}/frontends/php/locale/*.sh + .include "../../mk/bsd.prefs.mk" BUILD_DEFS+= APACHE_GROUP APACHE_USER @@ -29,6 +34,7 @@ DEPENDS+= ${PHP_PKG_PREFIX}-sysvsem>=5.4.0:../../devel/php-sysvsem INSTALLATION_DIRS+= share/zabbix/frontend do-install: + rm -f ${WRKSRC}/frontends/php/locale/*.orig cd ${WRKSRC}/frontends; ${PAX} -rw php ${DESTDIR}${PREFIX}/share/zabbix/ .include "../../lang/php/phpversion.mk" diff --git a/sysutils/zabbix/distinfo b/sysutils/zabbix/distinfo index 48f20828d98..49a48285a04 100644 --- a/sysutils/zabbix/distinfo +++ b/sysutils/zabbix/distinfo @@ -1,9 +1,11 @@ -$NetBSD: distinfo,v 1.1 2017/05/21 17:30:03 adam Exp $ +$NetBSD: distinfo,v 1.2 2017/07/03 13:04:01 joerg Exp $ SHA1 (zabbix-3.2.6.tar.gz) = f85c9e3ea38926ea026cdb403e9f443c4812d697 RMD160 (zabbix-3.2.6.tar.gz) = b62c7c793f674535f923df73bbe3f7b9679c22cd SHA512 (zabbix-3.2.6.tar.gz) = 48e70a7e33ec8c29967f099d27f240b2e8b02554b43a47387d02b5450367efcb0d2f1c60557194f6b1d4a9755d2c9c69a478627e57624521152b1c1ea0264844 Size (zabbix-3.2.6.tar.gz) = 16008047 bytes +SHA1 (patch-frontends_php_locale_add__new__language.sh) = c187e2b4ae8dd9e409f5c32469cb7b0f02647d8b +SHA1 (patch-frontends_php_locale_make__mo.sh) = 2f0aaa63e80fcd5d4fa8c507fd764f80070b7864 SHA1 (patch-src_zabbix__agent_Makefile.in) = a591c3e831eb34dc10cb5b1078891b5cad53b756 SHA1 (patch-src_zabbix__proxy_Makefile.in) = 535eccd707a8947903fbec41028b127a3bbbeffc SHA1 (patch-src_zabbix__server_Makefile.in) = d297b8c4a940867d0a3eaff7bcb3b178a87dfd49 diff --git a/sysutils/zabbix/patches/patch-frontends_php_locale_add__new__language.sh b/sysutils/zabbix/patches/patch-frontends_php_locale_add__new__language.sh new file mode 100644 index 00000000000..a68ee46150a --- /dev/null +++ b/sysutils/zabbix/patches/patch-frontends_php_locale_add__new__language.sh @@ -0,0 +1,13 @@ +$NetBSD: patch-frontends_php_locale_add__new__language.sh,v 1.1 2017/07/03 13:04:01 joerg Exp $ + +--- frontends/php/locale/add_new_language.sh.orig 2017-05-05 14:50:32.000000000 +0000 ++++ frontends/php/locale/add_new_language.sh +@@ -2,7 +2,7 @@ + + messagetemplate=frontend.pot + +-[[ $1 ]] || { ++[ -n "$1" ] || { + echo "Specify language code" + exit 1 + } diff --git a/sysutils/zabbix/patches/patch-frontends_php_locale_make__mo.sh b/sysutils/zabbix/patches/patch-frontends_php_locale_make__mo.sh new file mode 100644 index 00000000000..98c699edfec --- /dev/null +++ b/sysutils/zabbix/patches/patch-frontends_php_locale_make__mo.sh @@ -0,0 +1,12 @@ +$NetBSD: patch-frontends_php_locale_make__mo.sh,v 1.1 2017/07/03 13:04:01 joerg Exp $ + +--- frontends/php/locale/make_mo.sh.orig 2017-05-05 14:50:27.000000000 +0000 ++++ frontends/php/locale/make_mo.sh +@@ -1,5 +1,5 @@ + #!/bin/bash + +-while read pofile; do ++find $(dirname $0) -type f ! -wholename '*/.svn*' -name '*.po' | while read pofile; do + msgfmt --use-fuzzy -c -o ${pofile%po}mo $pofile +-done < <(find $(dirname $0) -type f ! -wholename '*/.svn*' -name '*.po') ++done |