summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2010-03-16 17:18:49 +0000
committerDaniel Pielmeier <billie@gentoo.org>2010-03-16 17:18:49 +0000
commitf32f1b35eb1e1816cedd680e28967d6fa6a75535 (patch)
tree103bce7d144073ac2704dbe09650be8f1c38379f /www-misc/vdradmin-am
parentRevision bump to make use of the new python eclass functions. (diff)
downloadhistorical-f32f1b35eb1e1816cedd680e28967d6fa6a75535.tar.gz
historical-f32f1b35eb1e1816cedd680e28967d6fa6a75535.tar.bz2
historical-f32f1b35eb1e1816cedd680e28967d6fa6a75535.zip
Version bump. Add myself to maintainers.
Package-Manager: portage-2.1.7.17/cvs/Linux i686
Diffstat (limited to 'www-misc/vdradmin-am')
-rw-r--r--www-misc/vdradmin-am/ChangeLog11
-rw-r--r--www-misc/vdradmin-am/Manifest19
-rw-r--r--www-misc/vdradmin-am/files/vdradmin-3.6.6.conf25
-rw-r--r--www-misc/vdradmin-am/files/vdradmin-3.6.6.init54
-rw-r--r--www-misc/vdradmin-am/files/vdradmin-3.6.6.logrotate9
-rw-r--r--www-misc/vdradmin-am/metadata.xml4
-rw-r--r--www-misc/vdradmin-am/vdradmin-am-3.6.6.ebuild169
7 files changed, 277 insertions, 14 deletions
diff --git a/www-misc/vdradmin-am/ChangeLog b/www-misc/vdradmin-am/ChangeLog
index 02aaeba2d01c..7012ecbcd42f 100644
--- a/www-misc/vdradmin-am/ChangeLog
+++ b/www-misc/vdradmin-am/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for www-misc/vdradmin-am
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/ChangeLog,v 1.6 2010/02/06 19:34:10 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/ChangeLog,v 1.7 2010/03/16 17:18:49 billie Exp $
+
+*vdradmin-am-3.6.6 (16 Mar 2010)
+
+ 16 Mar 2010; Daniel Pielmeier <billie@gentoo.org>
+ +vdradmin-am-3.6.6.ebuild, +files/vdradmin-3.6.6.conf,
+ +files/vdradmin-3.6.6.init, +files/vdradmin-3.6.6.logrotate, metadata.xml:
+ Version bump. Add myself to maintainers.
06 Feb 2010; Matthias Schwarzott <zzam@gentoo.org>
vdradmin-am-3.6.4-r1.ebuild:
@@ -32,7 +39,7 @@
15 Feb 2009; Joerg Bornkessel <hd_brummy@gentoo.org> files/vdradmin-rc-3,
files/vdradmin-4:
added --pidfile for baselayout2 start script part, bug 255423; thanks to
- D. Pillmeier
+ D. Pielmeier
13 Jan 2009; Joerg Bornkessel <hd_brummy@gentoo.org> files/vdradmin-4,
metadata.xml, +vdradmin-am-3.6.4-r1.ebuild:
diff --git a/www-misc/vdradmin-am/Manifest b/www-misc/vdradmin-am/Manifest
index 7c82c91f2d38..1da69b8bd685 100644
--- a/www-misc/vdradmin-am/Manifest
+++ b/www-misc/vdradmin-am/Manifest
@@ -1,21 +1,16 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX confd-2 295 RMD160 292ac9960158dc09b5c31adf85b49c29a5f2ca1b SHA1 07f5964bb3eaa0962d37ae7af0d049246cdb4ac5 SHA256 87d9c7449946c2724e0ddeb4de7c2eeee492b99f813131e47dafd9e860f8649f
+AUX vdradmin-3.6.6.conf 512 RMD160 a293a685c79a3f0fd7eb8c82662d789a3089d2bf SHA1 38ad0d0a7c7c5eefb1b063d2f881720df4462bb8 SHA256 7621749f8bc17b44c036a8f7b592be8fef18e21ce44c4ca2719cf7fb28258df4
+AUX vdradmin-3.6.6.init 1955 RMD160 274b9b7c3126bf862979e6a6f19fa896a10dd091 SHA1 1b638b66de1152cc683692b245eece0660b69bfb SHA256 dfedc67f728b0275c095d64975754e230c10859089270b55860888fec9a4977c
+AUX vdradmin-3.6.6.logrotate 116 RMD160 bf4e29e03b515306521a9e5c8e20445622ff4ea0 SHA1 99d26a22124c7d3821b4871fc3aa5914b90b97c0 SHA256 2eb705ff7ab186d2a0287d3e91afe7d59be39f896fd9a62d875d8f13db1312af
AUX vdradmin-4 1233 RMD160 69642b2cd806403bc35c5793320c69e9667e47b7 SHA1 f0ae719ac48d2f5a6b28fcf881546a6508297dd1 SHA256 a2389c1f3ba47885a2711c407b876c067b3a2867fbcddc4c05fc54d9eadf08e3
AUX vdradmin-am-config-autoflush.diff 654 RMD160 f6d0a31c424c6a45d8786d2b98e9872e5e3ded5f SHA1 1a4b61fa0c218cecffb6530cabe5c59577b1df67 SHA256 1687001c6114cb373643982fb73a78e7656c70d253e9ff0d89b7ed466133f950
AUX vdradmin-rc-3 1243 RMD160 fb8930b6a54b087d396d8da5cf30c0f52ad5d99b SHA1 d2a43268d548811bb303b3e3a0e3f85efbe9c9d9 SHA256 b26fe417beaa7332a876928aa5f9effc5ee925ad85da9a6351ad299c9eb5f808
DIST vdradmin-am-3.6.2.tar.bz2 685651 RMD160 5b01d0da1305093e6da35728f13af5671db02bcd SHA1 3b71d1a87639995a1b716986c9f8fa9a2a7c9410 SHA256 53821d339b3e17f42948a68baa289134d6f79f41cef96db13bb14b4cbf69f188
DIST vdradmin-am-3.6.4.tar.bz2 718142 RMD160 e8e4f6da9b20e5696598ac1493549a154ebb9f7b SHA1 c65ca82df04891ac3b71d3e46e0d2b6d4355bd4f SHA256 aa956001b47feaaf7297d89fb15bfc17eeeb2c6125123abe7ce134e7d0ceb6b0
+DIST vdradmin-am-3.6.6.tar.bz2 662288 RMD160 35a1e6eed8c9ca542256360288059119741db9dc SHA1 5d02f7007f9a2fbd9d930c47e44d25c334cc1f39 SHA256 08ceaca45e860f61ce363e46e134d77d4c03a630f2309f2dfca66c07788b988e
EBUILD vdradmin-am-3.6.2.ebuild 4590 RMD160 f9bf969cd3a2bb91f6b189f17085dd8a0290eff9 SHA1 940d5b371f9bf0a4de96f7a4a90135c9d71e16b3 SHA256 39e29dac5cac8c1229c39b4dd3a9eade1c59755787862685f3583b263ac20b3e
EBUILD vdradmin-am-3.6.4-r1.ebuild 4870 RMD160 610d40fe6e8373fc43a592d65226d31d6c61458f SHA1 bbe9d3c8bda17f8537c5eb6dd18ded292ed5d616 SHA256 fade8f6f14a37749581b40c87dec4564e09f51927df7c1dc50512fd3d529b48c
EBUILD vdradmin-am-3.6.4.ebuild 4613 RMD160 828c18566360097fc36d4e7b3cbda6dd2cf6765c SHA1 83bd267f4e7acd88e952794abac15439dad427f8 SHA256 37e728941a57e75fb28be9f0f3b2af8f4a12f9442d6a02996d479dd33fedaa86
-MISC ChangeLog 7593 RMD160 d3d1147d69940734a8b91ba6cb8f5f9b9f1a5d7c SHA1 8f52d8107c52c647587c872b36606854204156e3 SHA256 ce72fc41bbdfa77a2d059a798b46a56b1796c81edd0e2fc6d5fbbfdc4b410c04
-MISC metadata.xml 652 RMD160 c1c8a6d8b9632d603faace3e12b8d8f44afe8b5e SHA1 9eaeaf7403a8221c85d71615e2457be10796e98f SHA256 40a987f0caed004be4922c4d2a5f96472db5dc68aede439e3541a35c6ee8d412
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.14 (GNU/Linux)
-
-iEYEARECAAYFAkttxCoACgkQt2vP6XvVdOfsRwCgxYxDNyG/p+BQM1CRopLxMBAB
-nFIAoKSpob2+ARxT85rYpIFfoq4HdEBW
-=ULUJ
------END PGP SIGNATURE-----
+EBUILD vdradmin-am-3.6.6.ebuild 4450 RMD160 64fa092f6463cccc7f4bae53deb7bad502ee1ae7 SHA1 c955d2481a4fbe584c6d34d0934e02d6f28467fd SHA256 5a07eb2b4ebacd8e6425860dcc99b5fa1a6368bfbfb911a14e3b5f6fbf960fcb
+MISC ChangeLog 7859 RMD160 83bee5efcbbdb6bf6c68fa39483ea56dee602229 SHA1 cc322481bd43281ebe7b2e6953a9d31af76cbff4 SHA256 9950cae916e110732af4a242b3c59a0a9c962f1b0a690d06915a3edcf026d07f
+MISC metadata.xml 748 RMD160 ce0254901737f368bfeb829b70d30c271c25bf14 SHA1 0ba36d4140d383486008e64ac7b9c84ce4c73cc6 SHA256 eb1d48cf2b7dfb0b9810fb1ce3c76fdd25c00fd1e4a93dfdf4b89b04f8024470
diff --git a/www-misc/vdradmin-am/files/vdradmin-3.6.6.conf b/www-misc/vdradmin-am/files/vdradmin-3.6.6.conf
new file mode 100644
index 000000000000..d678490505f5
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmin-3.6.6.conf
@@ -0,0 +1,25 @@
+# Settings for vdradmin-am
+
+# Run vdradmin-am as this user:
+#
+# If you want vdradmin to run on a port below 1024 you
+# should nevertheless have vdradmin running as root.
+#
+VDRADMIN_USER="vdradmin"
+
+# Use ssl connection
+# Allowed values: yes no
+#SSL=no
+
+# Use the ipv6 protocol [EXPERIMENTAL]
+# Allowed values: yes no
+#IPV6=no
+
+# Enable Logging
+# Allowed values: syslog file no
+# Setting this value to file will log to /var/log/vdradmin/vdradmind.log
+#LOGGING=no
+
+# Set loglevel
+# Allowed values: 0-7
+#LOGLEVEL=4
diff --git a/www-misc/vdradmin-am/files/vdradmin-3.6.6.init b/www-misc/vdradmin-am/files/vdradmin-3.6.6.init
new file mode 100644
index 000000000000..2d689c803ca9
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmin-3.6.6.init
@@ -0,0 +1,54 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/files/vdradmin-3.6.6.init,v 1.1 2010/03/16 17:18:47 billie Exp $
+
+depend() {
+ use vdr
+}
+
+start() {
+ ebegin "Starting vdradmin"
+
+ : ${VDRADMIN_USER:=vdradmin}
+
+ local vdradmin_opts
+ if [ "${SSL}" = "yes" ]; then vdradmin_opts="${vdradmin_opts} --ssl"; fi
+ if [ "${IPV6}" = "yes" ]; then vdradmin_opts="${vdradmin_opts} --ipv6"; fi
+ vdradmin_opts="${vdradmin_opts} --log ${LOGLEVEL:=4}"
+
+ if [ "${LOGGING}" = "syslog" ]; then
+ sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 1-" /etc/vdradmin/vdradmind.conf
+ sed -i -e "/LOGFILE/s-LOGFILE.*-LOGFILE = syslog-" /etc/vdradmin/vdradmind.conf
+ elif [ "${LOGGING}" = "file" ]; then
+ local logfile=/var/log/vdradmin/vdradmind.log
+ sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 1-" /etc/vdradmin/vdradmind.conf
+ sed -i -e "/LOGFILE/s-LOGFILE.*-LOGFILE = vdradmind.log-" /etc/vdradmin/vdradmind.conf
+ if [ ! -e ${logfile} ] ; then touch ${logfile}; fi
+ else
+ sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 0-" /etc/vdradmin/vdradmind.conf
+ fi
+
+ # Guarantee that vdradmin can access its dirs
+ chown -R "${VDRADMIN_USER}:vdradmin" /var/cache/vdradmin
+ chown -R "${VDRADMIN_USER}:vdradmin" /var/log/vdradmin
+ chown -R "${VDRADMIN_USER}:vdradmin" /var/run/vdradmin
+ chown -R "${VDRADMIN_USER}:vdradmin" /etc/vdradmin
+
+ if [ -x /etc/init.d/root ]; then
+ # running on baselayout-2/openrc
+ start-stop-daemon --start --background --user "${VDRADMIN_USER}" \
+ --pidfile /var/run/vdradmin/vdradmind.pid \
+ --exec /usr/bin/perl /usr/bin/vdradmind -- ${vdradmin_opts}
+ else
+ start-stop-daemon --start --background --chuid "${VDRADMIN_USER}" \
+ --exec /usr/bin/vdradmind -- ${vdradmin_opts}
+ fi
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping vdradmin"
+ start-stop-daemon --stop --quiet --pidfile /var/run/vdradmin/vdradmind.pid
+ eend $?
+}
diff --git a/www-misc/vdradmin-am/files/vdradmin-3.6.6.logrotate b/www-misc/vdradmin-am/files/vdradmin-3.6.6.logrotate
new file mode 100644
index 000000000000..a4f726c63c15
--- /dev/null
+++ b/www-misc/vdradmin-am/files/vdradmin-3.6.6.logrotate
@@ -0,0 +1,9 @@
+/var/log/vdradmin/vdradmind.log {
+ compress
+ rotate 4
+ weekly
+ delaycompress
+ copytruncate
+ missingok
+ notifempty
+}
diff --git a/www-misc/vdradmin-am/metadata.xml b/www-misc/vdradmin-am/metadata.xml
index 613721190802..5ffae08572bd 100644
--- a/www-misc/vdradmin-am/metadata.xml
+++ b/www-misc/vdradmin-am/metadata.xml
@@ -6,6 +6,10 @@
<email>vdr@gentoo.org</email>
<name>Gentoo VDR Project</name>
</maintainer>
+ <maintainer>
+ <email>billie@gentoo.org</email>
+ <name>Daniel Pielmeier</name>
+ </maintainer>
<longdescription lang="en">
To program and steer central service over a Browser the VDR
</longdescription>
diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.6.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.6.ebuild
new file mode 100644
index 000000000000..aa1b2f5fa9ff
--- /dev/null
+++ b/www-misc/vdradmin-am/vdradmin-am-3.6.6.ebuild
@@ -0,0 +1,169 @@
+# Copyright 1999-2010 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.6.ebuild,v 1.1 2010/03/16 17:18:49 billie Exp $
+
+EAPI=2
+
+inherit eutils ssl-cert
+
+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/download/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="LGPL-2.1"
+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
+LOG_DIR=/var/log/vdradmin
+PID_DIR=/var/run/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() {
+ enewuser ${VDRADMIN_USER} -1 /bin/bash ${CACHE_DIR} ${VDRADMIN_GROUP}
+ enewgroup ${VDRADMIN_GROUP}
+
+ if ! use vdr; then
+ elog
+ elog "You can run vdradmin-am outside a vdr install. For minimal"
+ elog "functionality you need access to the epg.data file of your VDR."
+ fi
+}
+
+src_prepare() {
+ sed -i vdradmind.pl \
+ -e "/COMPILE_DIR/s-/tmp-${CACHE_DIR}-" \
+ -e "s-FILES_IN_SYSTEM = 0;-FILES_IN_SYSTEM = 1;-g"
+}
+
+src_configure() { : ; }
+
+src_compile() { : ; }
+
+src_install() {
+ newinitd "${FILESDIR}"/vdradmin-${PV}.init vdradmin
+ newconfd "${FILESDIR}"/vdradmin-${PV}.conf vdradmin
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/vdradmin-${PV}.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 HISTORY INSTALL README* REQUIREMENTS FAQ ChangeLog
+ docinto contrib
+ dodoc "${S}"/contrib/*
+
+ diropts "-m755 -o ${VDRADMIN_USER} -g ${VDRADMIN_GROUP}"
+ keepdir "${ETC_DIR}"
+ keepdir "${CACHE_DIR}"
+ keepdir "${LOG_DIR}"
+ keepdir "${PID_DIR}"
+ use ssl && keepdir "${CERTS_DIR}"
+}
+
+pkg_preinst() {
+ if [[ -f ${ROOT}${ETC_DIR}/vdradmind.conf ]]; then
+ cp "${ROOT}"${ETC_DIR}/vdradmind.conf "${D}"${ETC_DIR}/vdradmind.conf
+ else
+ elog
+ elog "Creating a new config-file."
+ echo
+
+ cat <<-EOF > "${D}"${ETC_DIR}/vdradmind.conf
+ VDRCONFDIR = /etc/vdr
+ VIDEODIR = /var/vdr/video
+ EPG_FILENAME = /var/vdr/video/epg.data
+ EPGIMAGES = /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 vdradmin-am\" 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 -m0400 "${base}.key" "${ROOT}${CERTS_DIR}/server-key.pem"
+ install -m0444 "${base}.crt" "${ROOT}${CERTS_DIR}/server-cert.pem"
+ fi
+ fi
+
+ elog
+ elog "To extend vdradmin-am you can emerge"
+ elog ">=media-plugins/vdr-epgsearch-0.9.25 to search the EPG"
+ elog "media-plugins/vdr-streamdev for livetv streaming"
+ elog "media-video/vdr with USE=\"liemikuutio\" to rename recordings"
+ elog "on the machine running the VDR you connect to with vdradmin-am."
+}
+
+pkg_config() {
+ /usr/bin/vdradmind -c
+}