diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-04-05 01:58:06 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-04-05 01:58:06 +0200 |
commit | aee503d0c12be8af2c38d6f3eecb37c7f3c53c84 (patch) | |
tree | 857a05a395f34de5a17bf24dabeb7e94482ac286 /app-mobilephone | |
parent | net-misc/capi4hylafax: last-rite (diff) | |
download | gentoo-aee503d0c12be8af2c38d6f3eecb37c7f3c53c84.tar.gz gentoo-aee503d0c12be8af2c38d6f3eecb37c7f3c53c84.tar.bz2 gentoo-aee503d0c12be8af2c38d6f3eecb37c7f3c53c84.zip |
app-mobilephone/smsclient: last-rite
Closes: https://bugs.gentoo.org/734188
Closes: https://bugs.gentoo.org/722410
Closes: https://bugs.gentoo.org/681546
Closes: https://bugs.gentoo.org/605488
Closes: https://bugs.gentoo.org/529886
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-mobilephone')
-rw-r--r-- | app-mobilephone/smsclient/Manifest | 1 | ||||
-rw-r--r-- | app-mobilephone/smsclient/files/smsclient-2.0.9a-gentoo.patch | 122 | ||||
-rw-r--r-- | app-mobilephone/smsclient/files/smsclient-2.0.9a-sender.patch | 139 | ||||
-rw-r--r-- | app-mobilephone/smsclient/metadata.xml | 6 | ||||
-rw-r--r-- | app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild | 63 |
5 files changed, 0 insertions, 331 deletions
diff --git a/app-mobilephone/smsclient/Manifest b/app-mobilephone/smsclient/Manifest deleted file mode 100644 index 29ed319ce472..000000000000 --- a/app-mobilephone/smsclient/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST smsclient-2.0.9a.tar.gz 151600 BLAKE2B be51d81770d89626d0bb86a013c970add6f2fb60bf5dba4faff898ea7b542a9649274d3ea5a3b76e43ff34494b5e073a78030134af33b9b9cb5f787db0d0ce7c SHA512 85ab34b34cb1b3e1cfeeefed6618ca5cf7c66f26a1f5fe211b079a65694259fc2272abc6fe2e74d008e680d67f057288a704a87558e65e015554517fb99ba89d diff --git a/app-mobilephone/smsclient/files/smsclient-2.0.9a-gentoo.patch b/app-mobilephone/smsclient/files/smsclient-2.0.9a-gentoo.patch deleted file mode 100644 index b38b1309c339..000000000000 --- a/app-mobilephone/smsclient/files/smsclient-2.0.9a-gentoo.patch +++ /dev/null @@ -1,122 +0,0 @@ -diff -Nur smsclient-2.0.9a.orig/config/Makefile.config.linux smsclient-2.0.9a/config/Makefile.config.linux ---- smsclient-2.0.9a.orig/config/Makefile.config.linux 2006-02-25 12:52:12.203797250 +0200 -+++ smsclient-2.0.9a/config/Makefile.config.linux 2006-02-25 12:52:38.837461750 +0200 -@@ -39,7 +39,7 @@ - PLATFORM = -DLINUX - CC = gcc - MAKE = make --CFLAGS = -O2 -g -I. -Wall -pedantic -fsigned-char $(PLATFORM) -+CFLAGS += -I. -Wall -pedantic -fsigned-char $(PLATFORM) - XTRALIBS = - - # -------------------------------------------------------------------- -@@ -59,7 +59,7 @@ - MLOCALSMSRC = .sms_addressbook - MGLOBALSMSRC = $(ETCPREFIX)/etc/smsclient/sms_addressbook - MSERVICEDIR = $(ETCPREFIX)/etc/smsclient --MLIBDIR = $(PREFIX)/usr/lib/smsclient -+MLIBDIR = $(PREFIX)/usr/share/smsclient - MLOGFILE = $(LOGDIR)/smsclient.log - MSNPPDLOGFILE = $(LOGDIR)/smsclient.snppdlog - MSMSDLOGFILE = $(LOGDIR)/smsclient.smsdlog -@@ -80,10 +80,10 @@ - - # -------------------------------------------------------------------- - --BINDIR = $(DESTDIR)/usr/bin --ETCDIR = $(DESTDIR)/etc --LIBDIR = $(DESTDIR)/usr/lib --MANDIR = $(DESTDIR)/usr/share/man -+BINDIR = /usr/bin -+ETCDIR = /etc -+LIBDIR = /usr/lib -+MANDIR = /usr/share/man - MANEXT = 1 - INSTALL = /usr/bin/install - RM = /bin/rm -f -diff -Nur smsclient-2.0.9a.orig/sms/Makefile smsclient-2.0.9a/sms/Makefile ---- smsclient-2.0.9a.orig/sms/Makefile 2006-02-25 12:52:12.203797250 +0200 -+++ smsclient-2.0.9a/sms/Makefile 2006-02-25 12:49:49.166858000 +0200 -@@ -34,28 +34,26 @@ - all: - - install: -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(MLIBDIR)/services -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/errors -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/locks -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/incoming -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/named_pipes -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/services -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(MSERVICEDIR)/scripts -+ $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -m 755 -d $(DESTDIR)$(MLIBDIR)/services -+# $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient -+# $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/errors -+# $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/locks -+# $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/incoming -+# $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/named_pipes -+# $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/services -+ $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -m 755 -d $(DESTDIR)$(MSERVICEDIR)/scripts - - ( cd services ;\ - for service in * ; do \ - $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 $$service $(DESTDIR)$(MLIBDIR)/services; \ -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/services/$$service ; \ -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)$(SPOOLDIR)/smsclient/errors/$$service ; \ - done ) - -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 scripts/email $(DESTDIR)$(MSERVICEDIR)/scripts -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_config $(DESTDIR)$(MSERVICEDIR) -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_addressbook $(DESTDIR)$(MSERVICEDIR) -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_modem $(DESTDIR)$(MSERVICEDIR) -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_services $(DESTDIR)$(MSERVICEDIR) -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_daemons $(DESTDIR)$(MSERVICEDIR) -+ $(INSTALL) -m 644 scripts/email $(DESTDIR)$(MSERVICEDIR)/scripts -+ $(INSTALL) -m 644 sms_config $(DESTDIR)$(MSERVICEDIR) -+ $(INSTALL) -m 644 sms_addressbook $(DESTDIR)$(MSERVICEDIR) -+ $(INSTALL) -m 644 sms_modem $(DESTDIR)$(MSERVICEDIR) -+ $(INSTALL) -m 644 sms_services $(DESTDIR)$(MSERVICEDIR) -+ $(INSTALL) -m 644 sms_daemons $(DESTDIR)$(MSERVICEDIR) - - uninstall: - $(RM) $(DESTDIR)$(MLIBDIR)/services/* -diff -Nur smsclient-2.0.9a.orig/sms/sms_config smsclient-2.0.9a/sms/sms_config ---- smsclient-2.0.9a.orig/sms/sms_config 2006-02-25 12:52:12.203797250 +0200 -+++ smsclient-2.0.9a/sms/sms_config 2006-02-25 12:49:49.166858000 +0200 -@@ -9,7 +9,7 @@ - - SMS_lock_action = "BLOCK" - SMS_lock_retry_delay = 5000000 -- SMS_lockfile = "/var/lock/smslock" -+ SMS_lockfile = "/var/lock/sms/client.lock" - - # SMS_lockfile = "/var/opt/sms/smslock" # UNIXWARE - } -diff -Nur smsclient-2.0.9a.orig/src/client/Makefile smsclient-2.0.9a/src/client/Makefile ---- smsclient-2.0.9a.orig/src/client/Makefile 2006-02-25 12:52:12.203797250 +0200 -+++ smsclient-2.0.9a/src/client/Makefile 2006-02-25 12:49:49.166858000 +0200 -@@ -35,9 +35,9 @@ - all: ../../bin/sms_client ../../bin/sms_address - - install: ../../bin/sms_client ../../bin/sms_address -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(BINDIR) -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -s ../../bin/sms_client $(BINDIR) -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -s ../../bin/sms_address $(BINDIR) -+ $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(DESTDIR)/$(BINDIR) -+ $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 ../../bin/sms_client $(DESTDIR)/$(BINDIR) -+ $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 ../../bin/sms_address $(DESTDIR)/$(BINDIR) - - uninstall: - $(RM) $(BINDIR)/sms_client -diff -Nur smsclient-2.0.9a.orig/src/logfile/Makefile smsclient-2.0.9a/src/logfile/Makefile ---- smsclient-2.0.9a.orig/src/logfile/Makefile 2006-02-25 12:52:12.203797250 +0200 -+++ smsclient-2.0.9a/src/logfile/Makefile 2006-02-25 12:49:49.166858000 +0200 -@@ -34,7 +34,7 @@ - all: logfile.o - - install: -- $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(LOGDIR) -+# $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(LOGDIR) - - clean: - $(RM) *.o diff --git a/app-mobilephone/smsclient/files/smsclient-2.0.9a-sender.patch b/app-mobilephone/smsclient/files/smsclient-2.0.9a-sender.patch deleted file mode 100644 index f7339d71cbc5..000000000000 --- a/app-mobilephone/smsclient/files/smsclient-2.0.9a-sender.patch +++ /dev/null @@ -1,139 +0,0 @@ -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/metadata.xml b/app-mobilephone/smsclient/metadata.xml deleted file mode 100644 index 4ac469947f7d..000000000000 --- a/app-mobilephone/smsclient/metadata.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <longdescription>SMS Client is a UNIX command line based utility which allows you to send SMS messages to mobile phones and pagers.</longdescription> -</pkgmetadata> diff --git a/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild b/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild deleted file mode 100644 index c7dd3ea6f2b6..000000000000 --- a/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils toolchain-funcs user - -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="~amd64 ~x86" -IUSE="" - -pkg_setup() { - enewgroup dialout -} - -src_prepare() { - epatch "${FILESDIR}/${P}-gentoo.patch" - epatch "${FILESDIR}/${P}-sender.patch" - sed -i -e \ - "s:\$(CFLAGS) -o:\$(CFLAGS) \$(LDFLAGS) -o:g" \ - src/client/Makefile -} - -src_configure() { - rm .configured && ./configure -} - -src_compile() { - emake \ - CC="$(tc-getCC)" \ - AR="$(tc-getAR) rc" \ - RANLIB="$(tc-getRANLIB)" \ - LDFLAGS="${LDFLAGS}" -} - -src_install() { - emake DESTDIR="${D}" install - 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_config() { - local MY_LOGFILE="${ROOT}/var/log/smsclient.log" - [ -f "${MY_LOGFILE}" ] || touch "${MY_LOGFILE}" - fowners :dialout "${MY_LOGFILE}" - fperms g+rwx,o-rwx "${MY_LOGFILE}" -} - -pkg_postinst() { - einfo "If you run sms_client as normal user, make sure you are member of dialout group." -} |