Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/smstools/
Date: Mon, 11 Sep 2017 13:23:29
Message-Id: 1505135285.51ef6245f0e7836ac8d053eabcc8a2498e274627.chainsaw@gentoo
1 commit: 51ef6245f0e7836ac8d053eabcc8a2498e274627
2 Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 11 13:08:05 2017 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 11 13:08:05 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51ef6245
7
8 app-mobilephone/smstools: Version bump to 3.1.21
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 app-mobilephone/smstools/Manifest | 1 +
13 app-mobilephone/smstools/smstools-3.1.21.ebuild | 73 +++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/app-mobilephone/smstools/Manifest b/app-mobilephone/smstools/Manifest
17 index e51e3fdb0e2..8b46acfaca1 100644
18 --- a/app-mobilephone/smstools/Manifest
19 +++ b/app-mobilephone/smstools/Manifest
20 @@ -1 +1,2 @@
21 DIST smstools3-3.1.15.tar.gz 300088 SHA256 ed00ffaeaa312a5b4f969f4e97a64603a866bbe16e393ea02f5bf05234814d59 SHA512 6a4cc852327fac27b00fc58def4bbc8caa395552586fe1b84f0f4a9f7f6b00008943b85c86de0821036629c58cf04840a189d711b4ac96f7ddaafd6b340b11fa WHIRLPOOL b394c4c620622dcfdf1d0b098a51f589ee59869fbd58c0b778e51f76335a396c3d4972423374f2ee191263cf7c350cf2432e0b120f594f77f17cdbbcc4b4e974
22 +DIST smstools3-3.1.21.tar.gz 356548 SHA256 a26ba4c02b16f6cf13177bffca6c9230dc5fefaeba8e3030cd4e4905f6a92084 SHA512 0587e5020a0318351ca99b68baa1c19411824279055857a5b5aa4e346cae373fe94a811eaca6767bcf991cf849eaaa66ec120f046420531a6088cdde9373db31 WHIRLPOOL 44bba9f7c0e3c9eb73c27ae47d9ad57320eddd931393e4675e7160c66c1c17d587273ad090357842a88152ea3ca1009a9f0c4547d433cd796f46d15b0c8fb467
23
24 diff --git a/app-mobilephone/smstools/smstools-3.1.21.ebuild b/app-mobilephone/smstools/smstools-3.1.21.ebuild
25 new file mode 100644
26 index 00000000000..d041d82242a
27 --- /dev/null
28 +++ b/app-mobilephone/smstools/smstools-3.1.21.ebuild
29 @@ -0,0 +1,73 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit systemd toolchain-funcs user eutils
36 +
37 +DESCRIPTION="Send and receive short messages through GSM modems"
38 +HOMEPAGE="http://smstools3.kekekasvi.com/"
39 +SRC_URI="http://smstools3.kekekasvi.com/packages/smstools3-${PV}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~x86 ~amd64 ~ppc"
44 +IUSE="stats"
45 +
46 +DEPEND=""
47 +RDEPEND="sys-process/procps
48 + stats? ( >=dev-libs/mm-1.4.0 )"
49 +
50 +S="${WORKDIR}/${PN}3"
51 +
52 +pkg_setup() {
53 + enewgroup sms
54 + enewuser smsd -1 -1 /var/spool/sms sms
55 +}
56 +
57 +src_prepare() {
58 + default
59 + if use stats; then
60 + sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" \
61 + "${S}/src/Makefile" || die
62 + fi
63 + echo "CFLAGS += ${CFLAGS}" >> src/Makefile || die
64 +}
65 +
66 +src_compile() {
67 + cd src || die
68 + emake \
69 + CC="$(tc-getCC)" \
70 + LFLAGS="${LDFLAGS}"
71 +}
72 +
73 +src_install() {
74 + dobin src/smsd
75 + cd scripts || die
76 + dobin sendsms sms2html sms2unicode unicode2sms
77 + dobin hex2bin hex2dec email2sms
78 + dodoc mysmsd smsevent smsresend sms2xml sql_demo \
79 + smstest.php checkhandler-utf-8 eventhandler-utf-8 \
80 + forwardsms regular_run
81 + cd .. || die
82 +
83 + keepdir /var/spool/sms/incoming
84 + keepdir /var/spool/sms/outgoing
85 + keepdir /var/spool/sms/checked
86 + fowners -R smsd:sms /var/spool/sms
87 + fperms g+s /var/spool/sms/incoming
88 +
89 + newinitd "${FILESDIR}"/smsd.initd3 smsd
90 + insopts -o smsd -g sms -m0644
91 + insinto /etc
92 + newins examples/smsd.conf.easy smsd.conf
93 + dohtml -r doc
94 +
95 + systemd_dounit "${FILESDIR}"/smsd.service
96 + systemd_newtmpfilesd "${FILESDIR}"/smsd.tmpfiles smsd.conf
97 +}
98 +
99 +pkg_postinst() {
100 + touch "${ROOT}"/var/log/smsd.log || die
101 + chown -f smsd:sms "${ROOT}"/var/log/smsd.log
102 +}