mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
Merge pull request #659 from vulpesvelox/lirc_socket
Fix lirc socket and allow xbmc group members to manage power and drives
This commit is contained in:
commit
1b5e1b08e1
3 changed files with 17 additions and 4 deletions
|
@ -22,8 +22,10 @@ optdepends=(
|
||||||
provides=("xbmc")
|
provides=("xbmc")
|
||||||
conflicts=("xbmc")
|
conflicts=("xbmc")
|
||||||
install="xbmc.install"
|
install="xbmc.install"
|
||||||
source=('xbmc.service')
|
source=('xbmc.service'
|
||||||
md5sums=('36780e43d432c488259d9a899b1bcb28')
|
'polkit.rules')
|
||||||
|
md5sums=('55e6d3aab86e810c49a7f550be5b7f69'
|
||||||
|
'db407faa4beb83b6368fc65ba9bc9507')
|
||||||
|
|
||||||
_gitname="xbmc"
|
_gitname="xbmc"
|
||||||
_gitroot="git://github.com/xbmc"
|
_gitroot="git://github.com/xbmc"
|
||||||
|
@ -114,5 +116,5 @@ package() {
|
||||||
|
|
||||||
# systemd stuff
|
# systemd stuff
|
||||||
install -Dm0644 $srcdir/xbmc.service $pkgdir/usr/lib/systemd/system/xbmc.service
|
install -Dm0644 $srcdir/xbmc.service $pkgdir/usr/lib/systemd/system/xbmc.service
|
||||||
|
install -Dm0644 $srcdir/polkit.rules $pkgdir/etc/polkit-1/rules.d/10-xbmc.rules
|
||||||
}
|
}
|
||||||
|
|
11
alarm/xbmc-rbp-git/polkit.rules
Normal file
11
alarm/xbmc-rbp-git/polkit.rules
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if (action.id.match("org.freedesktop.login1.") && subject.isInGroup("xbmc")) {
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if (action.id.indexOf("org.freedesktop.udisks") == 0 && subject.isInGroup("xbmc")) {
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
|
@ -6,7 +6,7 @@ After = remote-fs.target
|
||||||
User = xbmc
|
User = xbmc
|
||||||
Group = xbmc
|
Group = xbmc
|
||||||
Type = simple
|
Type = simple
|
||||||
ExecStart = /usr/bin/xbmc-standalone
|
ExecStart = /usr/bin/xbmc-standalone -l /run/lirc/lircd
|
||||||
Restart = on-failure
|
Restart = on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in a new issue