From: Alin Năstac Date: Sat, 3 Feb 2007 06:49:06 +0000 (+0000) Subject: Add optional sender number, thanks to Andreas Bollhalder (#164954). Package-Manager: portage-2.1.1-r2 --- 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 + +files/smsclient-2.0.9a-sender.patch, +smsclient-2.0.9a-r1.ebuild: + Add optional sender number, thanks to Andreas Bollhalder (#164954). 24 Sep 2006; Alin Nastac files/smsclient-2.0.9a-gentoo.patch: diff --git a/app-mobilephone/smsclient/Manifest b/app-mobilephone/smsclient/Manifest index 2e40cd9068fb..9e615fba43f1 100644 --- a/app-mobilephone/smsclient/Manifest +++ b/app-mobilephone/smsclient/Manifest @@ -5,15 +5,23 @@ AUX smsclient-2.0.9a-gentoo.patch 6145 RMD160 6d27309fd583c3878d408defbdaf04b706 MD5 f05c9a21cd8a801cb84d047d18fe6a9e files/smsclient-2.0.9a-gentoo.patch 6145 RMD160 6d27309fd583c3878d408defbdaf04b7061ce01d files/smsclient-2.0.9a-gentoo.patch 6145 SHA256 873c3d236860e800d74b45fb267268b79393a7479668eefcec03afecee481a56 files/smsclient-2.0.9a-gentoo.patch 6145 +AUX smsclient-2.0.9a-sender.patch 6223 RMD160 a25369e3b7b33c80719d9dd337c4e09190eed89e SHA1 d6ec1bf6979c899bc8fb947795b7f0e430b0f836 SHA256 bd46ee446ce6055b340a405a8f64d38a35944c3136d0da14cb1b4a194cb02a42 +MD5 a0cf6ac547888afd43346f1912ae28cc files/smsclient-2.0.9a-sender.patch 6223 +RMD160 a25369e3b7b33c80719d9dd337c4e09190eed89e files/smsclient-2.0.9a-sender.patch 6223 +SHA256 bd46ee446ce6055b340a405a8f64d38a35944c3136d0da14cb1b4a194cb02a42 files/smsclient-2.0.9a-sender.patch 6223 DIST smsclient-2.0.9a.tar.gz 151600 RMD160 7b18ae2cf9ba7c8f512825df9ac23988ebadf8ca SHA1 9d99f85534cafa98d0e12f537521f050ec0c9c6e SHA256 8d209716a99d670714aabe92f36f587f230efe25c746e00bcc823b1e78bf926c +EBUILD smsclient-2.0.9a-r1.ebuild 1266 RMD160 56900c0f7d67fba808b2f55d3854fcec08a35032 SHA1 42ae4bfaf24603e722db177ebbe3a81aa01f856c SHA256 a97360f1aedb62eb83b0501827e6895a2664a3dcc4548ed22f4bc2342ca71d09 +MD5 782c08ed7091c2f410021a9cc8af7224 smsclient-2.0.9a-r1.ebuild 1266 +RMD160 56900c0f7d67fba808b2f55d3854fcec08a35032 smsclient-2.0.9a-r1.ebuild 1266 +SHA256 a97360f1aedb62eb83b0501827e6895a2664a3dcc4548ed22f4bc2342ca71d09 smsclient-2.0.9a-r1.ebuild 1266 EBUILD smsclient-2.0.9a.ebuild 1223 RMD160 0285a2acfe864f4f400e19c810ca4c17eedcae55 SHA1 71dee1ffde5e4243cf1c2ede316706b45f7cb96e SHA256 6efade9c6c93c1da6f488fa68fc9518f89134be9ec1d0ae07d2991229887568b MD5 04c377833471909a2288cae6fb880707 smsclient-2.0.9a.ebuild 1223 RMD160 0285a2acfe864f4f400e19c810ca4c17eedcae55 smsclient-2.0.9a.ebuild 1223 SHA256 6efade9c6c93c1da6f488fa68fc9518f89134be9ec1d0ae07d2991229887568b smsclient-2.0.9a.ebuild 1223 -MISC ChangeLog 1243 RMD160 663a82a05b7e3235b4af5f748c3013ebb173274c SHA1 2c43f98021861ab9fd1050e1a45f8e8eeedc7b53 SHA256 23f3be05ce6227e671a29c12baeec343e7fe01d56464b22dff98b3a27274381a -MD5 94a42b703cc1a2533f1972b9f6041c96 ChangeLog 1243 -RMD160 663a82a05b7e3235b4af5f748c3013ebb173274c ChangeLog 1243 -SHA256 23f3be05ce6227e671a29c12baeec343e7fe01d56464b22dff98b3a27274381a ChangeLog 1243 +MISC ChangeLog 1494 RMD160 859562e2539ec95822fd645230c8c7168368798f SHA1 a551d613b5fe7f4ac1398cbd7390c66decdbbb66 SHA256 b7e558e592c58f7c4664243062bb59c32c334cdb8366925bce0fc6f9809493f8 +MD5 28bd3cc11d8c12ddbd80b464b14bf3d1 ChangeLog 1494 +RMD160 859562e2539ec95822fd645230c8c7168368798f ChangeLog 1494 +SHA256 b7e558e592c58f7c4664243062bb59c32c334cdb8366925bce0fc6f9809493f8 ChangeLog 1494 MISC metadata.xml 317 RMD160 c25016e2bf6e998f84ebb079c340f96cb23869b7 SHA1 b56bdfac46837f0cdeb1115d4d43d60b599626fd SHA256 84372d7a431881e80c77e3d1f40b914b397debae2ed37f8fc8ce8ba89a14c52f MD5 58dc7e77c89c2dd53361a6a1d59b9f43 metadata.xml 317 RMD160 c25016e2bf6e998f84ebb079c340f96cb23869b7 metadata.xml 317 @@ -21,10 +29,13 @@ SHA256 84372d7a431881e80c77e3d1f40b914b397debae2ed37f8fc8ce8ba89a14c52f metadata MD5 1517563584ec557de23a57207f85a50c files/digest-smsclient-2.0.9a 250 RMD160 326089a40c3dbaa8eff47c52310cb16d09671edc files/digest-smsclient-2.0.9a 250 SHA256 9a89fdd8e2505c9be8abe2f5ff2e089a822fe881ee1be3f507457b37e1b921b5 files/digest-smsclient-2.0.9a 250 +MD5 1517563584ec557de23a57207f85a50c files/digest-smsclient-2.0.9a-r1 250 +RMD160 326089a40c3dbaa8eff47c52310cb16d09671edc files/digest-smsclient-2.0.9a-r1 250 +SHA256 9a89fdd8e2505c9be8abe2f5ff2e089a822fe881ee1be3f507457b37e1b921b5 files/digest-smsclient-2.0.9a-r1 250 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.5 (GNU/Linux) +Version: GnuPG v2.0.1 (GNU/Linux) -iD8DBQFFFlkI3sf9c6kjmR8RAqk/AJ4mnbUTr046yHshHfOMQI5F+iwuXQCfQHvK -kv9azOkklnT7V5F4/9VMAXU= -=Rs8e +iD8DBQFFxDBvJnxX6mF440QRAvg4AKDYzC/xjdLYLK9XViyXKHgdbggPeACbBjwU +utwuEI8GJSnrX6l3YPymqCc= +=SSu2 -----END PGP SIGNATURE----- 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 ++ ++ * Added SMS_sender_number to UCP driver ++ + 2002-03-26 14:00 Koenraad Heijlen + + 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." +}