From b58cae86e52d1f34c8e007e04f2dbc28650d8789 Mon Sep 17 00:00:00 2001 From: bju Date: Thu, 23 Jan 2014 22:05:58 +0100 Subject: - Giving VDRMANAGER_USE_{SSL,GZIP,ZLIB}=0 (default is 1) to the make call SSL support and the compression methods can be disabled. This eliminates the compile time and also the runtime dependencies. - The Gentoo ebuils uses the USE flags "ssl", "gzip" and "zlib" to control the SSL and compress features. --- gentoo/vdr-vdrmanager-9999.ebuild | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'gentoo/vdr-vdrmanager-9999.ebuild') diff --git a/gentoo/vdr-vdrmanager-9999.ebuild b/gentoo/vdr-vdrmanager-9999.ebuild index e26e236..632028f 100644 --- a/gentoo/vdr-vdrmanager-9999.ebuild +++ b/gentoo/vdr-vdrmanager-9999.ebuild @@ -14,13 +14,15 @@ HOMEPAGE="http://projects.vdr-developer.org/projects/vdr-manager/wiki" KEYWORDS="~x86 ~amd64" SLOT="0" LICENSE="GPL-2" -IUSE="-stream ssl gzip zlib" + +IUSE="-stream +ssl +zlib -gzip" DEPEND=">=media-video/vdr-2 - dev-libs/openssl - sys-libs/zlib - app-arch/gzip" -RDEPEND="stream? ( media-plugins/vdr-streamdev[server] )" + ssl? ( dev-libs/openssl ) + zlib? ( sys-libs/zlib )" +RDEPEND="stream? ( media-plugins/vdr-streamdev[server] ) + gzip? ( app-arch/gzip ) + $DEPEND" VDRMANAGER_SSL_KEY_DIR="/etc/vdr/plugins/vdrmanager" VDRMANAGER_SSL_KEY_FILE="${VDRMANAGER_SSL_KEY_DIR}/vdrmanager" @@ -52,12 +54,21 @@ src_unpack() { S=${WORKDIR}/${P}/${PN} } +src_prepare() { + + use ssl || BUILD_PARAMS="$BUILD_PARAMS VDRMANAGER_USE_SSL=0" + use gzip || BUILD_PARAMS="$BUILD_PARAMS VDRMANAGER_USE_GZIP=0" + use zlib || BUILD_PARAMS="$BUILD_PARAMS VDRMANAGER_USE_ZLIB=0" + + vdr-plugin-2_src_prepare +} + pkg_postinst() { vdr-plugin-2_pkg_postinst einfo "Add a password to /etc/conf.d/vdr.vdrmanager" - if use ssl ; then + 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}" @@ -65,6 +76,13 @@ pkg_postinst() { einfo "No SSL cert found, creating a default one now" make_vdrmanager_cert fi + einfo + fi + + if use gzip; then + einfo 'The plugin was installed with USE flag "gzip" set.' + einfo 'You must install app-arch/gzip to use the gzip' + einfo 'compression method.' fi } -- cgit v1.2.3