diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-mobilephone/smsclient/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-mobilephone/smsclient/files')
-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 |
2 files changed, 261 insertions, 0 deletions
diff --git a/app-mobilephone/smsclient/files/smsclient-2.0.9a-gentoo.patch b/app-mobilephone/smsclient/files/smsclient-2.0.9a-gentoo.patch new file mode 100644 index 000000000000..b38b1309c339 --- /dev/null +++ b/app-mobilephone/smsclient/files/smsclient-2.0.9a-gentoo.patch @@ -0,0 +1,122 @@ +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 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 */ |