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/, app-mobilephone/smstools/files/
Date: Mon, 11 Sep 2017 13:23:29
Message-Id: 1505136133.137fb07816c4a11feb4f1bc415ddb9bcd1481b61.chainsaw@gentoo
1 commit: 137fb07816c4a11feb4f1bc415ddb9bcd1481b61
2 Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 11 13:22:13 2017 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 11 13:22:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137fb078
7
8 app-mobilephone/smstools: Fix bug #603266 & #607470.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 .../smstools/files/3.1.21-gawk-location.patch | 9 +++++++++
13 app-mobilephone/smstools/files/smsd.initd4 | 23 ++++++++++++++++++++++
14 ...ols-3.1.21.ebuild => smstools-3.1.21-r1.ebuild} | 3 ++-
15 3 files changed, 34 insertions(+), 1 deletion(-)
16
17 diff --git a/app-mobilephone/smstools/files/3.1.21-gawk-location.patch b/app-mobilephone/smstools/files/3.1.21-gawk-location.patch
18 new file mode 100644
19 index 00000000000..e8070a329b9
20 --- /dev/null
21 +++ b/app-mobilephone/smstools/files/3.1.21-gawk-location.patch
22 @@ -0,0 +1,9 @@
23 +diff -uNr smstools3.ORIG/scripts/hex2bin smstools3/scripts/hex2bin
24 +--- smstools3.ORIG/scripts/hex2bin 2017-09-11 14:11:48.040928533 +0100
25 ++++ smstools3/scripts/hex2bin 2017-09-11 14:12:00.925927820 +0100
26 +@@ -1,4 +1,4 @@
27 +-#!/bin/gawk -f
28 ++#!/usr/bin/gawk -f
29 +
30 + # This script reads a hex-dump and converts it to a binary file.
31 + # The hex-dump must contain one or more hexadecimal numbers separated
32
33 diff --git a/app-mobilephone/smstools/files/smsd.initd4 b/app-mobilephone/smstools/files/smsd.initd4
34 new file mode 100644
35 index 00000000000..ff40d472896
36 --- /dev/null
37 +++ b/app-mobilephone/smstools/files/smsd.initd4
38 @@ -0,0 +1,23 @@
39 +#!/sbin/openrc-run
40 +# Copyright 1999-2017 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +depend() {
44 + need localmount
45 +}
46 +
47 +start() {
48 + checkpath -q -d -m 0770 -o smsd:sms /run/smsd || return 1
49 + checkpath -q -f -o smsd:sms /var/log/smsd.log || return 1
50 + ebegin "Starting smsd"
51 + start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \
52 + -c /etc/smsd.conf -p /run/smsd/smsd.pid \
53 + -i /run/smsd/smsd.working
54 + eend ${?}
55 +}
56 +
57 +stop() {
58 + ebegin "Stopping smsd"
59 + start-stop-daemon --stop -n smsd
60 + eend ${?}
61 +}
62
63 diff --git a/app-mobilephone/smstools/smstools-3.1.21.ebuild b/app-mobilephone/smstools/smstools-3.1.21-r1.ebuild
64 similarity index 94%
65 rename from app-mobilephone/smstools/smstools-3.1.21.ebuild
66 rename to app-mobilephone/smstools/smstools-3.1.21-r1.ebuild
67 index d041d82242a..96dfea8f106 100644
68 --- a/app-mobilephone/smstools/smstools-3.1.21.ebuild
69 +++ b/app-mobilephone/smstools/smstools-3.1.21-r1.ebuild
70 @@ -18,6 +18,7 @@ DEPEND=""
71 RDEPEND="sys-process/procps
72 stats? ( >=dev-libs/mm-1.4.0 )"
73
74 +PATCHES="${FILESDIR}/${PV}-gawk-location.patch"
75 S="${WORKDIR}/${PN}3"
76
77 pkg_setup() {
78 @@ -57,7 +58,7 @@ src_install() {
79 fowners -R smsd:sms /var/spool/sms
80 fperms g+s /var/spool/sms/incoming
81
82 - newinitd "${FILESDIR}"/smsd.initd3 smsd
83 + newinitd "${FILESDIR}"/smsd.initd4 smsd
84 insopts -o smsd -g sms -m0644
85 insinto /etc
86 newins examples/smsd.conf.easy smsd.conf