aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Liske <thomas@fiasko-nw.net>2020-08-08 14:07:47 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-08-11 04:41:00 +0000
commit71a4ed305eb210f124bd342fe4c5929f304fe14c (patch)
treef5576a7bba897b29673f1501497cd79190ba6611
parent561298a296fd981f0a8e39daf76391c3b6dc0120 (diff)
downloadaports-71a4ed305eb210f124bd342fe4c5929f304fe14c.tar.gz
aports-71a4ed305eb210f124bd342fe4c5929f304fe14c.tar.bz2
aports-71a4ed305eb210f124bd342fe4c5929f304fe14c.tar.xz
community/smstools: use checkpath in initd to create non-public files
-rw-r--r--community/smstools/APKBUILD4
-rw-r--r--community/smstools/smstools.initd4
2 files changed, 3 insertions, 5 deletions
diff --git a/community/smstools/APKBUILD b/community/smstools/APKBUILD
index 1aaee68b47..a261a420ab 100644
--- a/community/smstools/APKBUILD
+++ b/community/smstools/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=smstools
pkgver=3.1.21
-pkgrel=0
+pkgrel=1
_realname="${pkgname}${pkgver%\.[0-9]*\.[0-9]*}"
pkgdesc="SMS Gateway software which can send and receive short messages through GSM modems and mobile phones"
url="http://smstools3.kekekasvi.com/"
@@ -60,6 +60,6 @@ package() {
}
sha512sums="0587e5020a0318351ca99b68baa1c19411824279055857a5b5aa4e346cae373fe94a811eaca6767bcf991cf849eaaa66ec120f046420531a6088cdde9373db31 smstools3-3.1.21.tar.gz
-4e101ba553bdf4898b17e82a35a546b1ed64c215850b5c78da9ae68009fad84a3c53dd7f5825b05fe40e93c3ab3ed12a9baf47da91025f1e383a33431ee7c14e smstools.initd
+31756bb80fb5b8ac8d1b8e29dae8926379ae2102e8931c06eb6713680e3a4d9ef5845b158e71cfe3e5d013b542341f8ec00acd1940f477d75c0fcd7d1c3e151a smstools.initd
cf2a6d605f49df10d172bc412983312d37b315e42bdb82b2ce27eda4aaaec8526a6548db293457f48aa70b8d911a4169c77682f68850bef4c084b27ca478db9d smstools.conf
668eed2143c1f08fe1deb27a20496317c77160f3278d68fbc54ac8008c5d266c0a2dc39551fd1ced92706bfffc0bc5ee7581e452670e3bff92837e598b98b10e smstools.logrotate"
diff --git a/community/smstools/smstools.initd b/community/smstools/smstools.initd
index 78383bc285..1a8f4af34e 100644
--- a/community/smstools/smstools.initd
+++ b/community/smstools/smstools.initd
@@ -10,9 +10,7 @@ depend() {
start() {
if ! [ -d /var/run/smsd ]; then
ebegin "Creating /var/run/smsd for ${SVCNAME}"
- mkdir /var/run/smsd \
- && chown smsd:smsd /var/run/smsd \
- && chmod 770 /var/run/smsd
+ checkpath -dm 770 -o smsd:smsd /var/run/smsd
eend $?
fi