summaryrefslogtreecommitdiff
path: root/app-mobilephone/smstools
diff options
context:
space:
mode:
Diffstat (limited to 'app-mobilephone/smstools')
-rw-r--r--app-mobilephone/smstools/Manifest11
-rw-r--r--app-mobilephone/smstools/files/3.1.15-makefile-whitespace.patch11
-rw-r--r--app-mobilephone/smstools/files/3.1.21-gawk-location.patch9
-rw-r--r--app-mobilephone/smstools/files/smsd.initd330
-rw-r--r--app-mobilephone/smstools/files/smsd.initd423
-rw-r--r--app-mobilephone/smstools/files/smsd.service11
-rw-r--r--app-mobilephone/smstools/files/smsd.tmpfiles1
-rw-r--r--app-mobilephone/smstools/metadata.xml11
-rw-r--r--app-mobilephone/smstools/smstools-3.1.15-r2.ebuild73
-rw-r--r--app-mobilephone/smstools/smstools-3.1.21-r1.ebuild74
10 files changed, 254 insertions, 0 deletions
diff --git a/app-mobilephone/smstools/Manifest b/app-mobilephone/smstools/Manifest
new file mode 100644
index 000000000000..11536f793ff0
--- /dev/null
+++ b/app-mobilephone/smstools/Manifest
@@ -0,0 +1,11 @@
+AUX 3.1.15-makefile-whitespace.patch 332 BLAKE2B b054af95777e475c16cad361f16860d0193a7b3a444f598308c65e21d33a6de9f81418ea2de4de6ec35c51e6b0152a17a427961226f6d350178f89a70d683be7 SHA512 d8a018b0af45a067fe49a2afe00fa9906d9e9424eec20d75701b903618b6c02929ca4dda17064bf157bd319fc3d2be8803ff71f6a2b6ab8aa2663e528b0f9378
+AUX 3.1.21-gawk-location.patch 395 BLAKE2B c112570a1eb50fab5f28b0e534b7ed2f5039faea9f13b3340ac117cddfc3071185e4bd8636b3649d50959917d8dd2b124c1d43cf92537ed25d7fac40bca5fdb6 SHA512 ec7ebfe9198743c34297b88d082811a597732d3a74b0609a558dac7c4d00d8de02154052e30ffd266600ddc20b6f056e768aa7de4f670ccd0ebc87c061ece321
+AUX smsd.initd3 656 BLAKE2B 51723d4bffe650d5756677a328797d9d634687a0e009553d2a7c2af7eb2f84f0fca7459e11d86dd48929566d6914c6ac7a21c252103ec76116962fa696a4e53e SHA512 36ae79a4d8661a66be5e74fdac4a3055f45ee64049167892fbe4301e8dfe01a3c3365eb7939eda5de6b5d512923078019a1a427f98c33e034f76d253df91ef1d
+AUX smsd.initd4 544 BLAKE2B 7e8ea8dfa369d65beda7b6262c8c5bbf75dccc3a9dd1530c986e26212a51ee2fd5396f559414fdf6bf6c2c116ba0d06e2dbf588619962bfd3e5fb126c4d2e280 SHA512 4060e8ca95ccd7b237f2d32be35e30de532dd03a1b2e88e9c516e7f94383a790bdbac9ed20b482103f425f3b84097bc02308588b313a3651c5d251d92d5f61e2
+AUX smsd.service 232 BLAKE2B e02904692d7d397618e03a759a5d515c95b6c3d7e34f6e8a68642518a412c93738bb9ee3afc9604dc93ea96787dfefc9727e84fa848a647e49d4be67c80d5a28 SHA512 60b2d56b4fb5f174c9a9111891633a1eca6e831a0abad7d348c04d63776af832256a1bf0ed300196c429056106226e98178e60215c867e6ec9f998a7029295d1
+AUX smsd.tmpfiles 28 BLAKE2B 1f7dc406901d08d362ad2ca8ad236c8d5c45166c97501d0b314a644f2fb9994e2d3f9071f61dc8d42f1d1b7aa272b1741aa97bcdffce457a385d0c3f6ec4ad1a SHA512 e8169ac96bff820996b13971f47e40550cbfa87a46f74304c4a42afe5a0fb779e65244dda5c7b3fae40d3eb0a669f2b4d5f5bfeeb576e88e04ddda812da9234a
+DIST smstools3-3.1.15.tar.gz 300088 BLAKE2B 4dcafad43979fff642a26da2ce7850ff09d66678525171643f1fec6bb1358cc48705d73de7b22f77b267a741f740a408ddea5062d75d98561e2381010e56a37b SHA512 6a4cc852327fac27b00fc58def4bbc8caa395552586fe1b84f0f4a9f7f6b00008943b85c86de0821036629c58cf04840a189d711b4ac96f7ddaafd6b340b11fa
+DIST smstools3-3.1.21.tar.gz 356548 BLAKE2B 8bbb65761128a86200a6d47e90456fef076be10cd4081b4e3cdc9456c0176996ee6ee9afbe3d9f2a989d93db706bf5461ddf7f739bc8d70337a842b96eb27a5c SHA512 0587e5020a0318351ca99b68baa1c19411824279055857a5b5aa4e346cae373fe94a811eaca6767bcf991cf849eaaa66ec120f046420531a6088cdde9373db31
+EBUILD smstools-3.1.15-r2.ebuild 1708 BLAKE2B 4d8b9d6889808f333cbe2a5e16f967ee7afe7c14e9ba26e5355d4913a0206151e4226ed8eec9c6e4c48341f23704a2a1d8382fa4e7e95972d3bb78ae7f4c4247 SHA512 a9a50637b3c91ec6d2359d2337c568fb64aa742a18ca6301f3bad37463011dce385640ff58fdd71aea2ad976a696e0b133caf5654990b562ceee1080055dea62
+EBUILD smstools-3.1.21-r1.ebuild 1711 BLAKE2B 8a2a5cb8a7758644d51994f02eaf87158a18a8589b6cfda6ad12fca794f5d4b822c2e09e4e4a58c10d4a183a3eb5d123b1bd34f142e08bf28a7fcc60e59aabc6 SHA512 7ac449c3e40a3fde4144f909b9a368dd1d38fd964333d2c7fe16eebab7865864b395bac86d9a34773306f3cce1ae7c5fd452d3ca4f72b36000d6efeab0b5a35b
+MISC metadata.xml 311 BLAKE2B 7f50942d5ff32e7025c5f0289555117e7c3b22d22ba9a2589ceae11c80d98d8ca00658ab0540a79576ba2b9f807c4a59f4539d253645d4c336079f4db4a5c7f0 SHA512 0ff7191917f66832a0c60952bc0e187f5c82656f6e422d81d4bf4d4d38c9edef5519d696976a3668682c40feb932b510fd96591ea698d7f08d9e4d84d12f641d
diff --git a/app-mobilephone/smstools/files/3.1.15-makefile-whitespace.patch b/app-mobilephone/smstools/files/3.1.15-makefile-whitespace.patch
new file mode 100644
index 000000000000..70455bef6c56
--- /dev/null
+++ b/app-mobilephone/smstools/files/3.1.15-makefile-whitespace.patch
@@ -0,0 +1,11 @@
+--- smstools3/src/Makefile.old 2014-04-25 23:28:46.324045112 +1000
++++ smstools3/src/Makefile 2014-04-25 23:33:26.453061496 +1000
+@@ -43,7 +43,7 @@
+
+ ifneq (,$(findstring SOLARIS,$(CFLAGS)))
+ ifeq (,$(findstring DISABLE_INET_SOCKET,$(CFLAGS)))
+-override LFLAGS += -lsocket -lnsl
++ override LFLAGS += -lsocket -lnsl
+ endif
+ endif
+
diff --git a/app-mobilephone/smstools/files/3.1.21-gawk-location.patch b/app-mobilephone/smstools/files/3.1.21-gawk-location.patch
new file mode 100644
index 000000000000..e8070a329b99
--- /dev/null
+++ b/app-mobilephone/smstools/files/3.1.21-gawk-location.patch
@@ -0,0 +1,9 @@
+diff -uNr smstools3.ORIG/scripts/hex2bin smstools3/scripts/hex2bin
+--- smstools3.ORIG/scripts/hex2bin 2017-09-11 14:11:48.040928533 +0100
++++ smstools3/scripts/hex2bin 2017-09-11 14:12:00.925927820 +0100
+@@ -1,4 +1,4 @@
+-#!/bin/gawk -f
++#!/usr/bin/gawk -f
+
+ # This script reads a hex-dump and converts it to a binary file.
+ # The hex-dump must contain one or more hexadecimal numbers separated
diff --git a/app-mobilephone/smstools/files/smsd.initd3 b/app-mobilephone/smstools/files/smsd.initd3
new file mode 100644
index 000000000000..ae53a7fc0e08
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.initd3
@@ -0,0 +1,30 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need localmount
+}
+
+start() {
+ if ! [ -d /var/run/smsd ]; then
+ ebegin "Creating /var/run/smsd for ${SVCNAME}"
+ mkdir /var/run/smsd \
+ && chown smsd:sms /var/run/smsd \
+ && chmod 770 /var/run/smsd
+ eend $?
+ fi
+
+ chown smsd:sms /var/log/smsd.log
+ ebegin "Starting smsd"
+ start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \
+ -c /etc/smsd.conf -p /var/run/smsd/smsd.pid \
+ -i /var/run/smsd/smsd.working
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping smsd"
+ start-stop-daemon --stop -n smsd
+ eend ${?}
+}
diff --git a/app-mobilephone/smstools/files/smsd.initd4 b/app-mobilephone/smstools/files/smsd.initd4
new file mode 100644
index 000000000000..ff40d472896e
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.initd4
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need localmount
+}
+
+start() {
+ checkpath -q -d -m 0770 -o smsd:sms /run/smsd || return 1
+ checkpath -q -f -o smsd:sms /var/log/smsd.log || return 1
+ ebegin "Starting smsd"
+ start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \
+ -c /etc/smsd.conf -p /run/smsd/smsd.pid \
+ -i /run/smsd/smsd.working
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping smsd"
+ start-stop-daemon --stop -n smsd
+ eend ${?}
+}
diff --git a/app-mobilephone/smstools/files/smsd.service b/app-mobilephone/smstools/files/smsd.service
new file mode 100644
index 000000000000..1fb436681b4b
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=SMS Server Tools 3
+
+[Service]
+User=smsd
+PIDFile=/run/smsd/smsd.pid
+ExecStart=/usr/bin/smsd -n MAINPROCESS -l/var/log/smsd.log \
+ -p/run/smsd/smsd.pid -i/run/smsd/smsd.working
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-mobilephone/smstools/files/smsd.tmpfiles b/app-mobilephone/smstools/files/smsd.tmpfiles
new file mode 100644
index 000000000000..8978d18f54ad
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.tmpfiles
@@ -0,0 +1 @@
+d /run/smsd 0755 smsd sms -
diff --git a/app-mobilephone/smstools/metadata.xml b/app-mobilephone/smstools/metadata.xml
new file mode 100644
index 000000000000..4fedfbd15bb2
--- /dev/null
+++ b/app-mobilephone/smstools/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+</maintainer>
+<use>
+ <flag name="stats">Enable statistic reporting</flag>
+</use>
+</pkgmetadata>
diff --git a/app-mobilephone/smstools/smstools-3.1.15-r2.ebuild b/app-mobilephone/smstools/smstools-3.1.15-r2.ebuild
new file mode 100644
index 000000000000..91694836c4f5
--- /dev/null
+++ b/app-mobilephone/smstools/smstools-3.1.15-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit systemd toolchain-funcs user eutils
+
+DESCRIPTION="Send and receive short messages through GSM modems"
+HOMEPAGE="http://smstools3.kekekasvi.com/"
+SRC_URI="http://smstools3.kekekasvi.com/packages/smstools3-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+IUSE="stats"
+
+DEPEND=""
+RDEPEND="sys-process/procps
+ stats? ( >=dev-libs/mm-1.4.0 )"
+
+S="${WORKDIR}/${PN}3"
+
+pkg_setup() {
+ enewgroup sms
+ enewuser smsd -1 -1 /var/spool/sms sms
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-makefile-whitespace.patch"
+ if use stats; then
+ sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" \
+ "${S}/src/Makefile" || die
+ fi
+ echo "CFLAGS += ${CFLAGS}" >> src/Makefile || die
+}
+
+src_compile() {
+ cd src || die
+ emake \
+ CC="$(tc-getCC)" \
+ LFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin src/smsd
+ cd scripts || die
+ dobin sendsms sms2html sms2unicode unicode2sms
+ dobin hex2bin hex2dec email2sms
+ dodoc mysmsd smsevent smsresend sms2xml sql_demo \
+ smstest.php checkhandler-utf-8 eventhandler-utf-8 \
+ forwardsms regular_run
+ cd .. || die
+
+ keepdir /var/spool/sms/incoming
+ keepdir /var/spool/sms/outgoing
+ keepdir /var/spool/sms/checked
+ fowners -R smsd:sms /var/spool/sms
+ fperms g+s /var/spool/sms/incoming
+
+ newinitd "${FILESDIR}"/smsd.initd3 smsd
+ insopts -o smsd -g sms -m0644
+ insinto /etc
+ newins examples/smsd.conf.easy smsd.conf
+ dohtml -r doc
+
+ systemd_dounit "${FILESDIR}"/smsd.service
+ systemd_newtmpfilesd "${FILESDIR}"/smsd.tmpfiles smsd.conf
+}
+
+pkg_postinst() {
+ touch "${ROOT}"/var/log/smsd.log || die
+ chown -f smsd:sms "${ROOT}"/var/log/smsd.log
+}
diff --git a/app-mobilephone/smstools/smstools-3.1.21-r1.ebuild b/app-mobilephone/smstools/smstools-3.1.21-r1.ebuild
new file mode 100644
index 000000000000..96dfea8f1069
--- /dev/null
+++ b/app-mobilephone/smstools/smstools-3.1.21-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit systemd toolchain-funcs user eutils
+
+DESCRIPTION="Send and receive short messages through GSM modems"
+HOMEPAGE="http://smstools3.kekekasvi.com/"
+SRC_URI="http://smstools3.kekekasvi.com/packages/smstools3-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+IUSE="stats"
+
+DEPEND=""
+RDEPEND="sys-process/procps
+ stats? ( >=dev-libs/mm-1.4.0 )"
+
+PATCHES="${FILESDIR}/${PV}-gawk-location.patch"
+S="${WORKDIR}/${PN}3"
+
+pkg_setup() {
+ enewgroup sms
+ enewuser smsd -1 -1 /var/spool/sms sms
+}
+
+src_prepare() {
+ default
+ if use stats; then
+ sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" \
+ "${S}/src/Makefile" || die
+ fi
+ echo "CFLAGS += ${CFLAGS}" >> src/Makefile || die
+}
+
+src_compile() {
+ cd src || die
+ emake \
+ CC="$(tc-getCC)" \
+ LFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin src/smsd
+ cd scripts || die
+ dobin sendsms sms2html sms2unicode unicode2sms
+ dobin hex2bin hex2dec email2sms
+ dodoc mysmsd smsevent smsresend sms2xml sql_demo \
+ smstest.php checkhandler-utf-8 eventhandler-utf-8 \
+ forwardsms regular_run
+ cd .. || die
+
+ keepdir /var/spool/sms/incoming
+ keepdir /var/spool/sms/outgoing
+ keepdir /var/spool/sms/checked
+ fowners -R smsd:sms /var/spool/sms
+ fperms g+s /var/spool/sms/incoming
+
+ newinitd "${FILESDIR}"/smsd.initd4 smsd
+ insopts -o smsd -g sms -m0644
+ insinto /etc
+ newins examples/smsd.conf.easy smsd.conf
+ dohtml -r doc
+
+ systemd_dounit "${FILESDIR}"/smsd.service
+ systemd_newtmpfilesd "${FILESDIR}"/smsd.tmpfiles smsd.conf
+}
+
+pkg_postinst() {
+ touch "${ROOT}"/var/log/smsd.log || die
+ chown -f smsd:sms "${ROOT}"/var/log/smsd.log
+}