diff options
author | lado <herrlado@gmail.com> | 2014-01-22 11:24:48 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2014-01-22 11:24:48 +0100 |
commit | c5fef0726b2ebae193dc8a73f8f4b03d57329d5d (patch) | |
tree | e615b19de25fe583ed0f44c590ffb15813cd6ae6 /gentoo | |
parent | 44e27c9ebbbad3dd21be4425dba666d5afd67922 (diff) | |
download | vdr-manager-c5fef0726b2ebae193dc8a73f8f4b03d57329d5d.tar.gz vdr-manager-c5fef0726b2ebae193dc8a73f8f4b03d57329d5d.tar.bz2 |
gentoo ebuild from bju
Diffstat (limited to 'gentoo')
-rw-r--r-- | gentoo/vdr-vdrmanager-0.12.ebuild | 70 | ||||
-rw-r--r-- | gentoo/vdr-vdrmanager-9999.ebuild | 74 |
2 files changed, 144 insertions, 0 deletions
diff --git a/gentoo/vdr-vdrmanager-0.12.ebuild b/gentoo/vdr-vdrmanager-0.12.ebuild new file mode 100644 index 0000000..8f4bc4a --- /dev/null +++ b/gentoo/vdr-vdrmanager-0.12.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.10.ebuild,v 1.1 2013/12/27 17:18:28 hd_brummy Exp $ + +EAPI="5" + +inherit vdr-plugin-2 ssl-cert + +VERSION="1588" # every bump, new version + +DESCRIPTION="VDR Plugin: allows remote programming VDR using VDR-Manager running on Android devices" +HOMEPAGE="http://projects.vdr-developer.org/projects/vdr-manager/wiki" +SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tar.gz" + +KEYWORDS="~x86 ~amd64" +SLOT="0" +LICENSE="GPL-2" +IUSE="-stream" + +DEPEND=">=media-video/vdr-2 + dev-libs/openssl + sys-libs/zlib + app-arch/gzip" +RDEPEND="stream? ( media-plugins/vdr-streamdev[server] )" + +VDRMANAGER_SSL_KEY_DIR="/etc/vdr/plugins/vdrmanager" +VDRMANAGER_SSL_KEY_FILE="${VDRMANAGER_SSL_KEY_DIR}/vdrmanager" + +S="${WORKDIR}/${P}" + +make_vdrmanager_cert() { + SSL_COUNTRY="${SSL_COUNTRY:-}" + SSL_STATE="${SSL_STATE:-Unknown}" + SSL_LOCALITY="${VDRMANAGER_SSL_LOCALITY:-Unkown}" + SSL_ORGANIZATION="${VDRMNAGER_SSL_ORGANIZATION:-VDR-Manager Plugin}" + SSL_UNIT="${VDRMANAGER_SSL_UNIT:-VDR Server}" + SSL_COMMONNAME="${VDRMANAGER_SSL_COMMONNAME:-`hostname -f`}" + SSL_EMAIL="${VDRMANAGER_SSL_EMAIL:-Unknown}" + SSL_BITS="${VDRMANAGER_SSL_BITS:-1024}" + SSL_DAYS="${VDRMANAGER_SSL_DAYS:-720}" + + rm -f ${ROOT}${VDRMANAGER_SSL_KEY_FILE}.* + + install_cert ${VDRMANAGER_SSL_KEY_FILE} + + rm -f ${ROOT}${VDRMANAGER_SSL_KEY_FILE}.{crt,csr,key} + fowners vdr:vdr "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem" + fperms 600 "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem" +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + einfo "Add a password to /etc/conf.d/vdr.vdrmanager" + + if use ssl ; then + if path_exists -a "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.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_vdrmanager_cert + fi + fi +} + +pkg_config() { + make_vdrmanager_cert +} + diff --git a/gentoo/vdr-vdrmanager-9999.ebuild b/gentoo/vdr-vdrmanager-9999.ebuild new file mode 100644 index 0000000..e26e236 --- /dev/null +++ b/gentoo/vdr-vdrmanager-9999.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.10.ebuild,v 1.1 2013/12/27 17:18:28 hd_brummy Exp $ + +EAPI="5" + +inherit vdr-plugin-2 ssl-cert git-2 + +EGIT_REPO_URI="git://projects.vdr-developer.org/vdr-manager.git" + +DESCRIPTION="VDR Plugin: allows remote programming VDR using VDR-Manager running on Android devices" +HOMEPAGE="http://projects.vdr-developer.org/projects/vdr-manager/wiki" + +KEYWORDS="~x86 ~amd64" +SLOT="0" +LICENSE="GPL-2" +IUSE="-stream ssl gzip zlib" + +DEPEND=">=media-video/vdr-2 + dev-libs/openssl + sys-libs/zlib + app-arch/gzip" +RDEPEND="stream? ( media-plugins/vdr-streamdev[server] )" + +VDRMANAGER_SSL_KEY_DIR="/etc/vdr/plugins/vdrmanager" +VDRMANAGER_SSL_KEY_FILE="${VDRMANAGER_SSL_KEY_DIR}/vdrmanager" + +S="${WORKDIR}/${P}" + +make_vdrmanager_cert() { + SSL_COUNTRY="${SSL_COUNTRY:-}" + SSL_STATE="${SSL_STATE:-Unknown}" + SSL_LOCALITY="${VDRMANAGER_SSL_LOCALITY:-Unkown}" + SSL_ORGANIZATION="${VDRMNAGER_SSL_ORGANIZATION:-VDR-Manager Plugin}" + SSL_UNIT="${VDRMANAGER_SSL_UNIT:-VDR Server}" + SSL_COMMONNAME="${VDRMANAGER_SSL_COMMONNAME:-`hostname -f`}" + SSL_EMAIL="${VDRMANAGER_SSL_EMAIL:-Unknown}" + SSL_BITS="${VDRMANAGER_SSL_BITS:-1024}" + SSL_DAYS="${VDRMANAGER_SSL_DAYS:-720}" + + rm -f ${ROOT}${VDRMANAGER_SSL_KEY_FILE}.* + + install_cert ${VDRMANAGER_SSL_KEY_FILE} + + rm -f ${ROOT}${VDRMANAGER_SSL_KEY_FILE}.{crt,csr,key} + chown vdr:vdr "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem" + chmod 600 "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem" +} + +src_unpack() { + git-2_src_unpack + S=${WORKDIR}/${P}/${PN} +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + einfo "Add a password to /etc/conf.d/vdr.vdrmanager" + + if use ssl ; then + if path_exists -a "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.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_vdrmanager_cert + fi + fi +} + +pkg_config() { + make_vdrmanager_cert +} + |