mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
mythtv: add udev rule.
This commit is contained in:
parent
481da86e81
commit
45907321d1
6
mythtv/99-mythbackend.rules
Normal file
6
mythtv/99-mythbackend.rules
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#
|
||||||
|
# Create systemd device units for capture devices
|
||||||
|
#
|
||||||
|
SUBSYSTEM=="video4linux", TAG+="systemd"
|
||||||
|
SUBSYSTEM=="dvb", TAG+="systemd"
|
||||||
|
SUBSYSTEM=="firewire", TAG+="systemd"
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
pkgname=mythtv
|
pkgname=mythtv
|
||||||
pkgver=0.28
|
pkgver=0.28
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A Homebrew PVR project"
|
pkgdesc="A Homebrew PVR project"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://www.mythtv.org/"
|
url="http://www.mythtv.org/"
|
||||||
@ -19,9 +19,11 @@ optdepends=('glew: for GPU commercial flagging'
|
|||||||
'openssl: for AirTunes (RAOP) support')
|
'openssl: for AirTunes (RAOP) support')
|
||||||
install='mythtv.install'
|
install='mythtv.install'
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
|
||||||
'mythbackend.service')
|
'mythbackend.service'
|
||||||
|
'99-mythbackend.rules')
|
||||||
sha256sums=('1c152d43206d971168e2234448f689548c9a073c865d3ae8f4f1fdd607d01129'
|
sha256sums=('1c152d43206d971168e2234448f689548c9a073c865d3ae8f4f1fdd607d01129'
|
||||||
'30a301d31e2396b08eee97188619b900a834081d9792a36ae274fb0dfa65a9dc')
|
'30a301d31e2396b08eee97188619b900a834081d9792a36ae274fb0dfa65a9dc'
|
||||||
|
'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $srcdir/$pkgname-$pkgver/$pkgname
|
cd $srcdir/$pkgname-$pkgver/$pkgname
|
||||||
@ -57,4 +59,8 @@ package() {
|
|||||||
|
|
||||||
install -d $pkgdir/{usr/share/mythtv,var/log/mythtv}
|
install -d $pkgdir/{usr/share/mythtv,var/log/mythtv}
|
||||||
cp -R 'contrib' $pkgdir/usr/share/mythtv
|
cp -R 'contrib' $pkgdir/usr/share/mythtv
|
||||||
|
|
||||||
|
# Install udev rules
|
||||||
|
# https://www.mythtv.org/wiki/Systemd_mythbackend_Configuration#Delay_starting_the_backend_until_tuners_have_initialized
|
||||||
|
install -Dm644 "$srcdir"/99-mythbackend.rules "$pkgdir"/usr/lib/udev/rules.d/99-mythbackend.rules
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user