From 06427488e236822a5bddf8bc290e5a9394ffa506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster=20=28Dessa=29?= Date: Tue, 2 Aug 2016 09:10:13 +0200 Subject: [PATCH] version bump --- www-apps/froxlor/Manifest | 2 +- ...or-0.9.36.ebuild => froxlor-0.9.37.ebuild} | 42 ++++++++++++++----- 2 files changed, 32 insertions(+), 12 deletions(-) rename www-apps/froxlor/{froxlor-0.9.36.ebuild => froxlor-0.9.37.ebuild} (86%) diff --git a/www-apps/froxlor/Manifest b/www-apps/froxlor/Manifest index 881d20d..7d267d8 100644 --- a/www-apps/froxlor/Manifest +++ b/www-apps/froxlor/Manifest @@ -1 +1 @@ -DIST froxlor-0.9.36.tar.gz 1114755 SHA256 6991a2359636a9b1faf66370ae7381670ff9c979a90d4a9ac44dcde91cda770e SHA512 83a2c411cffb36545ed9a7aacb981ade637c2a9339069521de31376c14443685e0c853a1b6fe605999e442ddce7beafba3d5cd09438bc7116b2df7d26c431559 WHIRLPOOL ee2219655e5dbf68358c717bc0d4d942c53276a0b02249e081d8741d19e3a424f5b8b4ae7ae3293fc396e3be9203a5cb83bd1e3a735f17ab027162f0ad4e9052 +DIST froxlor-0.9.37.tar.gz 1189808 SHA256 fed0fa4addc25b45b475d98998cdf62cc97c1dc97cca41879a1dd6a69cef6daf SHA512 877196c6d8cec6d2f049e3801d1c02d470a541119883f456222f4580fc2b62afacc39f1722f6fc783bccad2196c14d548f64cce4096627263bc151e1d335bcc0 WHIRLPOOL c9b26f55152b258553e8812761453b97d240480ae23974c9fa4736ca8acbd7d0480b0a90881a7a700f7272de16d7f8c749bcca0ebfe84d55f64f13444e379b89 diff --git a/www-apps/froxlor/froxlor-0.9.36.ebuild b/www-apps/froxlor/froxlor-0.9.37.ebuild similarity index 86% rename from www-apps/froxlor/froxlor-0.9.36.ebuild rename to www-apps/froxlor/froxlor-0.9.37.ebuild index 47afb2a..4889f73 100644 --- a/www-apps/froxlor/froxlor-0.9.36.ebuild +++ b/www-apps/froxlor/froxlor-0.9.37.ebuild @@ -22,7 +22,7 @@ HOMEPAGE="http://www.froxlor.org/" LICENSE="GPL-2" SLOT="0" -IUSE="awstats bind domainkey +dovecot fcgid ftpquota fpm libressl lighttpd +log mailquota nginx pureftpd quota ssl +tickets vsftpd" +IUSE="awstats bind domainkey +dovecot fcgid ftpquota fpm libressl lighttpd +log mailquota nginx pdns pureftpd quota ssl +tickets vsftpd" DEPEND=" !www-apps/syscp @@ -50,8 +50,11 @@ DEPEND=" !awstats? ( app-admin/webalizer ) - bind? ( net-dns/bind - domainkey? ( mail-filter/opendkim ) + bind? ( net-dns/bind[ssl=] + domainkey? ( mail-filter/opendkim[ssl=,libressl=] ) + ) + pdns? ( net-dns/pdns[mysql] + domainkey? ( mail-filter/opendkim[ssl=,libressl=] ) ) ssl? ( !libressl? ( >=dev-libs/openssl-1.0.2:* ) @@ -96,7 +99,7 @@ DEPEND=" RDEPEND="${DEPEND}" -REQUIRED_USE="lighttpd? ( !nginx ) fcgid? ( !fpm ) vsftpd? ( !ftpquota )" +REQUIRED_USE="lighttpd? ( !nginx ) fcgid? ( !fpm ) vsftpd? ( !ftpquota ) pdns? ( !bind )" # we need that to set the standardlanguage later LANGS="de en fr it nl pt sv" @@ -200,11 +203,28 @@ src_install() { fi - # If Bind will not used disable it and change the reload path for it - if ! use bind ; then - einfo "Switching 'bind' to 'Off'" - sed -e 's|'bind_enable', '1'|'bind_enable', '0'|g' -i "${S}/install/froxlor.sql" || die "Unable to change reload path for Bind" - sed -e 's|/etc/init.d/named reload|/bin/true|g' -i "${S}/install/froxlor.sql" || die "Unable to change reload path for Bind" + # If Bind and pdns will not be used disable nameserver + if ! use bind && ! use pdns; then + einfo "Disabling nameserver" + sed -e 's|'bind_enable', '1'|'bind_enable', '0'|g' -i "${S}/install/froxlor.sql" || die "Unable to change binds enabled flag" + sed -e 's|/etc/init.d/bind9 reload|/bin/true|g' -i "${S}/install/froxlor.sql" || die "Unable to change reload path for Bind" + fi + + if use bind ; then + einfo "Setting bind9 reload command" + sed -e 's|'bind_enable', '0'|'bind_enable', '1'|g' -i "${S}/install/froxlor.sql" || die "Unable to change binds enabled flag" + sed -e 's|/etc/init.d/bind9 reload|/etc/init.d/named reload|g' -i "${S}/install/froxlor.sql" || die "Unable to change reload path for Bind" + fi + + if use pdns ; then + einfo "Switching from 'bind' to 'powerdns'" + sed -e 's|'bind_enable', '0'|'bind_enable', '1'|g' -i "${S}/install/froxlor.sql" || die "Unable to change binds enabled flag" + sed -e 's|/etc/init.d/bind9 reload|/etc/init.d/pdns restart|g' -i "${S}/install/froxlor.sql" || die "Unable to change reload path for pdns" + sed -e 's|'dns_server', 'bind'|'dns_server', 'pdns'|g' -i "${S}/install/froxlor.sql" || die "Unable to change dns-server value from bind to pdns" + ewarn "" + ewarn "Note that you need to configure pdns and create a separate database for it, see:" + ewarn "https://doc.powerdns.com/3/authoritative/installation/#basic-setup-configuring-database-connectivity" + ewarn "" fi # default value is logging_enabled='1' @@ -254,7 +274,7 @@ src_install() { # Install the Froxlor files einfo "Installing Froxlor files" dodir ${FROXLOR_DOCROOT} - cp -Rf "${S}/" "${D}${FROXLOR_DOCROOT}/" || die "Installation of the Froxlor files failed" + cp -R "${S}/" "${D}${FROXLOR_DOCROOT}/" || die "Installation of the Froxlor files failed" } pkg_postinst() { @@ -272,7 +292,7 @@ pkg_postinst() { elog "to /etc/cron.d/froxlor and remove /etc/cron.d/syscp" else elog "Please open http://[ip]/froxlor in your browser to continue" - elog "continue with the basic setup of Froxlor." + elog "with the basic setup of Froxlor." elog elog "Don't forget to setup your MySQL databases root user and password" elog "using emerge --config mysql"