summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2017-09-11 14:22:13 +0100
committerTony Vroon <chainsaw@gentoo.org>2017-09-11 14:22:13 +0100
commit137fb07816c4a11feb4f1bc415ddb9bcd1481b61 (patch)
treeb4b4e0bdb5dcf1e361916ac9ef7d8ea2b16f3c73 /app-mobilephone/smstools/files
parentapp-mobilephone/smstools: Remove old EAPI=4 ebuild. (diff)
downloadgentoo-137fb07816c4a11feb4f1bc415ddb9bcd1481b61.tar.gz
gentoo-137fb07816c4a11feb4f1bc415ddb9bcd1481b61.tar.bz2
gentoo-137fb07816c4a11feb4f1bc415ddb9bcd1481b61.zip
app-mobilephone/smstools: Fix bug #603266 & #607470.
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-mobilephone/smstools/files')
-rw-r--r--app-mobilephone/smstools/files/3.1.21-gawk-location.patch9
-rw-r--r--app-mobilephone/smstools/files/smsd.initd423
2 files changed, 32 insertions, 0 deletions
diff --git a/app-mobilephone/smstools/files/3.1.21-gawk-location.patch b/app-mobilephone/smstools/files/3.1.21-gawk-location.patch
new file mode 100644
index 00000000000..e8070a329b9
--- /dev/null
+++ b/app-mobilephone/smstools/files/3.1.21-gawk-location.patch
@@ -0,0 +1,9 @@
+diff -uNr smstools3.ORIG/scripts/hex2bin smstools3/scripts/hex2bin
+--- smstools3.ORIG/scripts/hex2bin 2017-09-11 14:11:48.040928533 +0100
++++ smstools3/scripts/hex2bin 2017-09-11 14:12:00.925927820 +0100
+@@ -1,4 +1,4 @@
+-#!/bin/gawk -f
++#!/usr/bin/gawk -f
+
+ # This script reads a hex-dump and converts it to a binary file.
+ # The hex-dump must contain one or more hexadecimal numbers separated
diff --git a/app-mobilephone/smstools/files/smsd.initd4 b/app-mobilephone/smstools/files/smsd.initd4
new file mode 100644
index 00000000000..ff40d472896
--- /dev/null
+++ b/app-mobilephone/smstools/files/smsd.initd4
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need localmount
+}
+
+start() {
+ checkpath -q -d -m 0770 -o smsd:sms /run/smsd || return 1
+ checkpath -q -f -o smsd:sms /var/log/smsd.log || return 1
+ ebegin "Starting smsd"
+ start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \
+ -c /etc/smsd.conf -p /run/smsd/smsd.pid \
+ -i /run/smsd/smsd.working
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping smsd"
+ start-stop-daemon --stop -n smsd
+ eend ${?}
+}