aboutsummaryrefslogtreecommitdiffstats
path: root/community/networkmanager
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-05 16:15:12 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-05 17:58:58 -0300
commite56cfd0f45690840a74f96f16f592de5ee9c4334 (patch)
tree7cb33c98f046953e64ed2a0cc3de907d40ecff6a /community/networkmanager
parent964be46ee178e3836c570638cb1c11e03aad93a0 (diff)
downloadaports-e56cfd0f45690840a74f96f16f592de5ee9c4334.tar.bz2
aports-e56cfd0f45690840a74f96f16f592de5ee9c4334.tar.xz
community/networkmanager: use supervise-daemon for OpenRC initd
Diffstat (limited to 'community/networkmanager')
-rw-r--r--community/networkmanager/APKBUILD10
-rw-r--r--community/networkmanager/networkmanager.initd19
2 files changed, 11 insertions, 18 deletions
diff --git a/community/networkmanager/APKBUILD b/community/networkmanager/APKBUILD
index de6982236b..9ae7b8aea3 100644
--- a/community/networkmanager/APKBUILD
+++ b/community/networkmanager/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=networkmanager
pkgver=1.18.2
-pkgrel=1
+pkgrel=2
pkgdesc="Network Management daemon"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch="all !s390x" # Limited by iwd
@@ -101,15 +101,15 @@ package() {
To modify system network connections without the root password: add your user account to the 'plugdev' group, or use Polkit.
EOF
- cat > "$pkgdir"/etc/NetworkManager/conf.d/iwd.conf <<EOF
-[device]
-wifi.backend=iwd
+ cat > "$pkgdir"/etc/NetworkManager/conf.d/iwd.conf <<-EOF
+ [device]
+ wifi.backend=iwd
EOF
}
sha512sums="a220d856632693298af0bd23ae4393ee597684fcae400c8ed35bae5e543bcdbd0b0e879f4a7587b674ae86c5fdfbee955acd0fb6226cb95ed31372cb7c222814 NetworkManager-1.18.2.tar.xz
a6e507260e2ceffad4cacb2b49a1d4f6b933e5ae8bc50c1bd56f828298c5dc8d9d17aa4be766faeacefbe3c6c0c748e4ef499a55bb5ee40f0f04bbf766fbbc82 networkmanager.conf
-477c4cbb6e8c4805a61cdd9442c6a951c8f96173552d943a2f21938ba0facead455f247d65b2b79d1dcdd42abc6db8a8d06c49847bf028001c99ccfca1782bbd networkmanager.initd
+5ac6d11b588c479de9c7e1fef79ed0a2c04dc159a2173636a6a77a2867c839cc1609860756109e9e794f23a02238a6d94834d8fb6fcb81a6be3ef1dbf4a34e6f networkmanager.initd
9820ed2ead0af689644842de57657bb10330a1eaff0e85b21ae9913f55e399e47d8b41b0a12956f30de80272b4424c6e55f33acbc88e156879003a260bf576f6 networkmanager.rules
9d1a9185b0b50f677a4173a8b67e808ba36971111165ae446e9a15b5c7adcc8cc6d44fa7bddac05762c50d80b04818a483756eaf2aaefe0162e1f37cd070fca4 musl-basic.patch
095c1d944f3274ba31435cd1af8e2affb4187bdd921a0cc0c185b59810b73cfab7919b5f551bab3d9e4644fbee8f9ac017b4c5d69a771fb68319cbefa37c71a3 musl-network-support.patch
diff --git a/community/networkmanager/networkmanager.initd b/community/networkmanager/networkmanager.initd
index 1c5e41fc0a..4ca6a0d54f 100644
--- a/community/networkmanager/networkmanager.initd
+++ b/community/networkmanager/networkmanager.initd
@@ -3,22 +3,15 @@
# Distributed under the terms of the GNU General Purpose License v2
# $Header: $
+supervisor=supervise-daemon
+command=/usr/sbin/NetworkManager
+command_args_foreground="-n"
+
+description="Network Manager Daemon"
+
depend() {
need dbus
provide net
}
-start() {
- ebegin "Starting NetworkManager"
- start-stop-daemon --start --quiet --pidfile /var/run/NetworkManager.pid \
- --exec /usr/sbin/NetworkManager -- --pid-file /var/run/NetworkManager.pid
- eend $?
-}
-
-stop() {
- ebegin "Stopping NetworkManager"
- start-stop-daemon --stop --quiet --pidfile /var/run/NetworkManager.pid
- eend $?
-}
-
# vim: set ft=gentoo-init-d ts=3 sw=3 et: