sxmo/sxmo-utils: Add back the system required configs (MR 2197)
This commit is contained in:
parent
ca87c1e6c5
commit
5886e238ba
4 changed files with 48 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Miles Alan <m@milesalan.com>
|
||||
pkgname=sxmo-utils
|
||||
pkgver=1.4.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Utility scripts, programs, and configs that hold the Sxmo UI environment together"
|
||||
url="https://git.sr.ht/~mil/sxmo-utils"
|
||||
arch="all"
|
||||
|
@ -59,7 +59,12 @@ depends="
|
|||
|
||||
options="!check" # has no tests
|
||||
subpackages="$pkgname-openrc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~mil/sxmo-utils/archive/$pkgver.tar.gz"
|
||||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~mil/sxmo-utils/archive/$pkgver.tar.gz
|
||||
rootfs-etc-NetworkManager-conf.d-00-sxmo.conf
|
||||
rootfs-etc-polkit-1-rules.d-00-sxmo.rules
|
||||
rootfs-etc-polkit-1-rules.d-50-org.freedesktop.NetworkManager.rules
|
||||
"
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir/etc/modules-load.d/"
|
||||
|
@ -68,6 +73,20 @@ package() {
|
|||
printf %b "options snd slots=,snd-aloop" > "$pkgdir/etc/modprobe.d/sxmo.conf"
|
||||
|
||||
make -C "$builddir" DESTDIR=$pkgdir install
|
||||
|
||||
install -Dm644 "$srcdir/rootfs-etc-NetworkManager-conf.d-00-sxmo.conf" \
|
||||
"$pkgdir/etc/NetworkManager/conf.d/00-sxmo.conf"
|
||||
|
||||
install -Dm755 "$srcdir/rootfs-etc-polkit-1-rules.d-00-sxmo.rules" \
|
||||
"$pkgdir/etc/polkit-1/rules.d/00-sxmo.rules"
|
||||
|
||||
install -Dm755 "$srcdir/rootfs-etc-polkit-1-rules.d-50-org.freedesktop.NetworkManager.rules" \
|
||||
"$pkgdir/etc/polkit-1/rules.d/50-org.freedesktop.NetworkManager.rules"
|
||||
}
|
||||
|
||||
sha512sums="b80ed389e29404421a829bba9b76814ee3afc3c11527d2f3e87f95eb83bbc498ead43e38c0d6164c4336c2d5633af569c43bcdb28c0f0d886e00ee506184b537 sxmo-utils-1.4.1.tar.gz"
|
||||
sha512sums="
|
||||
b80ed389e29404421a829bba9b76814ee3afc3c11527d2f3e87f95eb83bbc498ead43e38c0d6164c4336c2d5633af569c43bcdb28c0f0d886e00ee506184b537 sxmo-utils-1.4.1.tar.gz
|
||||
67a031f309a3232ac1e8abc3fedeaee912c035f9c81b4f709248895905a27ab5844ec92c65e55b79af3894450ba3883549d4004f11efebb47114d41f730e4a5f rootfs-etc-NetworkManager-conf.d-00-sxmo.conf
|
||||
32532ad5071588b80f43d539b3bd140e3f5b4100fca244be2ade5b8c697c76043ce5278ae7bf14762106aed2c9690f34c14e73031e5d86c11cc042c8f7245421 rootfs-etc-polkit-1-rules.d-00-sxmo.rules
|
||||
7b34e861bc4ec57d970d2a7aacca36e3c3742a63ff995af1336f80b666e4a38c1035b35e129322e0d62dc75011bfaf495eb2bcae5392f2bf39f1d7b1400afcce rootfs-etc-polkit-1-rules.d-50-org.freedesktop.NetworkManager.rules
|
||||
"
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
[main]
|
||||
plugins+=ifupdown
|
||||
|
||||
[ifupdown]
|
||||
managed=true
|
||||
|
||||
[logging]
|
||||
level=INFO
|
||||
|
||||
[device-mac-randomization]
|
||||
wifi.scan-rand-mac-address=no
|
||||
|
||||
[keyfile]
|
||||
unmanaged-devices=interface-name:p2p0
|
|
@ -0,0 +1,7 @@
|
|||
polkit.addRule(function(action, subject) {
|
||||
if (action.id.indexOf("org.freedesktop.ModemManager1.") == 0 &&
|
||||
subject.isInGroup("plugdev")) {
|
||||
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
|
@ -0,0 +1,5 @@
|
|||
polkit.addRule(function(action, subject) {
|
||||
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue