version bump
Package-Manager: portage-2.2.01.21864-prefix
This commit is contained in:
parent
5c82852c30
commit
8cf0061485
|
@ -1,7 +1,3 @@
|
||||||
# Froxlor Release Team <release@froxlor.org> (30 Jan 2010)
|
# Froxlor Release Team <release@froxlor.org> (30 Jan 2010)
|
||||||
# Live version, only use that when you know what you are doing.
|
# Live version, only use that when you know what you are doing.
|
||||||
=www-apps/froxlor-9999
|
=www-apps/froxlor-9999
|
||||||
|
|
||||||
# Froxlor Release Team <release@froxlor.org> (12 Oct 2012)
|
|
||||||
# >=apache-2.4 breaks backwards compat with Order statements, patch pending
|
|
||||||
>=www-servers/apache-2.4.0
|
|
|
@ -1 +1 @@
|
||||||
DIST froxlor-0.9.27.tar.gz 1662621 SHA256 0468811f545d93ca98e9346e4c207b57fbbcd7669fa4435cb37cf046e2e3c031 SHA512 52ef7dd8a8bfd0ea3feeb773636671b7856194385537b6828cf0d806a7aa11136e4d37ac8bd659cf4fa2f0171ad1e7aae1e491afe025ed2296e22d35bba0aaf0 WHIRLPOOL 2b1c2a547bd58a87ae90be590a2930df6d5fe9c507e1ee2ee380381be3f4697aecf70f33334d5efe705ea873e4adfe79cfab0a10b3aac792c4999fce381bc12f
|
DIST froxlor-0.9.28.1.tar.gz 1528346 SHA256 a286084b9dc10474a19e9594de75069ca840365df8be65a639fc43035fa6ca5d SHA512 2c48f20ec488a780ab28b50e5e431be99393f89c68f81cf2e82e6336331744c9bfa458cb69990fe01b20b385b1cf128d9860c591b53369ec3a600d993b5deac5 WHIRLPOOL 38e608e182f1244d8e75eae09da5210ed0d6f786dcaf8c2906adc9d9b6ccec77bd727abe424756c795f7d24d16c13e0c448eff6842aebc0a343d8cdcc556f499
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
# Basic system aliases -- these MUST be present.
|
|
||||||
MAILER-DAEMON: postmaster
|
|
||||||
postmaster: root
|
|
||||||
|
|
||||||
# General redirections for pseudo accounts.
|
|
||||||
adm: root
|
|
||||||
bin: root
|
|
||||||
daemon: root
|
|
||||||
exim: root
|
|
||||||
lp: root
|
|
||||||
mail: root
|
|
||||||
named: root
|
|
||||||
nobody: root
|
|
||||||
postfix: root
|
|
||||||
|
|
||||||
# Well-known aliases -- these should be filled in!
|
|
||||||
root: <ADMIN_MAIL>
|
|
||||||
# operator:
|
|
||||||
|
|
||||||
# Standard RFC2142 aliases
|
|
||||||
abuse: postmaster
|
|
||||||
ftp: root
|
|
||||||
hostmaster: root
|
|
||||||
news: usenet
|
|
||||||
noc: root
|
|
||||||
security: root
|
|
||||||
usenet: root
|
|
||||||
uucp: root
|
|
||||||
webmaster: root
|
|
||||||
www: webmaster
|
|
||||||
|
|
||||||
# trap decode to catch security attacks
|
|
||||||
# decode: /dev/null
|
|
|
@ -1,3 +0,0 @@
|
||||||
smtpd_milters = inet:localhost:8891
|
|
||||||
milter_macro_daemon_name = SIGNING
|
|
||||||
milter_default_action = accept
|
|
|
@ -1,8 +0,0 @@
|
||||||
#
|
|
||||||
# Set PATH, otherwise restart-scripts won't find start-stop-daemon
|
|
||||||
#
|
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
||||||
#
|
|
||||||
# Regular cron jobs for the froxlor package
|
|
||||||
#
|
|
||||||
*/5 * * * * root /usr/lib/php5/bin/php -q /var/www/froxlor/scripts/froxlor_master_cronjob.php
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
PHPRC='/var/www/froxlor/php-fcgi-script/'
|
|
||||||
export PHPRC
|
|
||||||
PHP_FCGI_CHILDREN=0
|
|
||||||
export PHP_FCGI_CHILDREN
|
|
||||||
PHP_FCGI_MAX_REQUESTS=250
|
|
||||||
export PHP_FCGI_MAX_REQUESTS
|
|
||||||
exec /usr/bin/php-cgi -c '/var/www/froxlor/php-fcgi-script/'
|
|
|
@ -1,64 +0,0 @@
|
||||||
short_open_tag = On
|
|
||||||
asp_tags = Off
|
|
||||||
precision = 14
|
|
||||||
output_buffering = 4096
|
|
||||||
allow_call_time_pass_reference = Off
|
|
||||||
safe_mode = {SAFE_MODE}
|
|
||||||
safe_mode_gid = Off
|
|
||||||
safe_mode_include_dir = "{PEAR_DIR}"
|
|
||||||
safe_mode_allowed_env_vars = PHP_
|
|
||||||
safe_mode_protected_env_vars = LD_LIBRARY_PATH
|
|
||||||
{OPEN_BASEDIR_C}open_basedir = "{OPEN_BASEDIR}"
|
|
||||||
disable_functions = exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate
|
|
||||||
disable_classes =
|
|
||||||
expose_php = Off
|
|
||||||
max_execution_time = 30
|
|
||||||
max_input_time = 60
|
|
||||||
memory_limit = 16M
|
|
||||||
post_max_size = 16M
|
|
||||||
error_reporting = E_ALL & ~E_NOTICE
|
|
||||||
display_errors = On
|
|
||||||
display_startup_errors = Off
|
|
||||||
log_errors = On
|
|
||||||
log_errors_max_len = 1024
|
|
||||||
ignore_repeated_errors = Off
|
|
||||||
ignore_repeated_source = Off
|
|
||||||
report_memleaks = On
|
|
||||||
track_errors = Off
|
|
||||||
html_errors = Off
|
|
||||||
variables_order = "GPCS"
|
|
||||||
register_globals = Off
|
|
||||||
register_argc_argv = Off
|
|
||||||
gpc_order = "GPC"
|
|
||||||
magic_quotes_gpc = Off
|
|
||||||
magic_quotes_runtime = Off
|
|
||||||
magic_quotes_sybase = Off
|
|
||||||
include_path = ".:{PEAR_DIR}"
|
|
||||||
enable_dl = Off
|
|
||||||
file_uploads = On
|
|
||||||
upload_tmp_dir = "{TMP_DIR}"
|
|
||||||
upload_max_filesize = 32M
|
|
||||||
allow_url_fopen = Off
|
|
||||||
sendmail_path = "/usr/sbin/sendmail -t -f {CUSTOMER_EMAIL}"
|
|
||||||
session.save_handler = files
|
|
||||||
session.save_path = "{TMP_DIR}"
|
|
||||||
session.use_cookies = 1
|
|
||||||
session.name = PHPSESSID
|
|
||||||
session.auto_start = 0
|
|
||||||
session.cookie_lifetime = 0
|
|
||||||
session.cookie_path = /
|
|
||||||
session.cookie_domain =
|
|
||||||
session.serialize_handler = php
|
|
||||||
session.gc_probability = 1
|
|
||||||
session.gc_divisor = 1000
|
|
||||||
session.gc_maxlifetime = 1440
|
|
||||||
session.bug_compat_42 = 0
|
|
||||||
session.bug_compat_warn = 1
|
|
||||||
session.referer_check =
|
|
||||||
session.entropy_length = 16
|
|
||||||
session.entropy_file = /dev/urandom
|
|
||||||
session.cache_limiter = nocache
|
|
||||||
session.cache_expire = 180
|
|
||||||
session.use_trans_sid = 0
|
|
||||||
suhosin.simulation = Off
|
|
||||||
suhosin.mail.protect = 1
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,315 @@
|
||||||
|
# Copyright 1999-2013 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
[[ ${PV} == 9999 ]] && SCM="git-2"
|
||||||
|
EGIT_REPO_URI="https://github.com/Froxlor/Froxlor.git"
|
||||||
|
EGIT_PROJECT="froxlor"
|
||||||
|
|
||||||
|
inherit eutils ${SCM}
|
||||||
|
|
||||||
|
if [[ ${PV} != "9999" ]] ; then
|
||||||
|
RESTRICT="mirror"
|
||||||
|
SRC_URI="http://files.froxlor.org/releases/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
else
|
||||||
|
SRC_URI=""
|
||||||
|
KEYWORDS=""
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="A PHP-based webhosting-oriented control panel for servers."
|
||||||
|
HOMEPAGE="http://www.froxlor.org/"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="aps autoresponder awstats bind domainkey dovecot fcgid ftpquota fpm lighttpd +log mailquota nginx pureftpd quota ssl +tickets"
|
||||||
|
|
||||||
|
PHP_REQUIRED_FLAGS="bcmath,cli,ctype,filter,ftp,gd,mysql,nls,pcntl,posix,session,simplexml,ssl=,tokenizer,xml,xsl,zlib"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
!www-apps/syscp
|
||||||
|
>=mail-mta/postfix-2.4[mysql,ssl=]
|
||||||
|
virtual/cron
|
||||||
|
virtual/mysql
|
||||||
|
>=dev-lang/php-5.2[${PHP_REQUIRED_FLAGS}]
|
||||||
|
pureftpd? (
|
||||||
|
net-ftp/pure-ftpd[mysql,ssl=]
|
||||||
|
)
|
||||||
|
!pureftpd? (
|
||||||
|
net-ftp/proftpd[mysql,ssl=]
|
||||||
|
ftpquota? ( net-ftp/proftpd[softquota] )
|
||||||
|
)
|
||||||
|
awstats? (
|
||||||
|
www-misc/awstats
|
||||||
|
)
|
||||||
|
!awstats? (
|
||||||
|
app-admin/webalizer
|
||||||
|
)
|
||||||
|
bind? ( net-dns/bind
|
||||||
|
domainkey? ( mail-filter/opendkim )
|
||||||
|
)
|
||||||
|
ssl? ( dev-libs/openssl )
|
||||||
|
lighttpd? ( www-servers/lighttpd[php,ssl=] )
|
||||||
|
nginx? (
|
||||||
|
www-servers/nginx[ssl=]
|
||||||
|
)
|
||||||
|
!lighttpd? (
|
||||||
|
( !nginx? (
|
||||||
|
www-servers/apache[ssl=]
|
||||||
|
dev-lang/php[apache2]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
fcgid? ( dev-lang/php[cgi]
|
||||||
|
sys-auth/libnss-mysql
|
||||||
|
( !lighttpd? (
|
||||||
|
!nginx? (
|
||||||
|
www-servers/apache[suexec]
|
||||||
|
www-apache/mod_fcgid
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
fpm? ( dev-lang/php[fpm]
|
||||||
|
sys-auth/libnss-mysql
|
||||||
|
)
|
||||||
|
dovecot? ( >=net-mail/dovecot-1.2.0[mysql,ssl=]
|
||||||
|
>=mail-mta/postfix-2.4[dovecot-sasl]
|
||||||
|
)
|
||||||
|
!dovecot? ( dev-libs/cyrus-sasl[crypt,mysql,ssl=]
|
||||||
|
net-libs/courier-authlib[crypt,mysql]
|
||||||
|
net-mail/courier-imap
|
||||||
|
>=mail-mta/postfix-2.4[sasl]
|
||||||
|
)
|
||||||
|
aps? ( dev-lang/php[zip] )
|
||||||
|
mailquota? ( >=mail-mta/postfix-2.4[vda] )
|
||||||
|
quota? ( sys-fs/quotatool )"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
REQUIRED_USE="lighttpd? ( !nginx ) fcgid? ( !fpm )"
|
||||||
|
|
||||||
|
# we need that to set the standardlanguage later
|
||||||
|
LANGS="bg ca cs de da en es fr hu it nl pl pt ru se sl zh_CN"
|
||||||
|
for X in ${LANGS} ; do
|
||||||
|
IUSE="${IUSE} linguas_${X}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# lets check user defined variables
|
||||||
|
FROXLOR_DOCROOT="${FROXLOR_DOCROOT:-/var/www}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
git-2_src_unpack
|
||||||
|
else
|
||||||
|
unpack ${A}
|
||||||
|
fi
|
||||||
|
cd "${S}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# set default language
|
||||||
|
local MYLANG=""
|
||||||
|
if use linguas_bg ; then
|
||||||
|
MYLANG="Bulgarian"
|
||||||
|
elif use linguas_ca ; then
|
||||||
|
MYLANG="Catalan"
|
||||||
|
elif use linguas_cs ; then
|
||||||
|
MYLANG="Czech"
|
||||||
|
elif use linguas_de ; then
|
||||||
|
MYLANG="Deutsch"
|
||||||
|
elif use linguas_da ; then
|
||||||
|
MYLANG="Danish"
|
||||||
|
elif use linguas_es ; then
|
||||||
|
MYLANG="Español"
|
||||||
|
elif use linguas_fr ; then
|
||||||
|
MYLANG="Français"
|
||||||
|
elif use linguas_hu ; then
|
||||||
|
MYLANG="Hungarian"
|
||||||
|
elif use linguas_it ; then
|
||||||
|
MYLANG="Italian"
|
||||||
|
elif use linguas_nl ; then
|
||||||
|
MYLANG="Dutch"
|
||||||
|
elif use linguas_pl ; then
|
||||||
|
MYLANG="Polski"
|
||||||
|
elif use linguas_pt ; then
|
||||||
|
MYLANG="Português"
|
||||||
|
elif use linguas_ru ; then
|
||||||
|
MYLANG="Russian"
|
||||||
|
elif use linguas_se ; then
|
||||||
|
MYLANG="Swedish"
|
||||||
|
elif use linguas_sl ; then
|
||||||
|
MYLANG="Slovak"
|
||||||
|
elif use linguas_zh_CN ; then
|
||||||
|
MYLANG="Chinese"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ${MYLANG} != '' ]] ; then
|
||||||
|
einfo "Setting standardlanguage to '${MYLANG}'"
|
||||||
|
sed -e "s|'standardlanguage', 'English'|'standardlanguage', '${MYLANG}'|g" -i "${S}/install/froxlor.sql" || die "Unable to change default language"
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Setting 'lastguid' to '10000'"
|
||||||
|
sed -e "s|'lastguid', '9999'|'lastguid', '10000'|g" -i "${S}/install/froxlor.sql" || die "Unable to change lastguid"
|
||||||
|
|
||||||
|
# set correct webserver reload
|
||||||
|
if use lighttpd; then
|
||||||
|
einfo "Switching settings to fit 'lighttpd'"
|
||||||
|
sed -e "s|/etc/init.d/apache reload|/etc/init.d/lighttpd restart|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver restart-command"
|
||||||
|
sed -e "s|'webserver', 'apache2'|'webserver', 'lighttpd'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver version"
|
||||||
|
sed -e "s|'apacheconf_vhost', '/etc/apache/vhosts.conf'|'apacheconf_vhost', '/etc/lighttpd/froxlor-vhosts.conf'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver vhost directory"
|
||||||
|
sed -e "s|'apacheconf_diroptions', '/etc/apache/diroptions.conf'|'apacheconf_diroptions', '/etc/lighttpd/diroptions.conf'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver diroptions file"
|
||||||
|
sed -e "s|'apacheconf_htpasswddir', '/etc/apache/htpasswd/'|'apacheconf_htpasswddir', '/etc/lighttpd/htpasswd/'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver htpasswd directory"
|
||||||
|
sed -e "s|'httpuser', 'www-data'|'httpuser', 'lighttpd'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver user"
|
||||||
|
sed -e "s|'httpgroup', 'www-data'|'httpgroup', 'lighttpd'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver group"
|
||||||
|
elif use nginx; then
|
||||||
|
einfo "Switching settings to fit 'nginx'"
|
||||||
|
sed -e "s|/etc/init.d/apache reload|/etc/init.d/nginx restart|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver restart-command"
|
||||||
|
sed -e "s|'webserver', 'apache2'|'webserver', 'nginx'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver version"
|
||||||
|
sed -e "s|'apacheconf_vhost', '/etc/apache/vhosts.conf'|'apacheconf_vhost', '/etc/nginx/froxlor-vhosts.conf'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver vhost directory"
|
||||||
|
sed -e "s|'apacheconf_diroptions', '/etc/apache/diroptions.conf'|'apacheconf_diroptions', '/etc/nginx/diroptions.conf'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver diroptions file"
|
||||||
|
sed -e "s|'apacheconf_htpasswddir', '/etc/apache/htpasswd/'|'apacheconf_htpasswddir', '/etc/nginx/htpasswd/'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver htpasswd directory"
|
||||||
|
sed -e "s|'httpuser', 'www-data'|'httpuser', 'nginx'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver user"
|
||||||
|
sed -e "s|'httpgroup', 'www-data'|'httpgroup', 'nginx'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver group"
|
||||||
|
else
|
||||||
|
einfo "Switching settings to fit 'apache2'"
|
||||||
|
sed -e "s|/etc/init.d/apache reload|/etc/init.d/apache2 reload|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver restart-command"
|
||||||
|
sed -e "s|'apacheconf_vhost', '/etc/apache/vhosts.conf'|'apacheconf_vhost', '/etc/apache2/vhosts.d/99_froxlor-vhosts.conf'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver vhost directory"
|
||||||
|
sed -e "s|'apacheconf_diroptions', '/etc/apache/diroptions.conf'|'apacheconf_diroptions', '/etc/apache2/diroptions.conf'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver diroptions file"
|
||||||
|
sed -e "s|'apacheconf_htpasswddir', '/etc/apache/htpasswd/'|'apacheconf_htpasswddir', '/etc/apache2/htpasswd/'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver htpasswd directory"
|
||||||
|
sed -e "s|'httpuser', 'www-data'|'httpuser', 'apache'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver user"
|
||||||
|
sed -e "s|'httpgroup', 'www-data'|'httpgroup', 'apache'|g" -i "${S}/install/froxlor.sql" || die "Unable to change webserver group"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use fcgid && ! use lighttpd && ! use nginx ; then
|
||||||
|
einfo "Switching 'fcgid' to 'On'"
|
||||||
|
sed -e "s|'mod_fcgid', '0'|'mod_fcgid', '1'|g" -i "${S}/install/froxlor.sql" || die "Unable to set fcgid to 'On'"
|
||||||
|
|
||||||
|
einfo "Setting wrapper to FcgidWrapper"
|
||||||
|
sed -e "s|'mod_fcgid_wrapper', '0'|'mod_fcgid_wrapper', '1'|g" -i "${S}/install/froxlor.sql" || die "Unable to set fcgi-wrapper to 'FCGIWrapper'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use fpm ; then
|
||||||
|
einfo "Switching 'fpm' to 'On'"
|
||||||
|
sed -e "s|'phpfpm', 'enabled', '0'|'phpfpm', 'enabled', '1'|g" -i "${S}/install/froxlor.sql" || die "Unable to set fpm to 'On'"
|
||||||
|
|
||||||
|
einfo "Setting configdir for fpm"
|
||||||
|
sed -e "s|'phpfpm', 'configdir', '/etc/php-fpm.d/'|'phpfpm', 'configdir', '/etc/php/fpm-php5.3/fpm.d/'|g" -i "${S}/install/froxlor.sql" || die "Unable to set configdir for 'fpm'"
|
||||||
|
|
||||||
|
# ewarn "tell here what to do for including fpm.d/*.conf"
|
||||||
|
# einfo "Enable custom configdir for fpm"
|
||||||
|
# sed -e "s|;include=/etc/php/fpm-php5.3/fpm.d/*.conf|include=/etc/php/fpm-php5.3/fpm.d/*.conf|g" -i "/etc/php/fpm-php5.3/php-fpm.conf" || die "Unable to set custom configdir for 'fpm'"
|
||||||
|
|
||||||
|
# einfo "Checking for directory /etc/php/fpm-php5.3/fpm.d/"
|
||||||
|
# if [ ! -d /etc/php/fpm-php5.3/fpm.d/ ]; then
|
||||||
|
# dodir "/etc/php/fpm-php5.3/fpm.d/"
|
||||||
|
# fi
|
||||||
|
|
||||||
|
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"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# default value is logging_enabled='1'
|
||||||
|
if ! use log ; then
|
||||||
|
einfo "Switching 'log' to 'Off'"
|
||||||
|
sed -e "s|'logger', 'enabled', '1'|'logger', 'enabled', '0'|g" -i "${S}/install/froxlor.sql" || die "Unable to set logging to 'Off'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# default value is tickets_enabled='1'
|
||||||
|
if ! use tickets ; then
|
||||||
|
einfo "Switching 'tickets' to 'Off'"
|
||||||
|
sed -e "s|'ticket', 'enabled', '1'|'ticket', 'enabled', '0'|g" -i "${S}/install/froxlor.sql" || die "Unable to set ticketsystem to 'Off'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# default value is mailquota='0'
|
||||||
|
if use mailquota ; then
|
||||||
|
einfo "Switching 'mailquota' to 'On'"
|
||||||
|
sed -e "s|'mail_quota_enabled', '0'|'mail_quota_enabled', '1'|g" -i "${S}/install/froxlor.sql" || die "Unable to set mailquota to 'On'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# default value is autoresponder='0'
|
||||||
|
if use autoresponder ; then
|
||||||
|
einfo "Switching 'autoresponder' to 'On'"
|
||||||
|
sed -e "s|'autoresponder_active', '0'|'autoresponder_active', '1'|g" -i "${S}/install/froxlor.sql" || die "Unable to set autoresponder to 'On'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# default value is dkim_enabled='0'
|
||||||
|
if use domainkey && use bind ; then
|
||||||
|
einfo "Switching 'domainkey' to 'On'"
|
||||||
|
sed -e "s|'use_dkim', '0'|'use_dkim', '1'|g" -i "${S}/install/froxlor.sql" || die "Unable to set domainkey to 'On'"
|
||||||
|
|
||||||
|
einfo "Setting dkim-path to gentoo value"
|
||||||
|
sed -e "s|'dkim_prefix', '/etc/postfix/dkim/'|'dkim_prefix', '/etc/mail/dkim-filter/'|g" -i "${S}/install/froxlor.sql" || die "Unable to set domainkey prefix"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# default value is aps_enabled='0'
|
||||||
|
if use aps ; then
|
||||||
|
einfo "Switching 'APS' to 'On'"
|
||||||
|
sed -e "s|'aps_active', '0'|'aps_active', '1'|g" -i "${S}/install/froxlor.sql" || die "Unable to set aps to 'On'"
|
||||||
|
|
||||||
|
# if aps is used we enable required features in the php-cli php.ini
|
||||||
|
ewarn
|
||||||
|
ewarn "Note: APS requires the php setting 'allow_url_fopen' to be enabled"
|
||||||
|
ewarn " for the Froxlor vhost. Please adjust the corresponding php.ini"
|
||||||
|
ewarn
|
||||||
|
fi
|
||||||
|
|
||||||
|
# default value is ssl_enabled='1'
|
||||||
|
if ! use ssl ; then
|
||||||
|
einfo "Switching 'SSL' to 'Off'"
|
||||||
|
sed -e "s|'use_ssl','1'|'use_ssl','0'|g" -i "${S}/install/froxlor.sql" || die "Unable to set ssl to 'Off'"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use awstats ; then
|
||||||
|
einfo "Switching from 'Webalizer' to 'AWStats'"
|
||||||
|
sed -e "s|'webalizer_quiet', '2'|'webalizer_quiet', '0'|g" -i "${S}/install/froxlor.sql"
|
||||||
|
sed -e "s|'awstats_enabled', '0'|'awstats_enabled', '1'|g" -i "${S}/install/froxlor.sql" || die "Unable to enable AWStats"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use pureftpd ; then
|
||||||
|
einfo "Switching from 'ProFTPd' to 'Pure-FTPd'"
|
||||||
|
sed -e "s|'ftpserver', 'proftpd'|'ftpserver', 'pureftpd'|g" -i "${S}/install/froxlor.sql"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install the Froxlor files
|
||||||
|
einfo "Installing Froxlor files"
|
||||||
|
dodir ${FROXLOR_DOCROOT}
|
||||||
|
cp -Rf "${S}/" "${D}${FROXLOR_DOCROOT}/" || die "Installation of the Froxlor files failed"
|
||||||
|
|
||||||
|
fperms 0775 ${FROXLOR_DOCROOT}/froxlor/{temp,packages}
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# we need to check if this is going to be an update or a fresh install!
|
||||||
|
if [[ -f "${ROOT}${FROXLOR_DOCROOT}/froxlor/lib/userdata.inc.php" ]] ; then
|
||||||
|
elog "Froxlor is already installed on this system!"
|
||||||
|
elog
|
||||||
|
elog "Froxlor will update the database when you open"
|
||||||
|
elog "it in your browser the first time after the update-process"
|
||||||
|
elif [[ -f "${ROOT}${FROXLOR_DOCROOT}/syscp/lib/userdata.inc.php" ]] ; then
|
||||||
|
elog "This seems to be an upgrade from syscp"
|
||||||
|
elog "please move ${FROXLOR_DOCROOT}/syscp/lib/userdata.inc.php to"
|
||||||
|
elog "${FROXLOR_DOCROOT}/froxlor/lib/"
|
||||||
|
elog "and don't forget to copy "${ROOT}/usr/share/${PN}/froxlor.cron""
|
||||||
|
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
|
||||||
|
elog "Don't forget to setup your MySQL databases root user and password"
|
||||||
|
elog "using emerge --config mysql"
|
||||||
|
fi
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue