Browse Source

- migrate from linguas to l10n

- se l10n, is actually sv
- add pdns to metadata.xml
- do not use cp -f, fix typo
master
Robert Förster (Dessa) 5 years ago
parent
commit
ddd4ab6c91
  1. 16
      www-apps/froxlor/froxlor-0.9.36.ebuild
  2. 20
      www-apps/froxlor/froxlor-9999.ebuild
  3. 1
      www-apps/froxlor/metadata.xml

16
www-apps/froxlor/froxlor-0.9.36.ebuild

@ -99,9 +99,9 @@ RDEPEND="${DEPEND}"
REQUIRED_USE="lighttpd? ( !nginx ) fcgid? ( !fpm ) vsftpd? ( !ftpquota )"
# we need that to set the standardlanguage later
LANGS="de en fr it nl pt se"
LANGS="de en fr it nl pt sv"
for X in ${LANGS} ; do
IUSE="${IUSE} linguas_${X}"
IUSE="${IUSE} l10n_${X}"
done
# lets check user defined variables
@ -124,17 +124,17 @@ src_prepare() {
src_install() {
# set default language
local MYLANG=""
if use linguas_de ; then
if use l10n_de ; then
MYLANG="Deutsch"
elif use linguas_fr ; then
elif use l10n_fr ; then
MYLANG="Français"
elif use linguas_it ; then
elif use l10n_it ; then
MYLANG="Italian"
elif use linguas_nl ; then
elif use l10n_nl ; then
MYLANG="Dutch"
elif use linguas_pt ; then
elif use l10n_pt ; then
MYLANG="Português"
elif use linguas_se ; then
elif use l10n_sv ; then
MYLANG="Swedish"
fi

20
www-apps/froxlor/froxlor-9999.ebuild

@ -102,9 +102,9 @@ RDEPEND="${DEPEND}"
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 se"
LANGS="de en fr it nl pt sv"
for X in ${LANGS} ; do
IUSE="${IUSE} linguas_${X}"
IUSE="${IUSE} l10n_${X}"
done
# lets check user defined variables
@ -127,17 +127,17 @@ src_prepare() {
src_install() {
# set default language
local MYLANG=""
if use linguas_de ; then
if use l10n_de ; then
MYLANG="Deutsch"
elif use linguas_fr ; then
elif use l10n_fr ; then
MYLANG="Français"
elif use linguas_it ; then
elif use l10n_it ; then
MYLANG="Italian"
elif use linguas_nl ; then
elif use l10n_nl ; then
MYLANG="Dutch"
elif use linguas_pt ; then
elif use l10n_pt ; then
MYLANG="Português"
elif use linguas_se ; then
elif use l10n_sv ; then
MYLANG="Swedish"
fi
@ -274,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() {
@ -292,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"

1
www-apps/froxlor/metadata.xml

@ -20,6 +20,7 @@
<flag name='mailquota'>Adds support for Quotas for the maildirs of
Customers</flag>
<flag name='nginx'>use nginx instead of Apache</flag>
<flag name='pdns'>use Power-DNS instead of Bind</flag>
<flag name='pureftpd'>use pure-FTPd instead of ProFTPd</flag>
<flag name='quota'>Adds support for Filesystem-Quotas</flag>
<flag name='tickets'>Adds support for the Ticket System</flag>

Loading…
Cancel
Save