summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2011-07-27 10:41:13 +0000
committerTony Vroon <chainsaw@gentoo.org>2011-07-27 10:41:13 +0000
commit1eada94c20e45658ee51152ec102b4a130a38a94 (patch)
treeca88c4ff2627e798f96ff8aec5473e4ab166894b /app-mobilephone
parentversion bump (diff)
downloadhistorical-1eada94c20e45658ee51152ec102b4a130a38a94.tar.gz
historical-1eada94c20e45658ee51152ec102b4a130a38a94.tar.bz2
historical-1eada94c20e45658ee51152ec102b4a130a38a94.zip
The init script was not fully compatible with baselayout2; this new revision should fare much better.
Package-Manager: portage-2.1.10.7/cvs/Linux x86_64
Diffstat (limited to 'app-mobilephone')
-rw-r--r--app-mobilephone/smstools/ChangeLog9
-rw-r--r--app-mobilephone/smstools/Manifest10
-rw-r--r--app-mobilephone/smstools/files/smsd.initd222
-rw-r--r--app-mobilephone/smstools/smstools-3.1.14-r1.ebuild65
4 files changed, 101 insertions, 5 deletions
diff --git a/app-mobilephone/smstools/ChangeLog b/app-mobilephone/smstools/ChangeLog
index 581c2f7ea2b4..bb18cea0c10b 100644
--- a/app-mobilephone/smstools/ChangeLog
+++ b/app-mobilephone/smstools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-mobilephone/smstools
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/ChangeLog,v 1.15 2011/06/06 13:43:40 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/ChangeLog,v 1.16 2011/07/27 10:41:13 chainsaw Exp $
+
+*smstools-3.1.14-r1 (27 Jul 2011)
+
+ 27 Jul 2011; Tony Vroon <chainsaw@gentoo.org> +smstools-3.1.14-r1.ebuild,
+ +files/smsd.initd2:
+ The init script was not fully compatible with baselayout2; this new revision
+ should fare much better.
*smstools-3.1.14 (06 Jun 2011)
diff --git a/app-mobilephone/smstools/Manifest b/app-mobilephone/smstools/Manifest
index 91c14709746a..b7a0e538ce11 100644
--- a/app-mobilephone/smstools/Manifest
+++ b/app-mobilephone/smstools/Manifest
@@ -4,16 +4,18 @@ Hash: SHA1
AUX 2.2.1-skip-dirlock.patch 1391 RMD160 aa201326762f3bebecbc50e4c39d348df4068cad SHA1 58a55162c0d5232250be485b3954157eee6ccbbc SHA256 b0a6273a0f7b81c45c6de283749a3186ab77753f7e29b525729314f799fd78d4
AUX 2.2.13-sendsms-chmod.patch 283 RMD160 87a34603458b7274f9438b3f406017145581a819 SHA1 2faf4466431d660eb30c6eb7a0f191215577576d SHA256 eff119af416a07d9ebf33d9555b4bd6b9ff9df3240d27dc8a4f5f3d62b64b1a4
AUX smsd.initd 528 RMD160 7d713a7a870e5c46110f8fc83fabbd55e16bcad5 SHA1 b846be3c664fcb35b5e4cfd39ffe1628aa3a412c SHA256 62a590e8f17acaa1147e7478b20305c552d2c2793fe09807b5cb4f9232899360
+AUX smsd.initd2 526 RMD160 7604380d90be5524269b3b317a5c171bf7e11122 SHA1 4e0dc3b972d6fe867094b5bcdd1af779fda10d10 SHA256 f38e910fb3aede80735ddc504db99fb63e8720169e02a6e11179f2a89e3b1d76
DIST smstools-2.2.20.tar.gz 172234 RMD160 7cd29149f9f94ba73e25fa77b3b9aae6312e47d3 SHA1 88a510458bcbd81a491d0a2f2492ba65a9a485ef SHA256 8eee958946332580bbe314f2e839734e633db487deb43bbb5d9bbc94b8f506bb
DIST smstools3-3.1.14.tar.gz 299379 RMD160 44fff1c97612224f7e2cc3f51d74a24f2fbdcca8 SHA1 13869519d5659329775e7222c065244c43213921 SHA256 9af79c7a58dcab00e18ea7b44db45bc8bb9ead0bb5809e8b044a1c4ad550b581
EBUILD smstools-2.2.20.ebuild 1595 RMD160 884757f4e5f57b3dfcb22b706a8c2abaca7f75e2 SHA1 64918dd714a594b90101fca4b5e18867e4d2c3ec SHA256 5664b3de101818de3081328349cf961d06939168789d6968100751f2959737bd
+EBUILD smstools-3.1.14-r1.ebuild 1599 RMD160 0237e6a2777176758c78c13362e8af9c1c356f2e SHA1 5501d99c2847c4a4251e31f66bc2599057b1bd78 SHA256 0c308b69d94f93142d5e5587456333e60fde684f8e3f3a966e17c05592052e14
EBUILD smstools-3.1.14.ebuild 1595 RMD160 d20e6e5e990ec07b6469dfdf49287515dfe62929 SHA1 d413c58598a1ecd4e486b44a6df8f1e79bb61bb4 SHA256 d68266545bb27ff656291a47e87c38abe547e36b3d3daf607969f96c256006c8
-MISC ChangeLog 3961 RMD160 0419b173bd5b6c955e2d759184b120b0eaf3d9df SHA1 cf135f43bfbbc28d0aa6fbbbec1960f4fd433fd4 SHA256 a99e19c36bbe98c42651c0a5cb9a0b2c21601dad39589853a596c4775fb88785
+MISC ChangeLog 4201 RMD160 b7a1129abef7d92e9f7e6ac71a937d2b3a0aa9c6 SHA1 62d19aa9bb5d7202f70b77dbc75d0b1e41af0000 SHA256 2ea16bd8d00593919b6f32a7a92874f9f5691365a07d43013cc0f7fe8cb79c47
MISC metadata.xml 318 RMD160 89a98948c0245b37dfbdfd78a3edec173ed33d5b SHA1 3f6c2e9eac39947198a642b1aa87a5aa90000f20 SHA256 9ef0a6739971ffaafc1e2fbb1e48c1f1614b13c0d9bb327a6ab3eb4c24788da2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk3s2Y8ACgkQp5vW4rUFj5rpYgCgsibR4XmnfZZFXyB3WGTqGPV8
-anEAnR39mvpcjNz/LVIR2C9KzQWhTQKz
-=rapG
+iEYEARECAAYFAk4v608ACgkQp5vW4rUFj5o93wCdEKOlkvUuWqPbpwG6IzXuEfOI
+tOYAoJTp6Pr2R9mtCBj9H/ddzrpdZ0uS
+=qWZb
-----END PGP SIGNATURE-----
diff --git a/app-mobilephone/smstools/files/smsd.initd2 b/app-mobilephone/smstools/files/smsd.initd2
new file mode 100644
index 000000000000..7323feebc406
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.initd2
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/files/smsd.initd2,v 1.1 2011/07/27 10:41:13 chainsaw Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ 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
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping smsd"
+ start-stop-daemon --stop -n smsd
+ eend ${?}
+}
diff --git a/app-mobilephone/smstools/smstools-3.1.14-r1.ebuild b/app-mobilephone/smstools/smstools-3.1.14-r1.ebuild
new file mode 100644
index 000000000000..39cfed314529
--- /dev/null
+++ b/app-mobilephone/smstools/smstools-3.1.14-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/smstools-3.1.14-r1.ebuild,v 1.1 2011/07/27 10:41:13 chainsaw Exp $
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+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() {
+ if use stats; then
+ sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" \
+ "${S}/src/Makefile"
+ fi
+}
+
+src_compile() {
+ cd src
+ emake CC="$(tc-getCC)" LFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dobin src/smsd
+ cd scripts
+ dobin sendsms sms2html sms2unicode unicode2sms
+ dobin hex2bin hex2dec email2sms
+ dodoc mysmsd smsevent smsresend sms2xml sql_demo smstest.php
+ dodoc checkhandler-utf-8 eventhandler-utf-8 forwardsms regular_run
+ cd ..
+
+ keepdir /var/spool/sms/incoming
+ keepdir /var/spool/sms/outgoing
+ keepdir /var/spool/sms/checked
+ chown -R smsd:sms "${D}"/var/spool/sms
+ chmod g+s "${D}"/var/spool/sms/incoming
+
+ newinitd "${FILESDIR}"/smsd.initd2 smsd
+ insopts -o smsd -g sms -m0644
+ insinto /etc
+ newins examples/smsd.conf.easy smsd.conf
+ dohtml -r doc
+}
+
+pkg_postinst() {
+ touch "${ROOT}"/var/log/smsd.log
+ chown -f smsd:sms "${ROOT}"/var/log/smsd.log
+}