summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Freeman <rich0@gentoo.org>2013-10-23 14:58:00 +0000
committerRichard Freeman <rich0@gentoo.org>2013-10-23 14:58:00 +0000
commitbce49e0f27c1db9bbf89291a0b6cb1365f43c608 (patch)
treee4f6df5327ce7321def61dc43bb77df79297f856 /media-tv
parentbump to 2.0.15 (diff)
downloadhistorical-bce49e0f27c1db9bbf89291a0b6cb1365f43c608.tar.gz
historical-bce49e0f27c1db9bbf89291a0b6cb1365f43c608.tar.bz2
historical-bce49e0f27c1db9bbf89291a0b6cb1365f43c608.zip
Add systemd unit - 482714 - thanks to Stefan G. Weichinger for testing/etc.
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x08C170DE55EC123A
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/mythtv/ChangeLog6
-rw-r--r--media-tv/mythtv/Manifest11
-rw-r--r--media-tv/mythtv/files/mythbackend.service82
-rw-r--r--media-tv/mythtv/mythtv-0.27_p20130924.ebuild7
4 files changed, 97 insertions, 9 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog
index 9a5d809865bd..1a91a34e2e18 100644
--- a/media-tv/mythtv/ChangeLog
+++ b/media-tv/mythtv/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-tv/mythtv
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.406 2013/10/10 16:18:21 rich0 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.407 2013/10/23 14:57:50 rich0 Exp $
+
+ 23 Oct 2013; Richard Freeman <rich0@gentoo.org> mythtv-0.27_p20130924.ebuild,
+ +files/mythbackend.service:
+ Add systemd unit - 482714 - thanks to Stefan G. Weichinger for testing/etc.
10 Oct 2013; Richard Freeman <rich0@gentoo.org> mythtv-0.27_p20130924.ebuild:
Fix vaapi configuration - 487442.
diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest
index a73df80d708d..9f0297cc550c 100644
--- a/media-tv/mythtv/Manifest
+++ b/media-tv/mythtv/Manifest
@@ -6,6 +6,7 @@ AUX libdir-27.patch 586 SHA256 556b665471532472a0d2f579f641968d4ef4b89a04cee0137
AUX libdir.patch 513 SHA256 126e184c8560e89e60c6a1692749247a28e2c5e8e88243dbcd2cf0fe95efa40d SHA512 43aae108ead18a62ed0086aae5b01ace495666661ae1b1e4478fa07f550db197bd07208b3fb58495cbf9a05b116507ca66814930334c8745dce53cb6749f3088 WHIRLPOOL 99514f636764105fc93ddd633124e79cd46a96e541dd6ab29e2bb0ec3526ce8180333b71893e1a7015d1847c43dc97aa7a23702884ea897af7519998b7f2b55a
AUX mythbackend.conf 475 SHA256 1790de4ff212dcd4f9b94ff284d9db6ba9d465cd96cb120c444a34655b99239f SHA512 4e4f349791efcfed4d9d775d4b8b2168cf276ae00ee104bf475aff10872541495d9d204c3f5c42ea75ae13daed81f5cbadb7e41ddcf149c37aeae22ebdf24511 WHIRLPOOL 93745b61cd719d0bafcb33f79fcd9830009c8754d6854d5c826e5a1f79a070bce467e41b71f24432040cdfe04f27594fd68d957608d815b6e1f49164a5832bbe
AUX mythbackend.init 1519 SHA256 3f584044a9b2ef87652feae13dcc4e6fd71d814578381127e1982551e2740a76 SHA512 9d38ecc63ea0e8c1ddae26400ed387bccee6ae8cd46d34a620a653b825e4085653a5bf4f3fb0d198c09040a78ee62aa5c5690b97cc0672522ce31e1426d7515d WHIRLPOOL d44da8b0ca5e75fdc193de5cd99a3f4acfb0c9ff4e2f39b74904a7a30aa837ece797c631292ee7ca9c9e108036b51721d12eea54ec974ee3792d2a56ba6ac577
+AUX mythbackend.service 3425 SHA256 b2d26f0251b4ac54b7edff635a9094bf119cc59ea015e61910cc0e3696429f38 SHA512 541a061c5e30fd63747224281d2603fd4e2a9157b976f103364c6a40ccb85e1919e8793214d1626e4792b152be7273894fa8bde6393dd8d69fcc8e1ceadde822 WHIRLPOOL 0340f9310a7c516f30bf450dc28f2fc034145bafce489dad145c44e05acb4f11dcfc323cbe6cb4496db6ba9e6c3739248b8ffc83732634fad92ec05b660a4a5f
AUX mythfrontend.conf 588 SHA256 ecdfa734fb1232d853a2c56259efa61b79c43df5f0330aa1f4c378a2fe172602 SHA512 7caf0f032ef6204611da6d606313c923dcff72ae2cca0d76f62434d8baf65a5603ce70b815da2bcca04f8442f202c3df2081cfdfcdffbf9b8bb5600be162daa6 WHIRLPOOL c2d3df9c46b31b344b58196e6e2b2d5f15a84bfcbbb78c4c8735f7dd5cc6c4bfad6efef69f00174d8827eba23ca19fe5d80f700323f97597128c6feb713c2391
AUX mythfrontend.wrapper 794 SHA256 db90ac5ff3bec3f2a81f376cc94c553d2cce026fd921bc822a6e3428fd8fa2e0 SHA512 d69676d3b981c76988bbe60277f74028668c851db7db3c37a60ecc95ae18d9f77cd38511fcd3deb95d1f87bf659d7b0bcd7f1dd469801950d28f7b3f6f6947e3 WHIRLPOOL dd47702ed5c130c2c407e1c0b107eac6d9378b0e4635806caed510aba8a38dd65818151eae3bc9ed59055f4f8b1c0c2cb7ddd7f35bdc353bd207ca93979053ae
AUX mythtv.logrotate.d-r3 573 SHA256 07c97a5f83274061eafd371e03f55f9a526fae672f4f1bd6bc47a67317465888 SHA512 515f3fa9064fa97c99872b195b09fe67736194e544d7a348c0ebd3bd04336e7e921bfb72313d9004fad610cd09a94d3dc3cfeff144880d59747bf2c17b8c6458 WHIRLPOOL 12f56707552ab13ef2de6c219d486599b0fa86f93ffe720d012fc5a40ed70d1a7affaf94d4bb6a696163cb0457a108ac58f5ac74f4aaf00a482ede81e9e4d200
@@ -34,13 +35,13 @@ EBUILD mythtv-0.26.0_p20130526.ebuild 9446 SHA256 80980f04c1d2beabca0ca9e278a4ff
EBUILD mythtv-0.26.0_p20130630.ebuild 9445 SHA256 8abb5585ddc80a8a9472725609fffb71c4da485c1eb4c672f0032e5090504af9 SHA512 b7fccfdbb29a7b21abf6edd88b7fed8ccd3cab76b60f036b7448b8292618c457a8c3817d470993d11842d9cd97dbb81f76e2f0c19217c51b0a5f670e787cf0b7 WHIRLPOOL 35b5b30888b47e10dc3ef15bdc7082b7db569791adb6ea1b2215c27e5a9a41590df1a3a88ff595a97cf5e92cc297ce8318114efa2470f122981f915f6e0767fc
EBUILD mythtv-0.26.0_p20130729.ebuild 9446 SHA256 1f37b5c03a5ff5e11c7314713ac9a122f818f93573954d6e98dae9d379184481 SHA512 147321214aa4de8fa57043c3540beaf92b80ad8bc3a34391b12c726a2c4f4a31105ef9eb55b685cc7c8fb15dd99bc248afd87a1ccd5a77fd1030624a3a7cdc9f WHIRLPOOL 203fbf79798ea683e5413e4a4c99225d92f23c3c1b6ad570381d1d8e6e5b91dc326d6c911d66596cecea55dc47d587a03cea8e360ef3426bed5193f331edd8c1
EBUILD mythtv-0.26.0_p20130922.ebuild 9446 SHA256 0a370178ff0f42443eb0567b2184ac7cb0d9a7c9db781462f6de6a4bf7156fb9 SHA512 6e76f13d020a4f0393c592e2ffb8869db074f0614595027e2cc64bf2a9575118abfbc741a24fd8f60a0bc48c98d6ff348ef2fa15c4487350b185e55db869053a WHIRLPOOL a692ab8588feee3034edc205cb6ebca5c8eb673bc76ba0e8c8eb2f786830a293c85634d804257d2b79b0ddacd84167f27d18d3028ed6ba5d31f84033a3741333
-EBUILD mythtv-0.27_p20130924.ebuild 9553 SHA256 4ab32fea1ff7d9f1f01aaab7f79bf537a8f76942da05c1f2d8215029aa765dbe SHA512 74d0f3ad61213a755086dbf6bb8df64aabd4429118e215a580b7b5679859f09bd42fcd95f8f7a65330547a2483ddef241699ac5287561dae4c357e26265c1d2c WHIRLPOOL 774fb2b9ec4f7e602a0b4d36727fdc6a752e99c3137f0f63eeff065b3579ca735c1092cf2fa0c5699290dc6a8e58df3c0cf7355bcb974ee33958a78920d92da5
-MISC ChangeLog 79001 SHA256 7de13b92278a97f2c3d799f55718b7b9a8cca99d342776bbdefd4cfb96ece68d SHA512 01282bdee348cc64c6b878c188f672090ff9dbe0340912ad52336d297bf567f8c1acb1ceff48626675719e64309d9c5faab748de1b806ab2dda8f1ef7ab92932 WHIRLPOOL f08ca87b10877d2c23ec10f86b36cba66fdd9e884c749d5b3f1572560bc7cd1cf6c073d06461ac43ba01ea62987038fad42ffb1a6261ab5a3c6ec6b5eee0a6cd
+EBUILD mythtv-0.27_p20130924.ebuild 9612 SHA256 20672bf5c32f22996589e0d654b4c8a13848286258031a42faaf5b62fe8283ca SHA512 23427550364aba2c2010ccfeba0740f8a02915dfd81479fd9428fada8600f49a305df2a979e0d11568d3dfc293793a31c027ad3375c93baa5209b3edb4fcd792 WHIRLPOOL 2945e4a7440d4253e5694ca8235878533eddfb8c7e1e27f8f462089490ebf3f01456a798d4e461a44d3a5050458ecb02f10454ccce527c48c7e99415431d4893
+MISC ChangeLog 79190 SHA256 cba9c358bc428c8eee364061f83a1ae9a06edbf0f9ce5b8547e75a00a1cddeb6 SHA512 cabc482e7b47a25daef9a46b08db8091c8f91d9da352d431ecb81034722d9e9c6f3258a8b974e748122e4c7b3e72c422e23ac725660bb71be3677e77d8e610c3 WHIRLPOOL 9e0230522f46f16d954cfc97614b58684925a26770a0505e16c1699371c3c9c5c66f97702f767fbb6bd9840c92657cee8a6363641c1b308be8fdf43e15e7c549
MISC metadata.xml 3146 SHA256 497189a8f3879865edf9a272a93180d3132c3ddc5de5c8628e32be70289a7fba SHA512 a0ac5e7d033c8df8b7d49dbfa37f69514451ab2d6276e216eb3bbda0f44602fdea656673cda077f8f06472b11ef2fb9c465d38d6109cb58d3ae1ba78f61d21f1 WHIRLPOOL 0ffe811b665d01aa952580e979c89ce3c65f1b2ecfcc46ec227118d4ecd09efbfc1d85fb8d5296c40dd81473c9abb83a3d0249deddbf05835efc98536bf1790f
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iF4EAREIAAYFAlJW01QACgkQCMFw3lXsEjojqgD+KFDXpqILGVtCdSKORo+xHe0c
-o7mqprlIqBDrXACys9cA/29/b/PNB50/dFGpi+4KqZYq1LLfwMTZSdNov8ixoF+M
-=XPBh
+iF4EAREIAAYFAlJn4/QACgkQCMFw3lXsEjpyyAD/SCHfdlKwJiOi9v9jkUuRrjNe
+ezK9RBhYUvX/Ea7m8KgA/2wvcPD+uIzoZu+QaKY0EhgWROTC3S1FoSp5deAXc40P
+=BmT3
-----END PGP SIGNATURE-----
diff --git a/media-tv/mythtv/files/mythbackend.service b/media-tv/mythtv/files/mythbackend.service
new file mode 100644
index 000000000000..8db861286091
--- /dev/null
+++ b/media-tv/mythtv/files/mythbackend.service
@@ -0,0 +1,82 @@
+# Do not edit this file, it will be replaced on update
+# If you need to make modifications to this unit file first make a copy in # /etc/systemd/system
+
+# This file is part of the packaging of MythTV #
+# MythTV is free software; view http://www.mythtv.org for more information.
+#
+# It is sometimes necessary to wait for a capture device to finish (hot)plug
+# initialization before the backend starts. If this is necessary,
+# create a Wants and After entry for all the capture devices that
+# one wishes to wait to be created before the backend starts using the systemd
+# device name mangling names (/dev/some/thing turns
+# into dev-some-thing.device). These normally should be udev persistent
+# filename rules to avoid confusion.
+# See the MythTV wiki for udev persistent filename # discussions found at:
+# http://www.mythtv.org/wiki/Device_Filenames_and_udev
+#
+# In order to insure that systemd will create a device unit for the
+# capture device, one must insure that udev will have the tag "systemd"
+# (i.e. add TAG+="systemd" to the udev rule).
+#
+# The MythTV package ships with a default udev rule file located in:
+# /lib/udev/rules.d/99-mythbackend.rules
+
+[Unit]
+Description=MythTV backend service
+After=network.target mysqld.service
+# Uncomment the following line if you will be using the mythweb plugin on the
+# same system as mythbackend.
+#Wants=httpd.service
+
+[Service]
+# You have 2 choices for 'Type': simple or forking
+# These require ExecStart lines which are NOT interchangeable.
+# Type=simple is recommended.
+# If using 'Type=simple'
+# 1) you cannot have --daemon in the command line
+
+# If using 'Type=forking'
+# 1) you must have --daemon in the command line AND
+# 2) you must have --pidfile /somewhere in the command line AND
+# 3) you must have a line PIDFILE=/somewhere in the [service] stanza
+# this lets systemd know how to find the forked process PID,
+# otherwise it presumes the starting process will be the remaining process
+# (cf. with the mysqld_safe process which starts mysqld and then disappears).
+# Specifying a pidfile with Type simple does not cause any problems and
+# may help in debugging startup failures.
+
+#Type=forking
+Type=simple
+
+Environment=MYTHCONFDIR=/etc/mythtv
+# Default setting assumes a system wide install. Otherwise it should be set to
+# the folder containing the .mythtv subfolder containing the config.xml file
+# Such as
+Environment=HOME=/usr/share/mythtv
+# or
+Environment=HOME=/~/.mythtv
+
+# systemd changes execution from the calling user (possibly root) to this user
+# if you have permissions problems or obscure errors try logging in as mythtv
+# See notes below
+User=mythtv
+
+# Uncomment one of the following...
+# Use sysloging rather than separate logging:
+#ExecStart=/usr/bin/mythbackend --syslog local7
+
+# If Type=forking you must specify the --daemon and --pidfile options:
+#ExecStart=/usr/bin/mythbackend --daemon --logpath /var/log/mythtv --loglevel crit --pidfile /run/mythtv/mythbackend.pid
+#PIDFILE=/run/mythtv/mythbackend.pid
+
+# Systemd sends stdout to syslog, and mythbackend has console logging enabled without --daemon.
+# Send stdout to /dev/null so console logging doesn't go to syslog
+StandardOutput=null
+# Default setting for Type=simple.
+ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit
+
+# Whether systemd will continue over-watch and restart on any halt
+#Restart=Restart-always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/media-tv/mythtv/mythtv-0.27_p20130924.ebuild b/media-tv/mythtv/mythtv-0.27_p20130924.ebuild
index 3c7a37b30079..0cae0ba68a5d 100644
--- a/media-tv/mythtv/mythtv-0.27_p20130924.ebuild
+++ b/media-tv/mythtv/mythtv-0.27_p20130924.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.27_p20130924.ebuild,v 1.2 2013/10/10 16:18:21 rich0 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.27_p20130924.ebuild,v 1.3 2013/10/23 14:57:50 rich0 Exp $
EAPI=5
@@ -8,7 +8,7 @@ PYTHON_DEPEND="python? 2:2.6"
BACKPORTS="d9561055abeec11fba234c9bdfbde5e79e695803"
MY_P=${P%_p*}
-inherit flag-o-matic multilib eutils python user
+inherit flag-o-matic multilib eutils python user systemd
MYTHTV_VERSION="v0.27"
MYTHTV_BRANCH="fixes/0.27"
@@ -267,7 +267,8 @@ src_install() {
newinitd "${FILESDIR}"/mythbackend.init mythbackend
newconfd "${FILESDIR}"/mythbackend.conf mythbackend
-
+ systemd_dounit "${FILESDIR}"/mythbackend.service
+
dodoc keys.txt
keepdir /etc/mythtv