diff options
author | manu <manu@pkgsrc.org> | 2020-02-15 02:19:49 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2020-02-15 02:19:49 +0000 |
commit | ca1319ab560f9e8ce89b444ecaf57a439df670aa (patch) | |
tree | 742858d4e30712911e26ea364ed13fe7f52600e1 /comms/gammu | |
parent | 7560711df33a57d1c59f9df60cba3cc94f691345 (diff) | |
download | pkgsrc-ca1319ab560f9e8ce89b444ecaf57a439df670aa.tar.gz |
Make sure power is enabled on startup. Useful for D-Link DWM-157
Submitted upstream as https://github.com/gammu/gammu/pull/516
Diffstat (limited to 'comms/gammu')
-rw-r--r-- | comms/gammu/Makefile | 4 | ||||
-rw-r--r-- | comms/gammu/PLIST | 2 | ||||
-rw-r--r-- | comms/gammu/distinfo | 3 | ||||
-rw-r--r-- | comms/gammu/patches/patch-libgammu_gsmstate.c | 23 |
4 files changed, 28 insertions, 4 deletions
diff --git a/comms/gammu/Makefile b/comms/gammu/Makefile index 7ca153bf3a1..9a3ed9fa826 100644 --- a/comms/gammu/Makefile +++ b/comms/gammu/Makefile @@ -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 --git a/comms/gammu/PLIST b/comms/gammu/PLIST index 91d1e47ed99..81ba7d9692f 100644 --- a/comms/gammu/PLIST +++ b/comms/gammu/PLIST @@ -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 --git a/comms/gammu/distinfo b/comms/gammu/distinfo index 4744fc1fd57..0f80324633d 100644 --- a/comms/gammu/distinfo +++ b/comms/gammu/distinfo @@ -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 --git a/comms/gammu/patches/patch-libgammu_gsmstate.c b/comms/gammu/patches/patch-libgammu_gsmstate.c new file mode 100644 index 00000000000..4975a84fe0f --- /dev/null +++ b/comms/gammu/patches/patch-libgammu_gsmstate.c @@ -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; |