pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Avoid non portable test == usage
Module Name: pkgsrc-wip
Committed By: David Brownlee <abs%absd.org@localhost>
Pushed By: abs
Date: Thu Feb 6 11:26:13 2020 +0000
Changeset: 003aef870c5ff18b0e5b667fdc9c67a0b6691338
Modified Files:
lxqt-admin/distinfo
Added Files:
lxqt-admin/patches/patch-lxqt-admin-time_lxqt-admin-time-helper.freebsd
Log Message:
Avoid non portable test == usage
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=003aef870c5ff18b0e5b667fdc9c67a0b6691338
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lxqt-admin/distinfo | 1 +
...-lxqt-admin-time_lxqt-admin-time-helper.freebsd | 33 ++++++++++++++++++++++
2 files changed, 34 insertions(+)
diffs:
diff --git a/lxqt-admin/distinfo b/lxqt-admin/distinfo
index d75b8beef0..90743f02b2 100644
--- a/lxqt-admin/distinfo
+++ b/lxqt-admin/distinfo
@@ -5,3 +5,4 @@ RMD160 (lxqt-admin-0.14.1.tar.xz) = 2519de22bdb1c90caa956d12e6ea6ae711c6f19a
SHA512 (lxqt-admin-0.14.1.tar.xz) = bd6272a3042a71e9e00b2ba10be2575649c2d2750a4e00a6e11adaae6b91ccab5e3cf79a8ceb7bfbe808ec80c139b93e02cd96990f80b68a77a974c063e6a373
Size (lxqt-admin-0.14.1.tar.xz) = 141088 bytes
SHA1 (patch-CMakeLists.txt) = db95d18fc2a379ba7bab5473f2859bb7a53906b9
+SHA1 (patch-lxqt-admin-time_lxqt-admin-time-helper.freebsd) = cc7df316cd0bc06927245ec8cda10b89c1aac9c5
diff --git a/lxqt-admin/patches/patch-lxqt-admin-time_lxqt-admin-time-helper.freebsd b/lxqt-admin/patches/patch-lxqt-admin-time_lxqt-admin-time-helper.freebsd
new file mode 100644
index 0000000000..20e5285e60
--- /dev/null
+++ b/lxqt-admin/patches/patch-lxqt-admin-time_lxqt-admin-time-helper.freebsd
@@ -0,0 +1,33 @@
+$NetBSD$
+
+Avoid non portable == shell test usage
+
+--- lxqt-admin-time/lxqt-admin-time-helper.freebsd.orig 2019-02-25 22:10:39.000000000 +0000
++++ lxqt-admin-time/lxqt-admin-time-helper.freebsd
+@@ -44,22 +44,22 @@ if [ "${newdate}" != "" ]; then
+ date -f %s ${settime}
+ fi;
+ if [ "${usentp}" != "" ]; then
+- if [ "$usentp" == "true" ]; then
++ if [ "$usentp" = "true" ]; then
+ sysrc ntpd_enable=YES
+ service ntpd stop
+ ntpd -g -q
+ service ntpd start
+ fi;
+- if [ "$usentp" == "false" ]; then
++ if [ "$usentp" = "false" ]; then
+ sysrc ntpd_enable=false
+ service ntpd onestop
+ fi;
+ fi;
+ if [ "${islocaltime}" != "" ]; then
+- if [ $islocaltime == "false" ]; then
++ if [ $islocaltime = "false" ]; then
+ rm -f /etc/wall_cmos_clock;
+ fi;
+- if [ $islocaltime == "true" ]; then
++ if [ $islocaltime = "true" ]; then
+ touch /etc/wall_cmos_clock
+ fi
+ fi;
Home |
Main Index |
Thread Index |
Old Index