Merge branch 'stable-3.1' into pu
This commit is contained in:
commit
ab32ff9497
11
Makefile
11
Makefile
|
@ -34,7 +34,7 @@ install:
|
||||||
install-common:
|
install-common:
|
||||||
# Shell Scripts
|
# Shell Scripts
|
||||||
test -d $(DESTDIR)/usr/lib/alternc || mkdir -p $(DESTDIR)/usr/lib/alternc
|
test -d $(DESTDIR)/usr/lib/alternc || mkdir -p $(DESTDIR)/usr/lib/alternc
|
||||||
cp src/* $(DESTDIR)/usr/lib/alternc/
|
cp -r src/* $(DESTDIR)/usr/lib/alternc/
|
||||||
chown root:root $(DESTDIR)/usr/lib/alternc/*
|
chown root:root $(DESTDIR)/usr/lib/alternc/*
|
||||||
chmod 755 $(DESTDIR)/usr/lib/alternc/*
|
chmod 755 $(DESTDIR)/usr/lib/alternc/*
|
||||||
|
|
||||||
|
@ -69,6 +69,15 @@ install-alternc: install-common
|
||||||
# Man pages
|
# Man pages
|
||||||
install -o root -g root -m 644 man/*.8 $(DESTDIR)/usr/share/man/man8/
|
install -o root -g root -m 644 man/*.8 $(DESTDIR)/usr/share/man/man8/
|
||||||
|
|
||||||
|
#SSL functions
|
||||||
|
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_panel-ssl.sh
|
||||||
|
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_vhost-mixssl.sh
|
||||||
|
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_roundcube-ssl.sh
|
||||||
|
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_squirrelmail-ssl.sh
|
||||||
|
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_php52-ssl.sh
|
||||||
|
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_php52-mixssl.sh
|
||||||
|
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_url-ssl.sh
|
||||||
|
|
||||||
install-slave: install-common
|
install-slave: install-common
|
||||||
# Man pages
|
# Man pages
|
||||||
pod2man --center "" --date "" --release "AlternC" --section=8 man/alternc.install.pod >$(DESTDIR)/usr/share/man/man8/alternc.install.8
|
pod2man --center "" --date "" --release "AlternC" --section=8 man/alternc.install.pod >$(DESTDIR)/usr/share/man/man8/alternc.install.8
|
||||||
|
|
Before Width: | Height: | Size: 561 B After Width: | Height: | Size: 561 B |
|
@ -1022,6 +1022,13 @@ div.progress-bar div.txt {
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ssl a, a.ssl, input.ssl, .ssl-menu .menu-title {
|
||||||
|
background-image: url(../images/ssl.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 8px 3px;
|
||||||
|
padding-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.filter a, a.edit, input.filter {
|
.filter a, a.edit, input.filter {
|
||||||
background-image: url(../icon/filter.png);
|
background-image: url(../icon/filter.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
@ -1093,8 +1100,13 @@ body .ui-widget-content a {
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
th.headerSortUp {
|
textarea.cert {
|
||||||
background-image: url(../images/asc.gif);
|
font-family: Courier New, Courier, monospace, fixed;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
th.headerSortUp {
|
||||||
|
background-image: url(../images/asc.gif);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: right;
|
background-position: right;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -1196,4 +1208,6 @@ th.headerSortDown {
|
||||||
float: none;
|
float: none;
|
||||||
width:auto;
|
width:auto;
|
||||||
}
|
}
|
||||||
|
textarea[readonly='readonly'] {
|
||||||
|
background-color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
@reboot root mkdir -p /var/run/alternc-ssl && chown alterncpanel:alterncpanel /var/run/alternc-ssl
|
|
||||||
|
|
||||||
# in case incron didn't work, fix ssl aliases every hour:
|
|
||||||
44 * * * * root /usr/lib/alternc/ssl_alias_manager.sh
|
|
|
@ -1,20 +0,0 @@
|
||||||
etc/alternc/templates/apache2/mods-available
|
|
||||||
etc/apache2/conf.d
|
|
||||||
usr/lib/alternc/install.d
|
|
||||||
usr/share/alternc/install
|
|
||||||
usr/share/doc/alternc-ssl
|
|
||||||
usr/share/alternc/panel/admin/images
|
|
||||||
usr/share/alternc/panel/admin/styles
|
|
||||||
usr/share/alternc/panel/class
|
|
||||||
usr/share/alternc/panel/locales/en_US/LC_MESSAGES
|
|
||||||
usr/share/alternc/panel/locales/fr_FR/LC_MESSAGES
|
|
||||||
usr/share/alternc/panel/locales/it_IT/LC_MESSAGES
|
|
||||||
usr/share/alternc/panel/locales/nl_NL/LC_MESSAGES
|
|
||||||
usr/share/alternc/panel/locales/de_DE/LC_MESSAGES
|
|
||||||
usr/share/alternc/panel/locales/pt_BR/LC_MESSAGES
|
|
||||||
usr/share/alternc/panel/locales/es_ES/LC_MESSAGES
|
|
||||||
var/lib/alternc/backups
|
|
||||||
etc/alternc/functions_hosting
|
|
||||||
etc/incron.d
|
|
||||||
usr/share/php/Alternc/Api/Object
|
|
||||||
var/lib/alternc/ssl/private
|
|
|
@ -1,46 +0,0 @@
|
||||||
#!/bin/bash -e
|
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
|
||||||
|
|
||||||
CONFIGFILE="/etc/alternc/local.sh"
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
configure)
|
|
||||||
. "$CONFIGFILE"
|
|
||||||
|
|
||||||
# Then, configure the quota for "ssl"
|
|
||||||
/usr/lib/alternc/quota_init ssl 0
|
|
||||||
|
|
||||||
echo "Installing mysql table"
|
|
||||||
mysql --defaults-file=/etc/alternc/my.cnf -f < /usr/share/alternc/install/ssl.sql || true
|
|
||||||
|
|
||||||
echo "installing required apache modules"
|
|
||||||
a2enmod ssl
|
|
||||||
|
|
||||||
echo "$2" >/var/lib/alternc/backups/alternc-ssl-lastversion
|
|
||||||
|
|
||||||
echo -e "\033[31m**********************************************"
|
|
||||||
echo "* *"
|
|
||||||
echo "* ALTERNC-SSL ACTION REQUESTED *"
|
|
||||||
echo "* *"
|
|
||||||
echo "* Please run alternc.install to fully deploy *"
|
|
||||||
echo "* Then change your quota to activate SSL Cert*"
|
|
||||||
echo "* *"
|
|
||||||
echo "**********************************************"
|
|
||||||
echo -e "\033[0m"
|
|
||||||
;;
|
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo "postinst called with unknown argument \`$1'" >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# dh_installdeb will replace this with shell code automatically
|
|
||||||
# generated by other debhelper scripts.
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
# vim: et sw=4
|
|
|
@ -1,36 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
CONFIGFILE="/etc/alternc/my.cnf"
|
|
||||||
MENUFILE="/etc/alternc/menulist.txt"
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
remove)
|
|
||||||
|
|
||||||
# TODO : we don't purge *-ssl vhosts or *-ssl templates, they may break the hosting ...
|
|
||||||
if [ -e "$CONFIGFILE" -a -x "/usr/bin/mysql" ]; then
|
|
||||||
mysql --defaults-file=${CONFIGFILE} -f -e "DELETE FROM domaines_type WHERE name IN ('vhost-ssl','vhost-mixssl','roundcube-ssl','squirrelmail-ssl','panel-ssl','php52-ssl','php52-mixssl');"
|
|
||||||
mysql --defaults-file=${CONFIGFILE} -f -e "UPDATE sub_domaines SET web_action='DELETE' WHERE type IN ('vhost-ssl','vhost-mixssl','roundcube-ssl','squirrelmail-ssl','panel-ssl','php52-ssl','php52-mixssl');"
|
|
||||||
fi
|
|
||||||
echo -e "\033[31m**********************************************"
|
|
||||||
echo "* *"
|
|
||||||
echo "* ALTERNC-SSL ACTION REQUESTED *"
|
|
||||||
echo "* *"
|
|
||||||
echo "* Please run alternc.install to fully remove *"
|
|
||||||
echo "* *"
|
|
||||||
echo "**********************************************"
|
|
||||||
echo -e "\033[0m"
|
|
||||||
|
|
||||||
;;
|
|
||||||
purge)
|
|
||||||
# Purge the certificate and alias table:
|
|
||||||
if [ -e "$CONFIGFILE" -a -x "/usr/bin/mysql" ]; then
|
|
||||||
mysql --defaults-file=${CONFIGFILE} -f -e "DROP TABLE IF EXISTS certificate;"
|
|
||||||
mysql --defaults-file=${CONFIGFILE} -f -e "DROP TABLE IF EXISTS certif_alias;"
|
|
||||||
mysql --defaults-file=${CONFIGFILE} -f -e "DROP TABLE IF EXISTS certif_hosts;"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# dh_installdeb will replace this with shell code automatically
|
|
||||||
# generated by other debhelper scripts.
|
|
||||||
#DEBHELPER#
|
|
|
@ -65,8 +65,11 @@ Conflicts: alternc-admintools
|
||||||
, alternc-webalizer (<= 0.9.4)
|
, alternc-webalizer (<= 0.9.4)
|
||||||
, alternc-mailman (<< 2.0)
|
, alternc-mailman (<< 2.0)
|
||||||
, courier-authlib
|
, courier-authlib
|
||||||
|
, alternc-ssl
|
||||||
Provides: alternc-admintools
|
Provides: alternc-admintools
|
||||||
|
, alternc-ssl
|
||||||
Replaces: alternc-admintools
|
Replaces: alternc-admintools
|
||||||
|
, alternc-ssl
|
||||||
Suggests: alternc-awstats
|
Suggests: alternc-awstats
|
||||||
, alternc-mailman
|
, alternc-mailman
|
||||||
, alternc-changepass
|
, alternc-changepass
|
||||||
|
|
|
@ -16,7 +16,6 @@ override_dh_install:
|
||||||
$(MAKE) install-awstats DESTDIR=$(CURDIR)/debian/alternc-awstats
|
$(MAKE) install-awstats DESTDIR=$(CURDIR)/debian/alternc-awstats
|
||||||
$(MAKE) install-slave DESTDIR=$(CURDIR)/debian/alternc-slave
|
$(MAKE) install-slave DESTDIR=$(CURDIR)/debian/alternc-slave
|
||||||
$(MAKE) install-api DESTDIR=$(CURDIR)/debian/alternc-api
|
$(MAKE) install-api DESTDIR=$(CURDIR)/debian/alternc-api
|
||||||
$(MAKE) -C ssl install DESTDIR=$(CURDIR)/debian/alternc-ssl
|
|
||||||
|
|
||||||
override_dh_fixperms:
|
override_dh_fixperms:
|
||||||
dh_fixperms
|
dh_fixperms
|
||||||
|
|
|
@ -72,6 +72,9 @@ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
Allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
<Directory /var/lib/alternc/ssl-cert-alias/>
|
||||||
|
allow from all
|
||||||
|
</Directory>
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
Include /etc/alternc/bureau.conf
|
Include /etc/alternc/bureau.conf
|
||||||
|
|
|
@ -770,3 +770,43 @@ CREATE TABLE IF NOT EXISTS `csrf` (
|
||||||
-- make it re-exec-proof
|
-- make it re-exec-proof
|
||||||
DELETE FROM alternc_status WHERE name='alternc_version';
|
DELETE FROM alternc_status WHERE name='alternc_version';
|
||||||
INSERT INTO alternc_status SET name='alternc_version',value='3.4.8.sql';
|
INSERT INTO alternc_status SET name='alternc_version',value='3.4.8.sql';
|
||||||
|
|
||||||
|
-- SSL managment
|
||||||
|
CREATE TABLE `certificates` (
|
||||||
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`uid` int(10) unsigned NOT NULL,
|
||||||
|
`status` tinyint(3) unsigned NOT NULL,
|
||||||
|
`shared` tinyint(3) unsigned NOT NULL,
|
||||||
|
`fqdn` varchar(255) NOT NULL,
|
||||||
|
`altnames` text NOT NULL,
|
||||||
|
`validstart` datetime NOT NULL,
|
||||||
|
`validend` datetime NOT NULL,
|
||||||
|
`sslcsr` text NOT NULL,
|
||||||
|
`sslkey` text NOT NULL,
|
||||||
|
`sslcrt` text NOT NULL,
|
||||||
|
`sslchain` text NOT NULL,
|
||||||
|
`ssl_action` varchar(32) NOT NULL,
|
||||||
|
`ssl_result` varchar(32) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `uid` (`uid`),
|
||||||
|
KEY `ssl_action` (`ssl_action`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `certif_alias` (
|
||||||
|
`name` varchar(255) NOT NULL,
|
||||||
|
`content` text NOT NULL,
|
||||||
|
`uid` int(10) unsigned NOT NULL,
|
||||||
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
PRIMARY KEY (`name`),
|
||||||
|
KEY `uid` (`uid`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Global aliases defined for SSL certificates FILE validation processes';
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `certif_hosts` (
|
||||||
|
`certif` int(10) unsigned NOT NULL,
|
||||||
|
`sub` int(10) unsigned NOT NULL,
|
||||||
|
`uid` int(10) unsigned NOT NULL,
|
||||||
|
PRIMARY KEY (`certif`,`sub`),
|
||||||
|
KEY `uid` (`uid`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='VHosts of a user using defined or self-signed certificates';
|
||||||
|
|
||||||
|
INSERT IGNORE INTO defquotas VALUES ('ssl', 0, 'default');
|
|
@ -129,7 +129,7 @@ if [ ! -z "$(cat "$RELOAD_WEB")" ] ; then
|
||||||
|
|
||||||
(
|
(
|
||||||
echo "###BEGIN OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY###"
|
echo "###BEGIN OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY###"
|
||||||
find "$VHOST_DIR" -mindepth 2 -type f -iname "*.conf" -print0 | xargs -0 cat
|
find "$VHOST_DIR"/ -mindepth 2 -type f -iname "*.conf" -print0 | xargs -0 cat
|
||||||
echo "###END OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY###"
|
echo "###END OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY###"
|
||||||
) > "$tempo"
|
) > "$tempo"
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
header("location: admin/");
|
|
||||||
?>
|
|
|
@ -1,8 +0,0 @@
|
||||||
all: ssl.pot */LC_MESSAGES/ssl.po
|
|
||||||
|
|
||||||
ssl.pot: ../*/*.php
|
|
||||||
[ -r $@ ] || touch $@
|
|
||||||
xgettext --copyright-holder="AlternC Team" --package-name="AlternC" --package-version="2.0" --msgid-bugs-address="i18n@alternc.org" --force-po -o $@ --keyword=__ --keyword=_ -L PHP -F --from-code UTF-8 $^
|
|
||||||
|
|
||||||
%/LC_MESSAGES/ssl.po: ssl.pot
|
|
||||||
msgmerge -v -U $@ $^
|
|
|
@ -1,46 +0,0 @@
|
||||||
Le système de langue fonctionne ainsi :
|
|
||||||
|
|
||||||
dans bureau/locales/ on trouve un DOSSIER par langue sous la forme
|
|
||||||
major_minor/
|
|
||||||
exemple : fr_FR en_US ...
|
|
||||||
dans lequel on a un sous-dossier LC_MESSAGES
|
|
||||||
dans lequel on a des fichiers .po en vrac (normalement 1 ou 2 fichiers .po par module d'AlternC.)
|
|
||||||
|
|
||||||
Le fichier alternc.mo est donc construit à partir de TOUS les fichiers .po d'une même langue.
|
|
||||||
|
|
||||||
Pour mettre a jour les fichiers .po a partir des sources :
|
|
||||||
|
|
||||||
cd bureau/locales
|
|
||||||
make
|
|
||||||
|
|
||||||
puis allez voir les fichiers .po pour les mettre a jour (cherchez les fuzzy et les msgstr vide a remplir)
|
|
||||||
|
|
||||||
une fois les modifications effectuees, lancer svn commit pour valider vos modifications dans les sources officielles d'AlternC.
|
|
||||||
|
|
||||||
Howto translate AlternC in a new language
|
|
||||||
=========================================
|
|
||||||
|
|
||||||
This folder contains po and pot files, who are templates that allows you
|
|
||||||
to translate AlternC in any language.
|
|
||||||
|
|
||||||
1. How to add a language :
|
|
||||||
- create a folder with your iso language code (ex: de_DE for
|
|
||||||
German from Germany see `dpkg-reconfigure locales` for available codes.)
|
|
||||||
- create a subfolder LC_MESSAGES in this folder
|
|
||||||
- copy .po and .pot files and rename .pot to .po
|
|
||||||
- Translate them ;)
|
|
||||||
- Send them to us so that we can add them to the next release or as a language pack.
|
|
||||||
|
|
||||||
2. How to update language files.
|
|
||||||
|
|
||||||
When the programm is updated, the po files in locales/ are changed to
|
|
||||||
reflect the new developped features.
|
|
||||||
|
|
||||||
You can just call the makefile to have the files regenerated:
|
|
||||||
|
|
||||||
cd bureau/locales
|
|
||||||
make
|
|
||||||
|
|
||||||
from "locales/" to update your language po files. New strings will have
|
|
||||||
an empty "msgstr" value, and obsoletes one will be commented out with
|
|
||||||
#~
|
|
39
ssl/ssl.sql
39
ssl/ssl.sql
|
@ -1,39 +0,0 @@
|
||||||
|
|
||||||
CREATE TABLE `certificates` (
|
|
||||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
||||||
`uid` int(10) unsigned NOT NULL,
|
|
||||||
`status` tinyint(3) unsigned NOT NULL,
|
|
||||||
`shared` tinyint(3) unsigned NOT NULL,
|
|
||||||
`fqdn` varchar(255) NOT NULL,
|
|
||||||
`altnames` text NOT NULL,
|
|
||||||
`validstart` datetime NOT NULL,
|
|
||||||
`validend` datetime NOT NULL,
|
|
||||||
`sslcsr` text NOT NULL,
|
|
||||||
`sslkey` text NOT NULL,
|
|
||||||
`sslcrt` text NOT NULL,
|
|
||||||
`sslchain` text NOT NULL,
|
|
||||||
`ssl_action` varchar(32) NOT NULL,
|
|
||||||
`ssl_result` varchar(32) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `uid` (`uid`),
|
|
||||||
KEY `ssl_action` (`ssl_action`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `certif_alias` (
|
|
||||||
`name` varchar(255) NOT NULL,
|
|
||||||
`content` text NOT NULL,
|
|
||||||
`uid` int(10) unsigned NOT NULL,
|
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
||||||
PRIMARY KEY (`name`),
|
|
||||||
KEY `uid` (`uid`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Global aliases defined for SSL certificates FILE validation processes';
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `certif_hosts` (
|
|
||||||
`certif` int(10) unsigned NOT NULL,
|
|
||||||
`sub` int(10) unsigned NOT NULL,
|
|
||||||
`uid` int(10) unsigned NOT NULL,
|
|
||||||
PRIMARY KEY (`certif`,`sub`),
|
|
||||||
KEY `uid` (`uid`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='VHosts of a user using defined or self-signed certificates';
|
|
||||||
|
|
||||||
INSERT IGNORE INTO defquotas VALUES ('ssl', 0, 'default');
|
|
Loading…
Reference in New Issue