summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2010-07-12 20:35:16 +0000
committerDaniel Pielmeier <billie@gentoo.org>2010-07-12 20:35:16 +0000
commit2f604685c7e4007e5b6242c7263b029469e4e28f (patch)
treeb6149c037c40adc6413eda3274263a0787675ba6 /www-misc
parentRemove old. (diff)
downloadgentoo-2-2f604685c7e4007e5b6242c7263b029469e4e28f.tar.gz
gentoo-2-2f604685c7e4007e5b6242c7263b029469e4e28f.tar.bz2
gentoo-2-2f604685c7e4007e5b6242c7263b029469e4e28f.zip
Remove old.
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'www-misc')
-rw-r--r--www-misc/vdradmin-am/ChangeLog6
-rw-r--r--www-misc/vdradmin-am/vdradmin-am-3.6.6.ebuild169
2 files changed, 5 insertions, 170 deletions
diff --git a/www-misc/vdradmin-am/ChangeLog b/www-misc/vdradmin-am/ChangeLog
index dbdce079041f..3153764a8d4a 100644
--- a/www-misc/vdradmin-am/ChangeLog
+++ b/www-misc/vdradmin-am/ChangeLog
@@ -1,6 +1,10 @@
# 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.9 2010/04/22 17:11:25 billie Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/ChangeLog,v 1.10 2010/07/12 20:35:16 billie Exp $
+
+ 12 Jul 2010; Daniel Pielmeier <billie@gentoo.org>
+ -vdradmin-am-3.6.6.ebuild:
+ Remove old.
22 Apr 2010; Daniel Pielmeier <billie@gentoo.org>
files/vdradmin-3.6.6.init:
diff --git a/www-misc/vdradmin-am/vdradmin-am-3.6.6.ebuild b/www-misc/vdradmin-am/vdradmin-am-3.6.6.ebuild
deleted file mode 100644
index aa1b2f5fa9ff..000000000000
--- a/www-misc/vdradmin-am/vdradmin-am-3.6.6.ebuild
+++ /dev/null
@@ -1,169 +0,0 @@
-# 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
-}