[arch-commits] Commit in mythtv/repos (12 files)

Maxime Gauduin alucryd at archlinux.org
Fri Jul 17 16:15:16 UTC 2015


    Date: Friday, July 17, 2015 @ 18:15:16
  Author: alucryd
Revision: 137066

archrelease: copy trunk to community-i686, community-x86_64

Added:
  mythtv/repos/community-i686/PKGBUILD
    (from rev 137065, mythtv/trunk/PKGBUILD)
  mythtv/repos/community-i686/mythbackend.service
    (from rev 137065, mythtv/trunk/mythbackend.service)
  mythtv/repos/community-i686/mythtv.install
    (from rev 137065, mythtv/trunk/mythtv.install)
  mythtv/repos/community-x86_64/PKGBUILD
    (from rev 137065, mythtv/trunk/PKGBUILD)
  mythtv/repos/community-x86_64/mythbackend.service
    (from rev 137065, mythtv/trunk/mythbackend.service)
  mythtv/repos/community-x86_64/mythtv.install
    (from rev 137065, mythtv/trunk/mythtv.install)
Deleted:
  mythtv/repos/community-i686/PKGBUILD
  mythtv/repos/community-i686/mythbackend.service
  mythtv/repos/community-i686/mythtv.install
  mythtv/repos/community-x86_64/PKGBUILD
  mythtv/repos/community-x86_64/mythbackend.service
  mythtv/repos/community-x86_64/mythtv.install

--------------------------------------+
 /PKGBUILD                            |  150 +++++++++++++++++++++++++++++++++
 /mythbackend.service                 |   30 ++++++
 /mythtv.install                      |   44 +++++++++
 community-i686/PKGBUILD              |   75 ----------------
 community-i686/mythbackend.service   |   15 ---
 community-i686/mythtv.install        |   22 ----
 community-x86_64/PKGBUILD            |   75 ----------------
 community-x86_64/mythbackend.service |   15 ---
 community-x86_64/mythtv.install      |   22 ----
 9 files changed, 224 insertions(+), 224 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2015-07-17 16:15:04 UTC (rev 137065)
+++ community-i686/PKGBUILD	2015-07-17 16:15:16 UTC (rev 137066)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Jonathan Conder <jonno.conder at gmail.com>
-# Contributor: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Juergen Hoetzel <juergen at archlinux.org>
-# Contributor: <kleptophobiac at gmail.com>
-# Contributor: dorphell <dorphell at archlinux.org>
-
-pkgname=mythtv
-pkgver=0.27.5
-pkgrel=1
-epoch=1
-pkgdesc="A Homebrew PVR project"
-arch=('i686' 'x86_64')
-url="http://www.mythtv.org/"
-license=('GPL')
-depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
-         'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc' 'mariadb-clients'
-         'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
-         'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'taglib' 'urlgrabber'
-         'libx264' 'libvdpau')
-makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 'x264' 'gdb')
-optdepends=('glew: for GPU commercial flagging'
-            'libcec: for consumer electronics control capabilities'
-            'libxml2: to read blu-ray metadata'
-            'openssl: for AirTunes (RAOP) support'
-            'udisks: detect changes to removable media'
-            'xmltv: to download tv listings')
-conflicts=('myththemes' 'mythplugins-mythvideo')
-replaces=('myththemes' 'mythplugins-mythvideo')
-install='mythtv.install'
-source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
-        'mythbackend.service'
-        'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch')
-sha256sums=('a3c6141cd0729890622268cc8b2bdd799e9c7ac9135360766d515e00672a356a'
-            'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302'
-            '8270407c2074b305e0c32151f89c84f6bf980a32665a2da8e4727405fa3911f3')
-
-prepare() {
-  cd "$srcdir/$pkgname-$pkgver/$pkgname"
-
-  find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
-  patch -Np2 -i "$srcdir/libcec-2-support.2.patch"
-}
-
-build() {
-  cd "$srcdir/$pkgname-$pkgver/$pkgname"
-
-  ARCH="${CARCH/_/-}"
-  ./configure --prefix=/usr \
-              --cpu="$ARCH" \
-              --disable-altivec \
-              --disable-audio-jack \
-              --disable-ccache \
-              --disable-distcc \
-              --enable-libfftw3 \
-              --enable-libmp3lame \
-              --enable-libvpx \
-              --enable-libx264 \
-              --enable-vaapi \
-              --python=python2 \
-              --perl-config-opts=INSTALLDIRS=vendor
-  make
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver/$pkgname"
-  make INSTALL_ROOT="$pkgdir" install
-
-  install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
-  install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
-
-  mkdir -p "$pkgdir/usr/share/mythtv"
-  cp -R 'contrib' "$pkgdir/usr/share/mythtv"
-  mkdir -p "$pkgdir/var/log/mythtv"
-}

Copied: mythtv/repos/community-i686/PKGBUILD (from rev 137065, mythtv/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-07-17 16:15:16 UTC (rev 137066)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Jonathan Conder <jonno.conder at gmail.com>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+# Contributor: <kleptophobiac at gmail.com>
+# Contributor: dorphell <dorphell at archlinux.org>
+
+pkgname=mythtv
+pkgver=0.27.5
+pkgrel=2
+epoch=1
+pkgdesc="A Homebrew PVR project"
+arch=('i686' 'x86_64')
+url="http://www.mythtv.org/"
+license=('GPL')
+depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
+         'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc' 'mariadb-clients'
+         'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
+         'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'taglib' 'urlgrabber'
+         'libx264' 'libvdpau')
+makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 'x264' 'gdb')
+optdepends=('glew: for GPU commercial flagging'
+            'libcec: for consumer electronics control capabilities'
+            'libxml2: to read blu-ray metadata'
+            'openssl: for AirTunes (RAOP) support'
+            'udisks: detect changes to removable media'
+            'xmltv: to download tv listings')
+conflicts=('myththemes' 'mythplugins-mythvideo')
+replaces=('myththemes' 'mythplugins-mythvideo')
+install='mythtv.install'
+source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
+        'mythbackend.service'
+        'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch')
+sha256sums=('7e625f94332effeadfba8e7ae7c98d44a83bfc25b7c59e39adce67dc2f4e1e1b'
+            'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302'
+            '8270407c2074b305e0c32151f89c84f6bf980a32665a2da8e4727405fa3911f3')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+
+  find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
+  patch -Np2 -i "$srcdir/libcec-2-support.2.patch"
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+
+  ARCH="${CARCH/_/-}"
+  ./configure --prefix=/usr \
+              --cpu="$ARCH" \
+              --disable-altivec \
+              --disable-audio-jack \
+              --disable-ccache \
+              --disable-distcc \
+              --enable-libfftw3 \
+              --enable-libmp3lame \
+              --enable-libvpx \
+              --enable-libx264 \
+              --enable-vaapi \
+              --python=python2 \
+              --perl-config-opts=INSTALLDIRS=vendor
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+  make INSTALL_ROOT="$pkgdir" install
+
+  install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
+  install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
+
+  mkdir -p "$pkgdir/usr/share/mythtv"
+  cp -R 'contrib' "$pkgdir/usr/share/mythtv"
+  mkdir -p "$pkgdir/var/log/mythtv"
+}

Deleted: community-i686/mythbackend.service
===================================================================
--- community-i686/mythbackend.service	2015-07-17 16:15:04 UTC (rev 137065)
+++ community-i686/mythbackend.service	2015-07-17 16:15:16 UTC (rev 137066)
@@ -1,15 +0,0 @@
-[Unit]
-Description=MythTV Backend
-Wants=network-online.target
-After=network.target mysqld.service
-
-[Service]
-Type=simple
-Environment=HOME=/var/lib/mythtv
-User=mythtv
-ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
-ExecStop=/usr/bin/mythshutdown --setscheduledwakeup
-#ExecStop=/usr/bin/mythshutdown --shutdown
-
-[Install]
-WantedBy=multi-user.target

Copied: mythtv/repos/community-i686/mythbackend.service (from rev 137065, mythtv/trunk/mythbackend.service)
===================================================================
--- community-i686/mythbackend.service	                        (rev 0)
+++ community-i686/mythbackend.service	2015-07-17 16:15:16 UTC (rev 137066)
@@ -0,0 +1,15 @@
+[Unit]
+Description=MythTV Backend
+Wants=network-online.target
+After=network.target mysqld.service
+
+[Service]
+Type=simple
+Environment=HOME=/var/lib/mythtv
+User=mythtv
+ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
+ExecStop=/usr/bin/mythshutdown --setscheduledwakeup
+#ExecStop=/usr/bin/mythshutdown --shutdown
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-i686/mythtv.install
===================================================================
--- community-i686/mythtv.install	2015-07-17 16:15:04 UTC (rev 137065)
+++ community-i686/mythtv.install	2015-07-17 16:15:16 UTC (rev 137066)
@@ -1,22 +0,0 @@
-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
-
-	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"
-
-	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."
-
-	getent passwd mythtv &>/dev/null && userdel mythtv >/dev/null
-	getent group mythtv &>/dev/null && groupdel mythtv >/dev/null
-}

Copied: mythtv/repos/community-i686/mythtv.install (from rev 137065, mythtv/trunk/mythtv.install)
===================================================================
--- community-i686/mythtv.install	                        (rev 0)
+++ community-i686/mythtv.install	2015-07-17 16:15:16 UTC (rev 137066)
@@ -0,0 +1,22 @@
+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
+
+	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"
+
+	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."
+
+	getent passwd mythtv &>/dev/null && userdel mythtv >/dev/null
+	getent group mythtv &>/dev/null && groupdel mythtv >/dev/null
+}

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2015-07-17 16:15:04 UTC (rev 137065)
+++ community-x86_64/PKGBUILD	2015-07-17 16:15:16 UTC (rev 137066)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Jonathan Conder <jonno.conder at gmail.com>
-# Contributor: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Juergen Hoetzel <juergen at archlinux.org>
-# Contributor: <kleptophobiac at gmail.com>
-# Contributor: dorphell <dorphell at archlinux.org>
-
-pkgname=mythtv
-pkgver=0.27.5
-pkgrel=1
-epoch=1
-pkgdesc="A Homebrew PVR project"
-arch=('i686' 'x86_64')
-url="http://www.mythtv.org/"
-license=('GPL')
-depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
-         'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc' 'mariadb-clients'
-         'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
-         'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'taglib' 'urlgrabber'
-         'libx264' 'libvdpau')
-makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 'x264' 'gdb')
-optdepends=('glew: for GPU commercial flagging'
-            'libcec: for consumer electronics control capabilities'
-            'libxml2: to read blu-ray metadata'
-            'openssl: for AirTunes (RAOP) support'
-            'udisks: detect changes to removable media'
-            'xmltv: to download tv listings')
-conflicts=('myththemes' 'mythplugins-mythvideo')
-replaces=('myththemes' 'mythplugins-mythvideo')
-install='mythtv.install'
-source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
-        'mythbackend.service'
-        'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch')
-sha256sums=('a3c6141cd0729890622268cc8b2bdd799e9c7ac9135360766d515e00672a356a'
-            'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302'
-            '8270407c2074b305e0c32151f89c84f6bf980a32665a2da8e4727405fa3911f3')
-
-prepare() {
-  cd "$srcdir/$pkgname-$pkgver/$pkgname"
-
-  find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
-  patch -Np2 -i "$srcdir/libcec-2-support.2.patch"
-}
-
-build() {
-  cd "$srcdir/$pkgname-$pkgver/$pkgname"
-
-  ARCH="${CARCH/_/-}"
-  ./configure --prefix=/usr \
-              --cpu="$ARCH" \
-              --disable-altivec \
-              --disable-audio-jack \
-              --disable-ccache \
-              --disable-distcc \
-              --enable-libfftw3 \
-              --enable-libmp3lame \
-              --enable-libvpx \
-              --enable-libx264 \
-              --enable-vaapi \
-              --python=python2 \
-              --perl-config-opts=INSTALLDIRS=vendor
-  make
-}
-
-package() {
-  cd "$srcdir/$pkgname-$pkgver/$pkgname"
-  make INSTALL_ROOT="$pkgdir" install
-
-  install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
-  install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
-
-  mkdir -p "$pkgdir/usr/share/mythtv"
-  cp -R 'contrib' "$pkgdir/usr/share/mythtv"
-  mkdir -p "$pkgdir/var/log/mythtv"
-}

Copied: mythtv/repos/community-x86_64/PKGBUILD (from rev 137065, mythtv/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-07-17 16:15:16 UTC (rev 137066)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Jonathan Conder <jonno.conder at gmail.com>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+# Contributor: <kleptophobiac at gmail.com>
+# Contributor: dorphell <dorphell at archlinux.org>
+
+pkgname=mythtv
+pkgver=0.27.5
+pkgrel=2
+epoch=1
+pkgdesc="A Homebrew PVR project"
+arch=('i686' 'x86_64')
+url="http://www.mythtv.org/"
+license=('GPL')
+depends=('avahi' 'fftw' 'lame' 'libass' 'libavc1394' 'libcdio' 'libiec61883'
+         'libgl' 'libpulse' 'libva' 'libvpx' 'libxinerama' 'lirc' 'mariadb-clients'
+         'mysql-python' 'perl-dbd-mysql' 'perl-io-socket-inet6' 'perl-libwww'
+         'perl-net-upnp' 'python2-lxml' 'qtwebkit' 'taglib' 'urlgrabber'
+         'libx264' 'libvdpau')
+makedepends=('glew' 'libcec' 'libxml2' 'mesa' 'mesa-libgl' 'openssl' 'yasm' 'x264' 'gdb')
+optdepends=('glew: for GPU commercial flagging'
+            'libcec: for consumer electronics control capabilities'
+            'libxml2: to read blu-ray metadata'
+            'openssl: for AirTunes (RAOP) support'
+            'udisks: detect changes to removable media'
+            'xmltv: to download tv listings')
+conflicts=('myththemes' 'mythplugins-mythvideo')
+replaces=('myththemes' 'mythplugins-mythvideo')
+install='mythtv.install'
+source=("$pkgname-$pkgver.tar.gz::https://github.com/MythTV/$pkgname/archive/v$pkgver.tar.gz"
+        'mythbackend.service'
+        'http://code.mythtv.org/trac/raw-attachment/ticket/11338/libcec-2-support.2.patch')
+sha256sums=('7e625f94332effeadfba8e7ae7c98d44a83bfc25b7c59e39adce67dc2f4e1e1b'
+            'ecfde779ded8332cc62c86fac6b432b09cbf5d254135798287ada688af9a1302'
+            '8270407c2074b305e0c32151f89c84f6bf980a32665a2da8e4727405fa3911f3')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+
+  find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
+  patch -Np2 -i "$srcdir/libcec-2-support.2.patch"
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+
+  ARCH="${CARCH/_/-}"
+  ./configure --prefix=/usr \
+              --cpu="$ARCH" \
+              --disable-altivec \
+              --disable-audio-jack \
+              --disable-ccache \
+              --disable-distcc \
+              --enable-libfftw3 \
+              --enable-libmp3lame \
+              --enable-libvpx \
+              --enable-libx264 \
+              --enable-vaapi \
+              --python=python2 \
+              --perl-config-opts=INSTALLDIRS=vendor
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver/$pkgname"
+  make INSTALL_ROOT="$pkgdir" install
+
+  install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
+  install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
+
+  mkdir -p "$pkgdir/usr/share/mythtv"
+  cp -R 'contrib' "$pkgdir/usr/share/mythtv"
+  mkdir -p "$pkgdir/var/log/mythtv"
+}

Deleted: community-x86_64/mythbackend.service
===================================================================
--- community-x86_64/mythbackend.service	2015-07-17 16:15:04 UTC (rev 137065)
+++ community-x86_64/mythbackend.service	2015-07-17 16:15:16 UTC (rev 137066)
@@ -1,15 +0,0 @@
-[Unit]
-Description=MythTV Backend
-Wants=network-online.target
-After=network.target mysqld.service
-
-[Service]
-Type=simple
-Environment=HOME=/var/lib/mythtv
-User=mythtv
-ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
-ExecStop=/usr/bin/mythshutdown --setscheduledwakeup
-#ExecStop=/usr/bin/mythshutdown --shutdown
-
-[Install]
-WantedBy=multi-user.target

Copied: mythtv/repos/community-x86_64/mythbackend.service (from rev 137065, mythtv/trunk/mythbackend.service)
===================================================================
--- community-x86_64/mythbackend.service	                        (rev 0)
+++ community-x86_64/mythbackend.service	2015-07-17 16:15:16 UTC (rev 137066)
@@ -0,0 +1,15 @@
+[Unit]
+Description=MythTV Backend
+Wants=network-online.target
+After=network.target mysqld.service
+
+[Service]
+Type=simple
+Environment=HOME=/var/lib/mythtv
+User=mythtv
+ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
+ExecStop=/usr/bin/mythshutdown --setscheduledwakeup
+#ExecStop=/usr/bin/mythshutdown --shutdown
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/mythtv.install
===================================================================
--- community-x86_64/mythtv.install	2015-07-17 16:15:04 UTC (rev 137065)
+++ community-x86_64/mythtv.install	2015-07-17 16:15:16 UTC (rev 137066)
@@ -1,22 +0,0 @@
-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
-
-	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"
-
-	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."
-
-	getent passwd mythtv &>/dev/null && userdel mythtv >/dev/null
-	getent group mythtv &>/dev/null && groupdel mythtv >/dev/null
-}

Copied: mythtv/repos/community-x86_64/mythtv.install (from rev 137065, mythtv/trunk/mythtv.install)
===================================================================
--- community-x86_64/mythtv.install	                        (rev 0)
+++ community-x86_64/mythtv.install	2015-07-17 16:15:16 UTC (rev 137066)
@@ -0,0 +1,22 @@
+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
+
+	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"
+
+	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."
+
+	getent passwd mythtv &>/dev/null && userdel mythtv >/dev/null
+	getent group mythtv &>/dev/null && groupdel mythtv >/dev/null
+}



More information about the arch-commits mailing list