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 |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-mobilephone/smsclient')
-rw-r--r-- | app-mobilephone/smsclient/Manifest | 7 | ||||
-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, 337 insertions, 0 deletions
diff --git a/app-mobilephone/smsclient/Manifest b/app-mobilephone/smsclient/Manifest new file mode 100644 index 000000000000..a503a998976e --- /dev/null +++ b/app-mobilephone/smsclient/Manifest @@ -0,0 +1,7 @@ +AUX smsclient-2.0.9a-gentoo.patch 6145 SHA256 873c3d236860e800d74b45fb267268b79393a7479668eefcec03afecee481a56 SHA512 6a1e0f82d430e12050c1b5525d84d3b916790c6b413b15c1cffe61cab815f7c08576edfa06ee66717a475f6c843040bdfc0d12767a22b90c79a800db47417406 WHIRLPOOL a71976293055f1f8085781a084ddd51c58751e18b681821d2f7b133ad5d1007fe53b27b42d3ccca2f658c12081374817f5ad226f276710e38a57aa3a73d6d002 +AUX smsclient-2.0.9a-sender.patch 6223 SHA256 bd46ee446ce6055b340a405a8f64d38a35944c3136d0da14cb1b4a194cb02a42 SHA512 13f588aaae9379c44285a7a6a72de196dddd7d31be2fc98b09a0d721492f6ff2a81d4314fee544932876b1996724274a22de78b800f90050c7be4b3bba41a3d6 WHIRLPOOL 4976cc6416983e55e3cc863d71474b971c5e5941ce1ef703e14b5176ade4d8ad3f5ce40b96bc7e1c214e92076d441dae836c9dea6c24fe9c5a07503638da829f +DIST smsclient-2.0.9a.tar.gz 151600 SHA256 8d209716a99d670714aabe92f36f587f230efe25c746e00bcc823b1e78bf926c SHA512 85ab34b34cb1b3e1cfeeefed6618ca5cf7c66f26a1f5fe211b079a65694259fc2272abc6fe2e74d008e680d67f057288a704a87558e65e015554517fb99ba89d WHIRLPOOL 1cbfd9d03b9092961bcad639c1e2fdbb86d2eb561fdf7ab56fe379578b817fb0bcafbd755773937d37bed78642dff12194b2b2a54ed8bd9f43cd7e031299549e +EBUILD smsclient-2.0.9a-r1.ebuild 1340 SHA256 9fc31eb5a8e4f86b5a171d2c9d942ae000825e24385d896c9b2030a46558d706 SHA512 38b810b4650bff84218d0bc219ea1934c7c4a02160b6fe2d228a19a3c3c27c61b35b0eee1f44420cc1197d97f82ea7b97c841c847d64041ffd2306c780cd9c95 WHIRLPOOL d9acc84746d56293f1a09cdacf6920b406066ba905f2765c46b917662079f99372a27563228a0bf76b1d8e490b10d79c68c25d25cba37a77b37fcc06382e0890 +MISC ChangeLog 2621 SHA256 662ddfd641388664f75e5dd7543955ce0cd04220ce1a77d99cb04cb64f31dd97 SHA512 d01e30a045dbf5881303e9ae72dfb4afa17b643eb3eae0fef7f9c79d36963592b4b7c8e5d15e22afdfb178b18abd0122c6720923783605960153961d98a88594 WHIRLPOOL 7a396f6bd175744abaf6ceff10ac18b7592b3107c62b2abd8f1e8955c959fbc03b1f765a4579b1d2634bc74d64465639b06596ba674e7d65fb9e34f5dea58c66 +MISC ChangeLog-2015 2244 SHA256 fef1c4d77cc39388cb013c860d636f285d748e25b5c4774f42e7e024d75f419a SHA512 9fc1bdb0a18d92ada8be1389a95adcf68557e6825759e55305eede6eabc0f03f8f8c63b16d137cec062a8d2256aa8f8bce33c2f91fc7c1277197a32fcd8e2369 WHIRLPOOL 91cdd3efed6f8e29db0ff74b3b9d61dbbaa21ef445dfc46b0cc57da77d939680c941f2208085a43ac32ddd3559852818ce412d6b7456c702d3c2c7b195c98c42 +MISC metadata.xml 318 SHA256 865f5541edee0fff7c83f029f5ca9a81051d6f21d5e1de390947ecb1e511bf8b SHA512 bad4778937d1a9e0b1b6e4d2dc75f34a15c91ab6a5a865fa823335349127e81a93f874e55f5961bc0e77ac4744105293326128aaafe0360ed11279f5ed856348 WHIRLPOOL a49fd55a4ec80d86766da3f59eb48e3830b9b915d6808da9ddfe9e107452d50d65e3812674849b7735060e011adb7db997331db6134f06dd79c8463e12d33929 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 */ diff --git a/app-mobilephone/smsclient/metadata.xml b/app-mobilephone/smsclient/metadata.xml new file mode 100644 index 000000000000..4ac469947f7d --- /dev/null +++ b/app-mobilephone/smsclient/metadata.xml @@ -0,0 +1,6 @@ +<?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 new file mode 100644 index 000000000000..0bfc36b2e36b --- /dev/null +++ b/app-mobilephone/smsclient/smsclient-2.0.9a-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils 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." +} |