pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils Fix bash scripts to use a normal shell.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/49b49254b89f
branches:  trunk
changeset: 364667:49b49254b89f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jul 03 13:04:01 2017 +0000

description:
Fix bash scripts to use a normal shell.

diffstat:

 sysutils/zabbix-frontend/Makefile                                        |  10 ++++++-
 sysutils/zabbix/distinfo                                                 |   4 ++-
 sysutils/zabbix/patches/patch-frontends_php_locale_add__new__language.sh |  13 ++++++++++
 sysutils/zabbix/patches/patch-frontends_php_locale_make__mo.sh           |  12 +++++++++
 4 files changed, 36 insertions(+), 3 deletions(-)

diffs (82 lines):

diff -r 3960d576b8ad -r 49b49254b89f sysutils/zabbix-frontend/Makefile
--- a/sysutils/zabbix-frontend/Makefile Mon Jul 03 13:03:02 2017 +0000
+++ b/sysutils/zabbix-frontend/Makefile Mon Jul 03 13:04:01 2017 +0000
@@ -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 @@
 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 -r 3960d576b8ad -r 49b49254b89f sysutils/zabbix/distinfo
--- a/sysutils/zabbix/distinfo  Mon Jul 03 13:03:02 2017 +0000
+++ b/sysutils/zabbix/distinfo  Mon Jul 03 13:04:01 2017 +0000
@@ -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 -r 3960d576b8ad -r 49b49254b89f sysutils/zabbix/patches/patch-frontends_php_locale_add__new__language.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/zabbix/patches/patch-frontends_php_locale_add__new__language.sh  Mon Jul 03 13:04:01 2017 +0000
@@ -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 -r 3960d576b8ad -r 49b49254b89f sysutils/zabbix/patches/patch-frontends_php_locale_make__mo.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/zabbix/patches/patch-frontends_php_locale_make__mo.sh    Mon Jul 03 13:04:01 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index