summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2014-04-19 18:08:49 +0000
committerPacho Ramos <pacho@gentoo.org>2014-04-19 18:08:49 +0000
commitbb60a461d947a1fec8757cd38f635b0309610ce5 (patch)
tree89004065afb7fb8dc42a441da452589bd9534fba /www-misc
parentVersion bump. (diff)
downloadhistorical-bb60a461d947a1fec8757cd38f635b0309610ce5.tar.gz
historical-bb60a461d947a1fec8757cd38f635b0309610ce5.tar.bz2
historical-bb60a461d947a1fec8757cd38f635b0309610ce5.zip
Add unit file (#507736 by Joachim Herb)
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'www-misc')
-rw-r--r--www-misc/vdradmin-am/ChangeLog9
-rw-r--r--www-misc/vdradmin-am/Manifest12
-rw-r--r--www-misc/vdradmin-am/files/vdradmind.conf2
-rw-r--r--www-misc/vdradmin-am/files/vdradmind.service14
-rw-r--r--www-misc/vdradmin-am/vdradmin-am-3.6.9-r1.ebuild163
5 files changed, 193 insertions, 7 deletions
diff --git a/www-misc/vdradmin-am/ChangeLog b/www-misc/vdradmin-am/ChangeLog
index cd9b7f95d716..3bf5304bbed6 100644
--- a/www-misc/vdradmin-am/ChangeLog
+++ b/www-misc/vdradmin-am/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-misc/vdradmin-am
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/ChangeLog,v 1.31 2014/04/12 18:40:30 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/ChangeLog,v 1.32 2014/04/19 18:08:48 pacho Exp $
+
+*vdradmin-am-3.6.9-r1 (19 Apr 2014)
+
+ 19 Apr 2014; Pacho Ramos <pacho@gentoo.org> +files/vdradmind.conf,
+ +files/vdradmind.service, +vdradmin-am-3.6.9-r1.ebuild:
+ Add unit file (#507736 by Joachim Herb)
12 Apr 2014; Joerg Bornkessel <hd_brummy@gentoo.org>
-vdradmin-am-3.6.8.ebuild:
@@ -319,4 +325,3 @@
14 Jul 2006; Joerg Bornkessel <hd_brummy@gentoo.org> +files/vdradmin,
+metadata.xml, +vdradmin-am-3.4.6.ebuild:
initial import; find older versions on gentoo.de overlay
-
diff --git a/www-misc/vdradmin-am/Manifest b/www-misc/vdradmin-am/Manifest
index aa4b12f1fcbb..133d5d699547 100644
--- a/www-misc/vdradmin-am/Manifest
+++ b/www-misc/vdradmin-am/Manifest
@@ -4,15 +4,17 @@ Hash: SHA256
AUX vdradmin-3.6.6.conf 557 SHA256 4208bf776bb594e373f0fe215a285f0a4523ce65b083505f15bd501b27c7aa01 SHA512 253ad76deb8c4b5d8ca69464381a7322efa6c638bb78049db8dce3dfc44aaa9a36e37ac62d0ac945418dd4afbde573b0b11ecab3ace149c06a8ded2c4832afe6 WHIRLPOOL 31065d079f6f6367220f288e572853776d3abc3a3bf94328f3dd409c6e3b703f40a950bf7b66f1d78b26eccb0735197302798352ef8e46a01706d1f8f8b2c39c
AUX vdradmin-3.6.6.logrotate 116 SHA256 2eb705ff7ab186d2a0287d3e91afe7d59be39f896fd9a62d875d8f13db1312af SHA512 27d730b67210adf314c53e87fb4ba7e6ab0a1461db0f8ddb517878341badcb27531eaedc8034ba2e72572bbaa8db07c61781be6063aaee7ef63043d4d5979b98 WHIRLPOOL 3c80e6c95a447ed23697b454b4176a72a4f30282d77eee0278c0b8038ce95853982d67aec16cf88f50636a51b64b66666d241bd9e01421b78d04e3adec5787c9
AUX vdradmin-3.6.7.init 1988 SHA256 d903fb0ee336a9bd8c27054c89c5493465d38fd7f9089eb4759ef8b7fd862bc5 SHA512 2703b738450cdd33eb30ccf235f4aaa09f8913100005931a73e6bf8227e20fdb32902f2653d2b805f8ddd83bd99554972d3ea696c18c934e7e227fdb2337a0e4 WHIRLPOOL 3a740e7b7187a7b814f77578dbd648fcdc36d8e8013af6d142ad07ec1058fb8ddbe702fa95c4ce1c9e27d9be62ffbd88d1addef894b1d545c3cabc6841351a1c
+AUX vdradmind.conf 92 SHA256 e1ca8d661db9b3077495b2b51e1292e3dda531d840cbce0170f1b6d0597c3b05 SHA512 d54253b0eb684dfcfa924e141b5f0975cea659f3258a519afd625e692855de45d9c863a8d9eb11d4b16597fa76eee955694350f224b443733b238071b3ad9d16 WHIRLPOOL f5362fd588a1a8c202be29a923f6454f1ed45a94ed305e1858921f372b166455fbca56e7bd2ac0da5cb1a33d99be056d52705699c713bea53af4c48830c66640
+AUX vdradmind.service 296 SHA256 76bf69f556d4210194fb7683efc1ff70b88ae226e3617769ab8616c88ff597c9 SHA512 996d6f1cbf1bc7f194b1087d900e7e1ce2d96a0866b39a9eefa51f81040627a5305c5ae42bc7692f44562ffe6697768fa715fb866e84290d06f08d3d8f6545ab WHIRLPOOL 44a692ca0a13c5d2924e78fd997698b88d1340d33b006a568679222618c67fe9684cb5f986a317870886b16d296a241bcf6a655fa83d62668169fa3a1c0c843f
DIST vdradmin-am-3.6.9.tar.bz2 562006 SHA256 5f0421ca0ea2b4c7669d5332d43b04af8b0c40d2964dd152a265c18f4d7f2715 SHA512 1c84ce56da238db6ab2a2fc3d59582945440436e174b3998c21b6bcb5b99c914a195728aa24fef7de8841c3be09b6e9976497acd873e768aab5fdaacddd473d5 WHIRLPOOL 25f21395fda80a35b7e67fdcf1bdf2a789af73ba59c049d3604da8ecd4863e85c2e551334757d0ac53bfc33d128747ee570520171648be3818a406baa23b0737
+EBUILD vdradmin-am-3.6.9-r1.ebuild 4545 SHA256 5383a4cf34e0653c8f20919ebb1959e5be5d3e0cf34b0a11fe0546f69c65f9a9 SHA512 bbb49145cfeb2d58c77c79a496522dd737770bc798747d085527d6be66eae21a8bc2f8cf6f59079151cb5eb4153c9445e701a0a8baa1815d03747f96841bcc0d WHIRLPOOL 7bfcec24cf1fc04236fbff6aa672c5e39e0ecb6f7348f8a8794d458d4a16ccb37eded6568629f4036bbc297f2e460ba099edd46ab01b8cc210e4bfecbcb5c9f1
EBUILD vdradmin-am-3.6.9.ebuild 4438 SHA256 1840487b88c8ec9e0035ac18bca85bb3e51dee44962830beb2f34ff0e0a65bd8 SHA512 cf84e621d1c8431f7de44d722bd43b00953d3b717129edc840dbe4f5056346a73760315b64d12a4a9c93708ab21a7335b2a4c5df6319ea4544bdff42c0dc4b5c WHIRLPOOL e0be3a2eb44435bac57ef48ccf209a968eecab3255efa0dea594dab730b4fdb8d79ec7c57b9747ec2b666015bb7dbb108916f4d1439af7e6fbe5ad2b2df5084f
-MISC ChangeLog 11133 SHA256 02221c6f97a2b14330c1b3b163d23e6a6f6a00893c8355016e288d762e2bd9f0 SHA512 7f045caaf7efcbac64f0df768dc4d9567017c22ad940f9cd116e4576f6ac226b60fd6f711e850da98c30faf40d95eae6ae811e7cacacf68f4725dc70f9211fa3 WHIRLPOOL 6d8b148fab485624ee470e2f3e4c7d955a00e7656f20b6de83227b839f05ab0c697284397fc8d78e743d8a32563609a0fe7c5332f399a3f40bdbc47f133c29b5
+MISC ChangeLog 11335 SHA256 5cc3b6e037fdb7a377fb5e23849023bbfd21b1f166132a26d484bf20f0b6a92b SHA512 c0eac6dbd44d59f57a08c150997d506bd895b2cd6a778a488db4ff632a708cead4c4a702c71c776f802dcda81b97a6a2973f3212b789aa1741b8a0e412600cf7 WHIRLPOOL 6a9595eb1382c850cbfcbe428fe825abb6d88a7bdb615456baaf5a96b0772abfe8779b25fc84445b684bc089971ca0e66fd133f13898ff43a80d3238f57c318e
MISC metadata.xml 652 SHA256 40a987f0caed004be4922c4d2a5f96472db5dc68aede439e3541a35c6ee8d412 SHA512 3803d4ebf228328849889e188f7e69d2d58e760ef0798f33a312e709672fa46e1ae8a3ea0f68946d4b98aa9c378d1e6549290c85fc75708eaa02cac145e3ceb6 WHIRLPOOL df37f3b6b8be798811eddc5a68d3543632a22ea1e7860ac7a16a8e089e46c01831d6b398e889f84ad40412e010300e55023f2e213a07f6e96c157d3c537a1ae7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-Comment: added by hd_brummy@gentoo.org
-iD8DBQFTSYijdn07HTTCgIoRCMdFAKC6CrnJqtZHtk/oBLefM2Tq1Iu4CACfZn+Q
-q7IcjYmrWkh6UTs+rdglZQM=
-=/xO3
+iEYEAREIAAYFAlNSu7EACgkQCaWpQKGI+9RlWQCfb/i48+/hWCmzRfhJYckWX4pO
+EwMAnRuQf9kYvhB7p8x+kYM6Oldi1ooI
+=FCtv
-----END PGP SIGNATURE-----
diff --git a/www-misc/vdradmin-am/files/vdradmind.conf b/www-misc/vdradmin-am/files/vdradmind.conf
new file mode 100644
index 000000000000..a5208a89b1b9
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmind.conf
@@ -0,0 +1,2 @@
+d /var/cache/vdradmin 0755 vdradmin vdradmin -
+d /var/log/vdradmin 0755 vdradmin vdradmin -
diff --git a/www-misc/vdradmin-am/files/vdradmind.service b/www-misc/vdradmin-am/files/vdradmind.service
new file mode 100644
index 000000000000..49dea3e2c257
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmind.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=WWW interface daemon for VDR
+Documentation=man:vdradmind(8)
+Documentation=file:///usr/share/doc/vdradmin-am/INSTALL
+After=vdr.service
+
+[Service]
+ExecStart=/usr/bin/vdradmind --nofork
+User=vdradmin
+StandardOutput=syslog
+SyslogLevel=warning
+
+[Install]
+WantedBy=multi-user.target
diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.9-r1.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.9-r1.ebuild
new file mode 100644
index 000000000000..129cbed3c2e5
--- /dev/null
+++ b/www-misc/vdradmin-am/vdradmin-am-3.6.9-r1.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/vdradmin-am-3.6.9-r1.ebuild,v 1.1 2014/04/19 18:08:48 pacho Exp $
+
+EAPI="5"
+
+inherit eutils ssl-cert systemd user
+
+DESCRIPTION="WWW Admin for the Video Disk Recorder"
+HOMEPAGE="http://andreas.vdr-developer.org/vdradmin-am/index.html"
+SRC_URI="http://andreas.vdr-developer.org/vdradmin-am/download/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ipv6 ssl +vdr"
+
+DEPEND="dev-lang/perl
+ dev-perl/Template-Toolkit
+ dev-perl/libwww-perl
+ dev-perl/URI
+ dev-perl/Locale-gettext
+ virtual/perl-IO-Compress
+ ipv6? ( dev-perl/IO-Socket-INET6 )
+ ssl? ( dev-perl/IO-Socket-SSL )
+ vdr? ( media-video/vdr )
+ perl-core/libnet
+ dev-perl/Authen-SASL
+ dev-perl/Digest-HMAC"
+RDEPEND="${DEPEND}"
+
+ETC_DIR=/etc/vdradmin
+CERTS_DIR=/etc/vdradmin/certs
+LIB_DIR=/usr/share/vdradmin
+CACHE_DIR=/var/cache/vdradmin
+VDRADMIN_USER=vdradmin
+VDRADMIN_GROUP=vdradmin
+
+create_ssl_cert() {
+ # The ssl-cert eclass is not flexible enough so do some steps manually
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-vdradmin-am}"
+ SSL_COMMONNAME="${SSL_COMMONNAME:-`hostname -f`}"
+
+ gen_cnf || return 1
+
+ gen_key 1 || return 1
+ gen_csr 1 || return 1
+ gen_crt 1 || return 1
+}
+
+pkg_setup() {
+ enewgroup ${VDRADMIN_GROUP}
+ enewuser ${VDRADMIN_USER} -1 /bin/bash ${CACHE_DIR} ${VDRADMIN_GROUP}
+}
+
+src_prepare() {
+ sed -i vdradmind.pl \
+ -e "s-FILES_IN_SYSTEM = 0;-FILES_IN_SYSTEM = 1;-g" || die
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/vdradmin-3.6.7.init vdradmin
+ newconfd "${FILESDIR}"/vdradmin-3.6.6.conf vdradmin
+ systemd_dounit "${FILESDIR}"/vdradmind.service
+ systemd_dotmpfilesd "${FILESDIR}"/vdradmind.conf
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/vdradmin-3.6.6.logrotate vdradmin
+
+ newbin vdradmind.pl vdradmind
+
+ insinto ${LIB_DIR}/template
+ doins -r "${S}"/template/*
+
+ insinto ${LIB_DIR}/lib/Template/Plugin
+ doins -r "${S}"/lib/Template/Plugin/JavaScript.pm
+
+ insinto /usr/share/locale/
+ doins -r "${S}"/locale/*
+
+ newman vdradmind.pl.1 vdradmind.8
+
+ dodoc CREDITS ChangeLog FAQ HISTORY INSTALL README* REQUIREMENTS
+ docinto contrib
+ dodoc "${S}"/contrib/*
+
+ diropts "-m755 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP}"
+ keepdir ${ETC_DIR}
+ use ssl && keepdir ${CERTS_DIR}
+}
+
+pkg_preinst() {
+ install -m 0644 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} /dev/null \
+ "${D}"${ETC_DIR}/vdradmind.conf || die
+
+ if [[ -f "${ROOT}"${ETC_DIR}/vdradmind.conf ]]; then
+ cp "${ROOT}"${ETC_DIR}/vdradmind.conf \
+ "${D}"${ETC_DIR}/vdradmind.conf || die
+ else
+ elog
+ elog "Creating a new config-file."
+ echo
+
+ cat <<-EOF > "${D}"${ETC_DIR}/vdradmind.conf
+ VDRCONFDIR = "${ROOT%/}"/etc/vdr
+ VIDEODIR = "${ROOT%/}"/var/vdr/video
+ EPG_FILENAME = "${ROOT%/}"/var/vdr/video/epg.data
+ EPGIMAGES = "${ROOT%/}"/var/vdr/video/epgimages
+ PASSWORD = gentoo-vdr
+ USERNAME = gentoo-vdr
+ EOF
+ # Feed it with newlines
+ yes "" \
+ | "${D}"/usr/bin/vdradmind --cfgdir "${D}"${ETC_DIR} --config \
+ |sed -e 's/: /: \n/g'
+
+ [[ ${PIPESTATUS[1]} == "0" ]] \
+ || die "Failed to create initial configuration."
+
+ elog
+ elog "Created default user/password: gentoo-vdr/gentoo-vdr"
+ elog
+ elog "You can run \"emerge --config ${PN}\" if the default-values"
+ elog "do not match your installation or change them in the Setup-Menu"
+ elog "of the Web-Interface."
+ fi
+}
+
+pkg_postinst() {
+ if use ipv6; then
+ elog
+ elog "To make use of the ipv6 protocol"
+ elog "you need to enable it in ${ROOT%/}/etc/conf.d/vdradmin"
+ fi
+
+ if use ssl; then
+ elog
+ elog "To use ssl connection to your vdr"
+ elog "you need to enable it in ${ROOT%/}/etc/conf.d/vdradmin"
+
+ if [[ ! -f "${ROOT}"${CERTS_DIR}/server-cert.pem || \
+ ! -f "${ROOT}"${CERTS_DIR}/server-key.pem ]]; then
+ create_ssl_cert
+ local base=$(get_base 1)
+ install -D -m 0400 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} \
+ "${base}".key "${ROOT}"${CERTS_DIR}/server-key.pem || die
+ install -D -m 0444 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP} \
+ "${base}".crt "${ROOT}"${CERTS_DIR}/server-cert.pem || die
+ fi
+ fi
+
+ elog
+ elog "To extend ${PN} you can emerge"
+ elog ">=media-plugins/vdr-epgsearch-0.9.25 to search the EPG,"
+ elog "media-plugins/vdr-streamdev for livetv streaming and/or"
+ elog "media-video/vdr with USE=\"liemikuutio/vasarajanauloja/none\" "
+ elog "(depend on your vdr version) to rename recordings"
+ elog "on the machine running the VDR you connect to with ${PN}."
+}
+
+pkg_config() {
+ "${ROOT}"/usr/bin/vdradmind -c
+}