1 |
commit: 7e800fb79ead62e7e3aeed1bb22ba64ab96b1ed4 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Sat Jan 2 20:16:31 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 20:16:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e800fb7 |
7 |
|
8 |
app-mobilephone/smstools: Port to EAPI 7 and GLEP 81 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/708512 |
11 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
app-mobilephone/smstools/Manifest | 1 + |
15 |
app-mobilephone/smstools/metadata.xml | 14 ++-- |
16 |
app-mobilephone/smstools/smstools-3.1.21-r2.ebuild | 75 ++++++++++++++++++++++ |
17 |
3 files changed, 83 insertions(+), 7 deletions(-) |
18 |
|
19 |
diff --git a/app-mobilephone/smstools/Manifest b/app-mobilephone/smstools/Manifest |
20 |
index 8e26b00a140..0d55aa677e8 100644 |
21 |
--- a/app-mobilephone/smstools/Manifest |
22 |
+++ b/app-mobilephone/smstools/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
+DIST smstools-3.1.21-patches.tgz 6961 BLAKE2B ee70220d96645f1cdea403ebcc3a199e16aeea2c11d222d4013d6ae08be43daa089f1c6b770ad79edfe783f534913c0fad547181aeeb51796f41420a1e43d505 SHA512 9d6697f64a1af00664bec734e638dff810c984de959675ba856fe4f74290bb971425c909c2e245a62bb8d1991811c79dd5b10864a0f4cc14c5773bf5e01d07a7 |
25 |
DIST smstools3-3.1.21.tar.gz 356548 BLAKE2B 8bbb65761128a86200a6d47e90456fef076be10cd4081b4e3cdc9456c0176996ee6ee9afbe3d9f2a989d93db706bf5461ddf7f739bc8d70337a842b96eb27a5c SHA512 0587e5020a0318351ca99b68baa1c19411824279055857a5b5aa4e346cae373fe94a811eaca6767bcf991cf849eaaa66ec120f046420531a6088cdde9373db31 |
26 |
|
27 |
diff --git a/app-mobilephone/smstools/metadata.xml b/app-mobilephone/smstools/metadata.xml |
28 |
index 4fedfbd15bb..0d9769b13f3 100644 |
29 |
--- a/app-mobilephone/smstools/metadata.xml |
30 |
+++ b/app-mobilephone/smstools/metadata.xml |
31 |
@@ -1,11 +1,11 @@ |
32 |
<?xml version="1.0" encoding="UTF-8"?> |
33 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
<pkgmetadata> |
35 |
-<maintainer type="person"> |
36 |
- <email>chainsaw@g.o</email> |
37 |
- <name>Tony Vroon</name> |
38 |
-</maintainer> |
39 |
-<use> |
40 |
- <flag name="stats">Enable statistic reporting</flag> |
41 |
-</use> |
42 |
+ <maintainer type="person"> |
43 |
+ <email>chainsaw@g.o</email> |
44 |
+ <name>Tony Vroon</name> |
45 |
+ </maintainer> |
46 |
+ <use> |
47 |
+ <flag name="stats">Enable statistic reporting</flag> |
48 |
+ </use> |
49 |
</pkgmetadata> |
50 |
|
51 |
diff --git a/app-mobilephone/smstools/smstools-3.1.21-r2.ebuild b/app-mobilephone/smstools/smstools-3.1.21-r2.ebuild |
52 |
new file mode 100644 |
53 |
index 00000000000..7bbd2e97cb6 |
54 |
--- /dev/null |
55 |
+++ b/app-mobilephone/smstools/smstools-3.1.21-r2.ebuild |
56 |
@@ -0,0 +1,75 @@ |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=7 |
61 |
+ |
62 |
+inherit systemd tmpfiles toolchain-funcs |
63 |
+ |
64 |
+DESCRIPTION="Send and receive short messages through GSM modems" |
65 |
+HOMEPAGE="http://smstools3.kekekasvi.com/" |
66 |
+SRC_URI=" |
67 |
+ http://smstools3.kekekasvi.com/packages/smstools3-${PV}.tar.gz |
68 |
+ https://dev.gentoo.org/~soap/distfiles/${P}-patches.tgz" |
69 |
+ |
70 |
+LICENSE="GPL-2" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~ppc ~x86" |
73 |
+IUSE="stats" |
74 |
+ |
75 |
+DEPEND=" |
76 |
+ acct-group/sms |
77 |
+ acct-user/smsd" |
78 |
+RDEPEND="${DEPEND} |
79 |
+ sys-process/procps |
80 |
+ stats? ( dev-libs/mm )" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${WORKDIR}"/${P}-gawk-location.patch |
84 |
+ "${WORKDIR}"/${P}-fno-common.patch |
85 |
+) |
86 |
+ |
87 |
+S="${WORKDIR}"/${PN}3 |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ default |
91 |
+ if use stats; then |
92 |
+ sed -i -e "s:CFLAGS += -D NOSTATS:#CFLAGS += -D NOSTATS:" \ |
93 |
+ "${S}/src/Makefile" || die |
94 |
+ fi |
95 |
+ echo "CFLAGS += ${CFLAGS}" >> src/Makefile || die |
96 |
+} |
97 |
+ |
98 |
+src_compile() { |
99 |
+ emake -C src \ |
100 |
+ CC="$(tc-getCC)" \ |
101 |
+ LFLAGS="${LDFLAGS}" |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ dobin src/smsd |
106 |
+ cd scripts || die |
107 |
+ dobin sendsms sms2html sms2unicode unicode2sms |
108 |
+ dobin hex2bin hex2dec email2sms |
109 |
+ dodoc mysmsd smsevent smsresend sms2xml sql_demo \ |
110 |
+ smstest.php checkhandler-utf-8 eventhandler-utf-8 \ |
111 |
+ forwardsms regular_run |
112 |
+ cd .. || die |
113 |
+ |
114 |
+ keepdir /var/spool/sms/{checked,incoming,outgoing} |
115 |
+ fowners -R smsd:sms /var/spool/sms |
116 |
+ fperms g+s /var/spool/sms/incoming |
117 |
+ |
118 |
+ newinitd "${FILESDIR}"/smsd.initd4 smsd |
119 |
+ insopts -o smsd -g sms -m0644 |
120 |
+ insinto /etc |
121 |
+ newins examples/smsd.conf.easy smsd.conf |
122 |
+ dodoc -r doc |
123 |
+ |
124 |
+ systemd_dounit "${FILESDIR}"/smsd.service |
125 |
+ newtmpfiles "${FILESDIR}"/smsd.tmpfiles smsd.conf |
126 |
+} |
127 |
+ |
128 |
+pkg_postinst() { |
129 |
+ touch "${EROOT}"/var/log/smsd.log || die |
130 |
+ chown --no-dereference -f smsd:sms "${EROOT}"/var/log/smsd.log || die |
131 |
+} |