diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild')
-rw-r--r-- | media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild b/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild new file mode 100644 index 00000000000..3b226ddf04a --- /dev/null +++ b/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit vdr-plugin-2 ssl-cert + +DESCRIPTION="VDR Plugin: Web Access To Settings" +HOMEPAGE="http://live.vdr-developer.org" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + http://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pcre ssl" + +DEPEND="media-video/vdr + >=dev-libs/tntnet-2.2.1[ssl=] + >=dev-libs/cxxtools-2.2.1 + pcre? ( >=dev-libs/libpcre-8.12[cxx] )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}" + +VDR_CONFD_FILE="${FILESDIR}/confd-0.3" +VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.3.sh" + +KEEP_I18NOBJECT="yes" + +make_live_cert() { + # TODO: still true? + # ssl-cert eclass creates a "invalid" cert, create our own one + local base=$(get_base 1) + local keydir="/etc/vdr/plugins/live" + + SSL_ORGANIZATION="${SSL_ORGANIZATION:-VDR Plugin Live}" + SSL_COMMONNAME="${SSL_COMMONNAME:-`hostname -f`}" + + echo + gen_cnf || return 1 + echo + gen_key 1 || return 1 + gen_csr 1 || return 1 + gen_crt 1 || return 1 + echo + + install -d "${ROOT}${keydir}" + install -m0400 "${base}.key" "${ROOT}${keydir}/live-key.pem" + install -m0444 "${base}.crt" "${ROOT}${keydir}/live.pem" + chown vdr:vdr "${ROOT}"/etc/vdr/plugins/live/live{,-key}.pem +} + +src_configure() { + # tmp. disabled gcc -std=c++11, due massiv compile errors + filter-flags -std=c++11 +} + +src_prepare() { + # new Makefile handling ToDp +# cp "${FILESDIR}/live.mk" "${S}/Makefile" + + # remove untranslated language files + rm "${S}"/po/{ca_ES,da_DK,el_GR,et_EE,hr_HR,hu_HU,nl_NL,nn_NO,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po + + vdr-plugin-2_src_prepare + + epatch "${FILESDIR}/${P}_vdr-2.1.2.diff" + + if ! use pcre; then + sed -i "s:^HAVE_LIBPCRECPP:#HAVE_LIBPCRECPP:" Makefile || die + fi +} + +src_install() { + vdr-plugin-2_src_install + + insinto /usr/share/vdr/plugins/live + doins -r live/* + + fowners -R vdr:vdr /usr/share/vdr/plugins/live +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + elog "To be able to use all functions of vdr-live" + elog "you should emerge and enable" + elog "media-plugins/vdr-epgsearch to search the EPG," + elog "media-plugins/vdr-streamdev for Live-TV streaming" + + elog "The default username/password is:" + elog "\tadmin:live" + + if use ssl ; then + if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then + einfo "found an existing SSL cert, to create a new SSL cert, run:\n" + einfo "emerge --config ${PN}" + else + einfo "No SSL cert found, creating a default one now" + make_live_cert + fi + fi +} + +pkg_config() { + make_live_cert +} |