community/mythtv to 29.0-3

This commit is contained in:
David Beauchamp 2017-09-24 09:39:08 -04:00
parent 8e49b2393b
commit f7941adc1c
No known key found for this signature in database
GPG key ID: 5364FFC6C695C4AE
2 changed files with 16 additions and 15 deletions

View file

@ -12,7 +12,7 @@
pkgname=mythtv
pkgver=29.0
pkgrel=2
pkgrel=3
epoch=1
pkgdesc="A Homebrew PVR project"
arch=('i686' 'x86_64')
@ -34,10 +34,10 @@ install='mythtv.install'
source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
'mythbackend.service' '99-mythbackend.rules'
'0001-libudfread-set-HAVE_PTHREAD_H.patch')
sha256sums=('4232f43793783d14f29f5622dcb77c1a4211e7d5624ddbb0a60625fbe710b3c2'
'ed5ca54de26b7cd8a64e09626eed6e09f35d677daf88c530bb24cc4252bcce6d'
'ecfd02bbbef5de9773f4de2c52e9b2b382ce8137735f249d7900270d304fd333'
'c15efbcc7d8db4a185ef908861f48633353173012b18dada44df4c200fea8072')
sha512sums=('6d79d943b95b1816b4fce52f3de3e01ebcdcc2779f852ec8cf5e3a81f8be4c730a254ff78b52e36ac522ff99b125501f0cba33a2d4c01571552e09fb4dba18c2'
'41533da5d8ef694d8c12f60d956673d9e49fb6781ae58d6bfd0bf31e4f380fddb508f9cad3b91264a3ad55853c24c6932bdf83bb5b711c34c0836d71b46be02c'
'fc02c190f01dbfb803b87ea0a6cdf408ce7706dc1ed74fba939931c129fdeb5dab1105caf9f71f029843a4d74db888084f92173c3be240d8492454633311f7c8'
'ee6e1a6a9dff14ea83bb4cdbd05f824227493f3d5ceceaee4d60677f6aa387686c35379a4e7f60baefd917f33e96be9e6c1d6cdbb68743336990e44e87e4b059')
prepare() {
cd $pkgname-$pkgver/$pkgname

View file

@ -1,20 +1,21 @@
post_upgrade() {
if ! getent passwd mythtv &>/dev/null; then
getent group mythtv &>/dev/null || groupadd -r mythtv >/dev/null
useradd -rmd /var/lib/mythtv -g mythtv -G video,audio,optical -s /bin/bash mythtv >/dev/null
fi
if ! getent passwd mythtv &>/dev/null; then
getent group mythtv &>/dev/null || groupadd -r mythtv >/dev/null
useradd -rmd /var/lib/mythtv -g mythtv -G video,audio,optical -s /bin/bash mythtv >/dev/null
chmod 755 "$pkgdir/var/lib/mythtv"
fi
echo -e "You may need to load time zone tables in MySQL.\nSee http://www.mythtv.org/wiki/MySQL_Time_Zone_Tables"
echo -e "You may need to load time zone tables in MySQL.\nSee http://www.mythtv.org/wiki/MySQL_Time_Zone_Tables"
}
post_install() {
echo -e "For installation information, visit:\nhttps://wiki.archlinux.org/index.php/MythTV"
echo -e "For installation information, visit:\nhttps://wiki.archlinux.org/index.php/MythTV"
post_upgrade
post_upgrade
}
post_remove() {
echo -e "The MythTV database was not removed. To remove it, run:\n mysql -u root -e 'drop database mythconverg;'"
[ -d var/lib/mythtv ] && echo "The MythTV home directory /var/lib/mythtv can also be removed."
echo -e "The 'mythtv' user and group can also be removed."
echo -e "The MythTV database was not removed. To remove it, run:\n mysql -u root -e 'drop database mythconverg;'"
[ -d var/lib/mythtv ] && echo "The MythTV home directory /var/lib/mythtv can also be removed."
echo -e "The 'mythtv' user and group can also be removed."
}