diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-02-03 06:49:06 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-02-03 06:49:06 +0000 |
commit | caf67fdc71e1435638f6afe5cd8a1dbc0813f8e0 (patch) | |
tree | 8ccf3752d5ca6699abc10b20a785a60020b8d2d2 /app-mobilephone/smsclient | |
parent | Updating for re-rolled tarball of imagepak-werschler.tar.gz (diff) | |
download | gentoo-2-caf67fdc71e1435638f6afe5cd8a1dbc0813f8e0.tar.gz gentoo-2-caf67fdc71e1435638f6afe5cd8a1dbc0813f8e0.tar.bz2 gentoo-2-caf67fdc71e1435638f6afe5cd8a1dbc0813f8e0.zip |
Add optional sender number, thanks to Andreas Bollhalder <bolle at geodb dot org> (#164954).
(Portage version: 2.1.1-r2)
Diffstat (limited to 'app-mobilephone/smsclient')
4 files changed, 199 insertions, 2 deletions
diff --git a/app-mobilephone/smsclient/ChangeLog b/app-mobilephone/smsclient/ChangeLog index 814e5db246ce..49279cabc3a2 100644 --- a/app-mobilephone/smsclient/ChangeLog +++ b/app-mobilephone/smsclient/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-mobilephone/smsclient -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smsclient/ChangeLog,v 1.4 2006/09/24 10:08:02 mrness Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smsclient/ChangeLog,v 1.5 2007/02/03 06:49:06 mrness Exp $ + +*smsclient-2.0.9a-r1 (03 Feb 2007) + + 03 Feb 2007; Alin Năstac <mrness@gentoo.org> + +files/smsclient-2.0.9a-sender.patch, +smsclient-2.0.9a-r1.ebuild: + Add optional sender number, thanks to Andreas Bollhalder <bolle at geodb dot + org> (#164954). 24 Sep 2006; Alin Nastac <mrness@gentoo.org> files/smsclient-2.0.9a-gentoo.patch: diff --git a/app-mobilephone/smsclient/files/digest-smsclient-2.0.9a-r1 b/app-mobilephone/smsclient/files/digest-smsclient-2.0.9a-r1 new file mode 100644 index 000000000000..05ad484e1c9f --- /dev/null +++ b/app-mobilephone/smsclient/files/digest-smsclient-2.0.9a-r1 @@ -0,0 +1,3 @@ +MD5 516a12ca2f322fa09f47ef48d0adec68 smsclient-2.0.9a.tar.gz 151600 +RMD160 7b18ae2cf9ba7c8f512825df9ac23988ebadf8ca smsclient-2.0.9a.tar.gz 151600 +SHA256 8d209716a99d670714aabe92f36f587f230efe25c746e00bcc823b1e78bf926c smsclient-2.0.9a.tar.gz 151600 diff --git a/app-mobilephone/smsclient/files/smsclient-2.0.9a-sender.patch b/app-mobilephone/smsclient/files/smsclient-2.0.9a-sender.patch new file mode 100644 index 000000000000..f7339d71cbc5 --- /dev/null +++ b/app-mobilephone/smsclient/files/smsclient-2.0.9a-sender.patch @@ -0,0 +1,139 @@ +diff -Nru smsclient-2.0.9a.orig/Changelog smsclient-2.0.9a/Changelog +--- smsclient-2.0.9a.orig/Changelog 2007-02-03 08:43:40.000000000 +0200 ++++ smsclient-2.0.9a/Changelog 2007-02-03 08:43:12.000000000 +0200 +@@ -1,3 +1,7 @@ ++2007-02-02 12:00 Andreas Bollhalder <bolle@geodb.org> ++ ++ * Added SMS_sender_number to UCP driver ++ + 2002-03-26 14:00 Koenraad Heijlen <vipie@ulyssis.org> + + RELEASED as 2.0.9a +diff -Nru smsclient-2.0.9a.orig/sms/services/d2 smsclient-2.0.9a/sms/services/d2 +--- smsclient-2.0.9a.orig/sms/services/d2 2002-03-07 00:04:51.000000000 +0200 ++++ smsclient-2.0.9a/sms/services/d2 2007-02-03 08:44:55.000000000 +0200 +@@ -14,6 +14,12 @@ + SMS_centre_number = "01722278020" # D2 SMSC Number + + # +49 must be added for dialing from outside germany ++ ++ # ------------------------------------------------------------ ++ # Your sender number. ++ # ------------------------------------------------------------ ++ ++ # SMS_sender_number = "1234567890" + } + + # -------------------------------------------------------------------- +diff -Nru smsclient-2.0.9a.orig/sms/services/kpntext smsclient-2.0.9a/sms/services/kpntext +--- smsclient-2.0.9a.orig/sms/services/kpntext 2007-02-03 08:43:40.000000000 +0200 ++++ smsclient-2.0.9a/sms/services/kpntext 2007-02-03 08:43:12.000000000 +0200 +@@ -16,6 +16,12 @@ + + SMS_centre_number = "0665181802" # PTT/KPN Telcom service + # centre number ++ ++ # ------------------------------------------------------------ ++ # Your sender number. ++ # ------------------------------------------------------------ ++ ++ # SMS_sender_number = "1234567890" + } + + # -------------------------------------------------------------------- +diff -Nru smsclient-2.0.9a.orig/sms/services/kpnucp smsclient-2.0.9a/sms/services/kpnucp +--- smsclient-2.0.9a.orig/sms/services/kpnucp 2007-02-03 08:43:40.000000000 +0200 ++++ smsclient-2.0.9a/sms/services/kpnucp 2007-02-03 08:43:12.000000000 +0200 +@@ -16,6 +16,12 @@ + + SMS_centre_number = "0653141414" # PTT/KPN Telcom service + # centre number ++ ++ # ------------------------------------------------------------ ++ # Your sender number. ++ # ------------------------------------------------------------ ++ ++ # SMS_sender_number = "1234567890" + } + + # -------------------------------------------------------------------- +diff -Nru smsclient-2.0.9a.orig/sms/services/swisscom smsclient-2.0.9a/sms/services/swisscom +--- smsclient-2.0.9a.orig/sms/services/swisscom 2007-02-03 08:43:40.000000000 +0200 ++++ smsclient-2.0.9a/sms/services/swisscom 2007-02-03 08:43:12.000000000 +0200 +@@ -13,6 +13,12 @@ + + SMS_centre_number = "0794998990" # SWISSCOM SMSC Number (Analog V.34) + # SMS_centre_number = "0900900941" # SWISSCOM SMSC Number (ISDN V.120) ++ ++ # ------------------------------------------------------------ ++ # Your sender number. ++ # ------------------------------------------------------------ ++ ++ # SMS_sender_number = "1234567890" + } + + # -------------------------------------------------------------------- +diff -Nru smsclient-2.0.9a.orig/sms/services/telenor smsclient-2.0.9a/sms/services/telenor +--- smsclient-2.0.9a.orig/sms/services/telenor 2007-02-03 08:43:40.000000000 +0200 ++++ smsclient-2.0.9a/sms/services/telenor 2007-02-03 08:43:12.000000000 +0200 +@@ -13,6 +13,12 @@ + + SMS_centre_number = "90002198" # TELENOR SMSC Number + # From Inside Norway ++ ++ # ------------------------------------------------------------ ++ # Your sender number. ++ # ------------------------------------------------------------ ++ ++ # SMS_sender_number = "1234567890" + } + + # -------------------------------------------------------------------- +diff -Nru smsclient-2.0.9a.orig/sms/services/telia smsclient-2.0.9a/sms/services/telia +--- smsclient-2.0.9a.orig/sms/services/telia 2007-02-03 08:43:40.000000000 +0200 ++++ smsclient-2.0.9a/sms/services/telia 2007-02-03 08:43:12.000000000 +0200 +@@ -16,6 +16,12 @@ + # ------------------------------------------------------------ + # +46 must be added for dialing from outside Sweden + # ------------------------------------------------------------ ++ ++ # ------------------------------------------------------------ ++ # Your sender number. ++ # ------------------------------------------------------------ ++ ++ # SMS_sender_number = "1234567890" + } + + # -------------------------------------------------------------------- +diff -Nru smsclient-2.0.9a.orig/src/driver/ucp.c smsclient-2.0.9a/src/driver/ucp.c +--- smsclient-2.0.9a.orig/src/driver/ucp.c 2007-02-03 08:43:40.000000000 +0200 ++++ smsclient-2.0.9a/src/driver/ucp.c 2007-02-03 08:43:12.000000000 +0200 +@@ -184,6 +184,8 @@ + /* Place any extended driver */ + /* variables here */ + ++ char *szSenderNumber; ++ + } driver_env; + + /* -------------------------------------------------------------------- */ +@@ -197,6 +199,7 @@ + { RESOURCE_NUMERIC, "SMS_timeout", 0, 0, NULL, 0, NULL, 10, &(driver_env.def.timeout) }, + { RESOURCE_NUMERIC, "SMS_write_timeout", 0, 0, NULL, 0, NULL, 10, &(driver_env.def.write_timeout) }, + { RESOURCE_NUMERIC, "SMS_max_deliver", 0, 0, NULL, 0, NULL, 1, &(driver_env.def.max_deliver) }, ++ { RESOURCE_STRING, "SMS_sender_number", 0, 1, NULL, 0, "", 0, &(driver_env.szSenderNumber) }, + { RESOURCE_NULL, NULL, 0, 1, NULL, 0, NULL, 0, NULL } + }; + +@@ -248,9 +251,9 @@ + + + /* data: AdC/OAdc/OAC/MT/.. */ +- /* -> recipient///3/... */ ++ /* -> recipient/sender//3/... */ + +- nc = sprintf(msgData, "%s///%1.1d/", msisdn, msgType); ++ nc = sprintf(msgData, "%s/%s//%1.1d/", msisdn, driver_env.szSenderNumber, msgType); + + /* ... additional parameters depending on MT */ + /* For MT=3 (alphanumeric) this is hex coded */ diff --git a/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild b/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild new file mode 100644 index 000000000000..dd4f32f9813a --- /dev/null +++ b/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild,v 1.1 2007/02/03 06:49:06 mrness Exp $ + +inherit eutils + +DESCRIPTION="Utility to send SMS messages to mobile phones and pagers." +HOMEPAGE="http://www.smsclient.org" +SRC_URI="http://www.smsclient.org/download/${PN}-${PV%?}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${P}-gentoo.patch" + epatch "${FILESDIR}/${P}-sender.patch" +} + +src_compile() { + rm .configured && ./configure || die "Configure failed" + make || die "Make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "Install failed" + dosym sms_client /usr/bin/smsclient + dosym sms_address /usr/bin/smsaddress + + diropts -g dialout -m 0770 + keepdir /var/lock/sms + diropts + + doman docs/sms_client.1 + dodoc Authors Changelog* FAQ README* TODO docs/sms_protocol +} + +pkg_postinst() { + local MY_LOGFILE="${ROOT}/var/log/smsclient.log" + [ -f "${MY_LOGFILE}" ] || touch "${MY_LOGFILE}" + chgrp dialout "${MY_LOGFILE}" + chmod g+rwx,o-rwx "${MY_LOGFILE}" + + einfo "If you run sms_client as normal user, make sure you are member of dialout group." +} |