summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-12-22 09:39:40 +0000
committerPacho Ramos <pacho@gentoo.org>2013-12-22 09:39:40 +0000
commitcbd41f65835a21ddb1826ed89ad4a2685b7f6d37 (patch)
treebaa153d6c3f907f8e76dfd5c9a6b1d4d93dd1f53 /app-mobilephone
parentAdd unit file (#493978) (diff)
downloadhistorical-cbd41f65835a21ddb1826ed89ad4a2685b7f6d37.tar.gz
historical-cbd41f65835a21ddb1826ed89ad4a2685b7f6d37.tar.bz2
historical-cbd41f65835a21ddb1826ed89ad4a2685b7f6d37.zip
Add unit file (#493908 by Marcin Kowalski)
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'app-mobilephone')
-rw-r--r--app-mobilephone/smstools/ChangeLog11
-rw-r--r--app-mobilephone/smstools/Manifest13
-rw-r--r--app-mobilephone/smstools/files/smsd.service11
-rw-r--r--app-mobilephone/smstools/files/smsd.tmpfiles1
-rw-r--r--app-mobilephone/smstools/smstools-3.1.15-r1.ebuild73
5 files changed, 101 insertions, 8 deletions
diff --git a/app-mobilephone/smstools/ChangeLog b/app-mobilephone/smstools/ChangeLog
index 9da1ca3bff93..1b71269153ec 100644
--- a/app-mobilephone/smstools/ChangeLog
+++ b/app-mobilephone/smstools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-mobilephone/smstools
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/ChangeLog,v 1.19 2012/12/20 10:41:42 chainsaw Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/ChangeLog,v 1.20 2013/12/22 09:39:34 pacho Exp $
+
+*smstools-3.1.15-r1 (22 Dec 2013)
+
+ 22 Dec 2013; Pacho Ramos <pacho@gentoo.org> +files/smsd.service,
+ +files/smsd.tmpfiles, +smstools-3.1.15-r1.ebuild:
+ Add unit file (#493908 by Marcin Kowalski)
*smstools-3.1.15 (20 Dec 2012)
@@ -123,4 +129,3 @@
14 Jun 2006; Tony Vroon <chainsaw@gentoo.org> +files/smsd.initd,
+metadata.xml, +smstools-2.2.1.ebuild:
Initial commit. Ebuild by me.
-
diff --git a/app-mobilephone/smstools/Manifest b/app-mobilephone/smstools/Manifest
index 67f3c57d9253..9b270c0b035b 100644
--- a/app-mobilephone/smstools/Manifest
+++ b/app-mobilephone/smstools/Manifest
@@ -6,6 +6,8 @@ AUX 2.2.13-sendsms-chmod.patch 283 SHA256 eff119af416a07d9ebf33d9555b4bd6b9ff9df
AUX smsd.initd 528 SHA256 62a590e8f17acaa1147e7478b20305c552d2c2793fe09807b5cb4f9232899360 SHA512 a61ec0a9efc01bc7ae6e3545a3e964ff505595b59a79a7da4d0c1a22965ec2ad1e6a1eeb8ccc76b82287b0c9d7ff0e93a974cac2e6b122451b29e8ae26d62408 WHIRLPOOL 3f93d00da05892cfb9728a88af21f5c7f5c4449f38fc66ca65240be586beb8a9c57dc3b785d64e3557fd739d805de2f356427cad8efc2c4b100af5cb13758655
AUX smsd.initd2 526 SHA256 f38e910fb3aede80735ddc504db99fb63e8720169e02a6e11179f2a89e3b1d76 SHA512 2cdab61248ecbaa9e278a8ef6ec81920d1376572177377b9ca216c3444b255758e81f3f165283d315cd9702f8aaa59bd7e07be80f80292f29e0b71e93b2604bb WHIRLPOOL b3281151734318e80af4f9805477ba1cfbf93ebe88316694ee9e0ae9b3a6826c39b228cbb156af8129d9f1232dd43b08d1438ba8ab74d84adf677288fb8f516c
AUX smsd.initd3 774 SHA256 58f503cccfae18c40e13aa70a6aa653a14fa77b3268841f8643264203faf511c SHA512 3bece7305bf0ab64bf104d026821d9e441b802758cf890dd0fe18358d524db94e42304c0a87b0daa9a3cd7e17f9c604f7374a8ee9f58cb28adc3d6501d187ebd WHIRLPOOL 5581cde6167ea685fccb5aa82fc30e816b85404ed80540c320253dfb96a4fe218ca78a838689db600b6e3bc11296622164bfb10e206e43616437324483fb87fe
+AUX smsd.service 232 SHA256 30437b9ba94521ec1223ea9740726b5453bb3aa440c2aced1743edc0408cdb51 SHA512 60b2d56b4fb5f174c9a9111891633a1eca6e831a0abad7d348c04d63776af832256a1bf0ed300196c429056106226e98178e60215c867e6ec9f998a7029295d1 WHIRLPOOL eba9c9b55a83d9872aebe2a3c7a9d3658d67ac8a9d3aa375f7f6fbfa93737b730dc1ccc236e39de52b4a99e2df51241273b6687455f9338f70e2296f84b07b71
+AUX smsd.tmpfiles 28 SHA256 77b5249182329cc349e6711117f6ea22b319e8bde2d85057e15e85b413c88987 SHA512 e8169ac96bff820996b13971f47e40550cbfa87a46f74304c4a42afe5a0fb779e65244dda5c7b3fae40d3eb0a669f2b4d5f5bfeeb576e88e04ddda812da9234a WHIRLPOOL 1ae73c50e7e8c48bfa3d84c62fa5c7e9495aedeaff79cb589fd8acbfb6b7b375bb5696883236a8fcbe207c6f204d5d1e2ef9815d07c9bd19cdf1877fb00a1fcb
DIST smstools-2.2.20.tar.gz 172234 SHA256 8eee958946332580bbe314f2e839734e633db487deb43bbb5d9bbc94b8f506bb SHA512 a0646cb343d710f4031328e4686c01716f21061f65edc171ec3e5ab14bf5c67bbb94cf1eee0c9d483b0b0cad12a8fda3b3bf52a863a9e51f44b1f3492d5e85d9 WHIRLPOOL 7b36b58a37d449f7f7454630e45e44e22fe28210da491d232057ce235889cb2fc23009c7fde928cf6e9b4ef59df85eb65fdad105394e3586d06284aff9721102
DIST smstools3-3.1.14.tar.gz 299379 SHA256 9af79c7a58dcab00e18ea7b44db45bc8bb9ead0bb5809e8b044a1c4ad550b581 SHA512 4bf5604ca7fae41c3ec036d8f60edf5a7b77810aea68afc59f6d44a6aa21dbc68db6244918c9894b16599e272d847a77068cb0e7238936b0ceb4e84ff5557834 WHIRLPOOL aa523154c43ea5d7c62198ffd94bd5b47cfda800f134744b9669027d6a57082fcc43157fca1241f726846bdac13022503d16214c25f81d50a4e4fe16f10b8722
DIST smstools3-3.1.15.tar.gz 300088 SHA256 ed00ffaeaa312a5b4f969f4e97a64603a866bbe16e393ea02f5bf05234814d59 SHA512 6a4cc852327fac27b00fc58def4bbc8caa395552586fe1b84f0f4a9f7f6b00008943b85c86de0821036629c58cf04840a189d711b4ac96f7ddaafd6b340b11fa WHIRLPOOL b394c4c620622dcfdf1d0b098a51f589ee59869fbd58c0b778e51f76335a396c3d4972423374f2ee191263cf7c350cf2432e0b120f594f77f17cdbbcc4b4e974
@@ -13,13 +15,14 @@ EBUILD smstools-2.2.20.ebuild 1599 SHA256 020c6ae11e9d0885e69bdf779587a614cfe053
EBUILD smstools-3.1.14-r1.ebuild 1596 SHA256 256de22aac83108c6b6bd29c690706344bde256e06c940d82ed49bbf42eddb3d SHA512 6254087b158bb0eb809e2733e95088c4a3453cc102ac65f6b6ef16cd972e279a68d2956bc72328a4aff38a8f96f8e97a92b6f9a440b670251f32f6506c2baea8 WHIRLPOOL 7c84e974b932a5a356eeb2ca3065ecb3ea9a93f1c8ac0a6c5a6cd9e8f6b7f19067cb53fbcb03925848d6d27bddb16c0c05d55dc8b3c6eff741bae7baad6de212
EBUILD smstools-3.1.14-r2.ebuild 1661 SHA256 e27522cbde436fe5c88d5be8a46ead789ae7caf2c98c7ff181171ecdcca99a93 SHA512 5e6a66a76989d18f8e592bb5a26828695d2fa29530d2b6c07bad079c6d8ec87dd0ad389215d34c2b81fa04f479d2379f1e7844d6c75d8afe60d8be87858dc6a7 WHIRLPOOL f61d7ad1a607f049b4e235cc7443bd0d31a58a7b7d0d52b0f1a91e64825fd7ddfe0ca88986121b6be679045497806ace2e73cd77fd5ec98f53c5770d8af4ebe4
EBUILD smstools-3.1.14.ebuild 1592 SHA256 9288a7e224343743c4a741fac93d9e0e291290ca0f579fb3469f461fda63cf04 SHA512 7ddb0aee2dce14ad60c6cddb3c16c77c4abd827d99801516f3b90516f343b74845814b1b6c0472a2c310f3cbe14bd6c87cd23ea6bbf7bc3188dcae8ebafa72a5 WHIRLPOOL 8ed281ea4c28f3bfc7a13a99f4b154bc81b5eefd5b41c294981ddfecc3c9921156b75561e241725003500572afbff38728f2c2ffeb5769772d72d7a20bbffd16
+EBUILD smstools-3.1.15-r1.ebuild 1771 SHA256 7cec3c6a2821389ab009786dc3c0b7669ea0e7ad53be787b3a561fbfa586fc3f SHA512 b67c801c1d1fd67478babed458e9d403e4ed3d806633ebd4ff71700d955ba27102dbc234243f3c99038bccf0affb6c26f2a70a499345f1e88e1abb7af21c2eae WHIRLPOOL f72d6e62698032662c39a91e94102fe784302c0d67fa6f3fd262b7afeff2d0e731668d8e7eb9147955c3977f78de87ce7517e527af2d9a1652ab42d15028e688
EBUILD smstools-3.1.15.ebuild 1659 SHA256 772d1626309ee21645c46501b2b00c61457dd652b84292913e4f5b48493da324 SHA512 0e8ea4928ab8ac937cf12afa3ce2642fdcb44439c8c57d75cfa4260e68e3f8ed75c5dc180c1e4020f3aa2e88abba9f92ae5e0bc4078fce7f2e56bea27bd6a99f WHIRLPOOL fe4b2436036b9564a37cbde54e97ade7a5a0c906d5c0a33147e028111e912515e9c7a26055f56cbb552d3e44028d4c37f9f12cacd49e31997b1abfaaea83bee8
-MISC ChangeLog 4864 SHA256 c73862c14f46a1a3632ea020e4cdc4d3c19279cf681995e8e39b03022a3bfdaf SHA512 8ce99f45acabf5f5d3afdfbb553c1e7fe40f91f0add62aacc4f635cff52c2c8dc6d739abe28a5dc89e2b9d7deafeed06925a03bd3262b6d8344426b91e2261ec WHIRLPOOL 7bbe800a619dbfbf2ac7b77199a572ad333c1a9b2badc94e84ab3edf11c302c72820d0dda6ad8394334c62aae6f0dd72e634d3852aa423ca403e46181a74cc9c
+MISC ChangeLog 5060 SHA256 4de059342a8050c0414bbf6f270973441d213e40323c6dda0a2cdd1786c91afe SHA512 a5afe29dc3b9815f8c051b8eea0e61d2f0b64104df14f2ab2e80a8925f108206c58429f587a98f5c1dc3115af3c758fafff6df3338eeda8524f88ecf1f30d896 WHIRLPOOL 37cb8488c135a1038d75213c4b7d788c50f3ad16b60a0e97ba480926eca3430ebe7ab778f8dc9f5957b7a221fc96867b4369da1d81a6054b286b7f128ac51b2e
MISC metadata.xml 297 SHA256 8ecdee17068dd1fc7241e9a8dedeebf2f1281867045f2b4cdd67e5992639d6ea SHA512 9892b288641ec12b51142b957bd046facb5af22d27b90627a1b46dd39243ae5f8ccff2cf0357ec4c34821ce398a440d11ffd485f19b383a5ae1a54dc6a41501e WHIRLPOOL 2444e02e5b54c91a13ae879b8826b1c81931338085187c4697cb22de20f56d8fda22f70d58289c36c59f7380ff3106fe6580ca584cbc377662d48ee32be70362
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlDS62oACgkQp5vW4rUFj5oxsQCfY5Ckj7Ng+y6nqXhD/U6Tu3IS
-qLcAoJ8K5wQNmgdii2l4vGZWwbn5YoYB
-=wKFF
+iEYEAREIAAYFAlK2s1cACgkQCaWpQKGI+9SjXQCeISMR3m3TqoUWAY8HY78gIEMP
+1JIAn1yI2+KBw+dSr1UvpetjvTUpaqqs
+=iQh5
-----END PGP SIGNATURE-----
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/smstools-3.1.15-r1.ebuild b/app-mobilephone/smstools/smstools-3.1.15-r1.ebuild
new file mode 100644
index 000000000000..8dec52c0224d
--- /dev/null
+++ b/app-mobilephone/smstools/smstools-3.1.15-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/smstools/smstools-3.1.15-r1.ebuild,v 1.1 2013/12/22 09:39:34 pacho Exp $
+
+EAPI=4
+
+inherit systemd toolchain-funcs user
+
+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" || 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
+}