pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/comms/gammu Make sure power is enabled on startup. Use...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b2174d898f05
branches:  trunk
changeset: 411531:b2174d898f05
user:      manu <manu%pkgsrc.org@localhost>
date:      Sat Feb 15 02:19:49 2020 +0000

description:
Make sure power is enabled on startup. Useful for D-Link DWM-157

Submitted upstream as https://github.com/gammu/gammu/pull/516

diffstat:

 comms/gammu/Makefile                          |   4 ++--
 comms/gammu/PLIST                             |   2 +-
 comms/gammu/distinfo                          |   3 ++-
 comms/gammu/patches/patch-libgammu_gsmstate.c |  23 +++++++++++++++++++++++
 4 files changed, 28 insertions(+), 4 deletions(-)

diffs (66 lines):

diff -r e7318d614f56 -r b2174d898f05 comms/gammu/Makefile
--- a/comms/gammu/Makefile      Fri Feb 14 23:36:54 2020 +0000
+++ b/comms/gammu/Makefile      Sat Feb 15 02:19:49 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.40 2020/01/18 21:48:54 jperkin Exp $
+# $NetBSD: Makefile,v 1.41 2020/02/15 02:19:49 manu Exp $
 #
 
 DISTNAME=      gammu-1.41.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    comms
 MASTER_SITES=  http://dl.cihar.com/gammu/releases/
 EXTRACT_SUFX=  .tar.bz2
diff -r e7318d614f56 -r b2174d898f05 comms/gammu/PLIST
--- a/comms/gammu/PLIST Fri Feb 14 23:36:54 2020 +0000
+++ b/comms/gammu/PLIST Sat Feb 15 02:19:49 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2020/01/13 11:17:58 leot Exp $
+@comment $NetBSD: PLIST,v 1.12 2020/02/15 02:19:49 manu Exp $
 bin/gammu
 bin/gammu-config
 bin/gammu-smsd
diff -r e7318d614f56 -r b2174d898f05 comms/gammu/distinfo
--- a/comms/gammu/distinfo      Fri Feb 14 23:36:54 2020 +0000
+++ b/comms/gammu/distinfo      Sat Feb 15 02:19:49 2020 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.20 2020/01/13 11:17:58 leot Exp $
+$NetBSD: distinfo,v 1.21 2020/02/15 02:19:49 manu Exp $
 
 SHA1 (gammu-1.41.0.tar.bz2) = 74d28c3ae959d0498adf94bbbc7304cff317ea74
 RMD160 (gammu-1.41.0.tar.bz2) = 49681b5249cf936ce1a3533b9ef6f72c79701535
 SHA512 (gammu-1.41.0.tar.bz2) = f2c2534d3827216bf015607431938e0cf2524d5f2c670a5f76bb5ab7928962d22de981bbbf2dfa7af833c7903b60a775242048210bac6c35b1a9ee7668db4543
 Size (gammu-1.41.0.tar.bz2) = 2167233 bytes
 SHA1 (patch-contrib_smscgi_sms__cgi.c) = 39598119eae4fd27d6d1844ca4a846fc79b126c1
+SHA1 (patch-libgammu_gsmstate.c) = ac870d432d949388ae790f35dd00ac0401e23527
 SHA1 (patch-libgammu_phone_at_at-sms.c) = fb9dd703f822f20efa35303b15faba482e39538c
 SHA1 (patch-smsd_services_pgsql.c) = 35d30183851c6d6b14e0450b59a56c858889e701
 SHA1 (patch-smsd_services_sql.c) = 62a2c113f18d767360a598284ac1083b9abb1f29
diff -r e7318d614f56 -r b2174d898f05 comms/gammu/patches/patch-libgammu_gsmstate.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/gammu/patches/patch-libgammu_gsmstate.c     Sat Feb 15 02:19:49 2020 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-libgammu_gsmstate.c,v 1.1 2020/02/15 02:19:49 manu Exp $
+
+Make sure power is enabled on startup. Useful for D-Link DWM-157
+
+From upstream https://github.com/gammu/gammu/pull/516
+
+--- libgammu/gsmstate.c.orig   2019-01-28 16:16:07.000000000 +0100
++++ libgammu/gsmstate.c        2020-02-14 03:16:46.526678044 +0100
+@@ -900,8 +900,14 @@
+                       GSM_LogError(s, "Init:Phone->GetFirmware" , error);
+                       return error;
+               }
+ 
++              error=s->Phone.Functions->SetPower(s, 1);
++              if (error != ERR_NONE && error != ERR_NOTSUPPORTED) {
++                      GSM_LogError(s, "Init:Phone->SetPower" , error);
++                      return error;
++              }
++
+               error=s->Phone.Functions->PostConnect(s);
+               if (error != ERR_NONE && error != ERR_NOTSUPPORTED) {
+                       GSM_LogError(s, "Init:Phone->PostConnect" , error);
+                       return error;



Home | Main Index | Thread Index | Old Index