From 5d14fed7e438ec10faceabecfe27078e65a95857 Mon Sep 17 00:00:00 2001 From: azerttyu Date: Thu, 21 Jun 2018 19:48:42 +0200 Subject: [PATCH] Remove all alternc-ssl package * finish #263 --- ssl/Makefile | 55 ---------------------------------------- ssl/README.txt | 4 --- ssl/apache2.conf | 5 ---- ssl/gen-ssl-templates.sh | 30 ---------------------- 4 files changed, 94 deletions(-) delete mode 100755 ssl/Makefile delete mode 100644 ssl/README.txt delete mode 100644 ssl/apache2.conf delete mode 100755 ssl/gen-ssl-templates.sh diff --git a/ssl/Makefile b/ssl/Makefile deleted file mode 100755 index 3049006f..00000000 --- a/ssl/Makefile +++ /dev/null @@ -1,55 +0,0 @@ -# ---------------------------------------------------------------------- -# LICENSE -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License (GPL) -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# To read the license please visit http://www.gnu.org/copyleft/gpl.html -# ---------------------------------------------------------------------- -# Purpose of file: Install the files of alternc-ssl packages -# ---------------------------------------------------------------------- - -install: - install -m 0644 -g root -o root ssl.sql $(DESTDIR)/usr/share/alternc/install/ - install -m 0755 -g root -o root alternc-ssl.install.php $(DESTDIR)/usr/lib/alternc/install.d/alternc-ssl - install -m 0644 -g root -o root README.txt $(DESTDIR)/var/lib/alternc/ssl/private/ - install -m 0644 -g root -o root apache2.conf $(DESTDIR)/etc/apache2/conf.d/alternc-ssl-alias.conf - -# incron - install -m 0755 -g root -o root ssl_alias_manager.sh $(DESTDIR)/usr/lib/alternc/ - install -m 0644 -g root -o root alternc-ssl.incron.d $(DESTDIR)/etc/incron.d/alternc-ssl - - install -m 0644 -g 1999 -o root panel/class/m_ssl.php $(DESTDIR)/usr/share/alternc/panel/class/ - install -m 0644 -g 1999 -o root panel/admin/*.php $(DESTDIR)/usr/share/alternc/panel/admin/ - install -m 0644 -g 1999 -o root panel/admin/images/* $(DESTDIR)/usr/share/alternc/panel/admin/images/ -# locales - install -m 0644 -g 1999 -o root panel/locales/pt_BR/LC_MESSAGES/ssl.po $(DESTDIR)/usr/share/alternc/panel/locales/pt_BR/LC_MESSAGES/ssl.po - install -m 0644 -g 1999 -o root panel/locales/fr_FR/LC_MESSAGES/ssl.po $(DESTDIR)/usr/share/alternc/panel/locales/fr_FR/LC_MESSAGES/ssl.po - install -m 0644 -g 1999 -o root panel/locales/en_US/LC_MESSAGES/ssl.po $(DESTDIR)/usr/share/alternc/panel/locales/en_US/LC_MESSAGES/ssl.po - install -m 0644 -g 1999 -o root panel/locales/de_DE/LC_MESSAGES/ssl.po $(DESTDIR)/usr/share/alternc/panel/locales/de_DE/LC_MESSAGES/ssl.po - install -m 0644 -g 1999 -o root panel/locales/it_IT/LC_MESSAGES/ssl.po $(DESTDIR)/usr/share/alternc/panel/locales/it_IT/LC_MESSAGES/ssl.po - install -m 0644 -g 1999 -o root panel/locales/nl_NL/LC_MESSAGES/ssl.po $(DESTDIR)/usr/share/alternc/panel/locales/nl_NL/LC_MESSAGES/ssl.po - install -m 0644 -g 1999 -o root panel/locales/es_ES/LC_MESSAGES/ssl.po $(DESTDIR)/usr/share/alternc/panel/locales/es_ES/LC_MESSAGES/ssl.po -# FIXME: how can we do that properly ?? -# install -m 0644 -g 1999 -o root panel/admin/styles/* $(DESTDIR)/usr/share/alternc/panel/admin/styles/ - - install -m 0644 -g 1999 -o root templates/* $(DESTDIR)/etc/alternc/templates/apache2/ - install -m 0644 -g 1999 -o root ssl.conf $(DESTDIR)/etc/alternc/templates/apache2/mods-available/ - install -m 0644 -g 1999 -o root openssl.cnf $(DESTDIR)/etc/alternc/ - install -m 0755 -g 1999 -o root hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/ - 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 -# api - install -m 0644 -g root -o root api/Ssl.php $(DESTDIR)/usr/share/php/Alternc/Api/Object/ diff --git a/ssl/README.txt b/ssl/README.txt deleted file mode 100644 index fdcd94bb..00000000 --- a/ssl/README.txt +++ /dev/null @@ -1,4 +0,0 @@ - -This folder will contains the SSL certificates, -chained certificates and private keys of VHOSTS -used by Apache to serve HTTPS pages. diff --git a/ssl/apache2.conf b/ssl/apache2.conf deleted file mode 100644 index a72b00b1..00000000 --- a/ssl/apache2.conf +++ /dev/null @@ -1,5 +0,0 @@ - - - allow from all - - diff --git a/ssl/gen-ssl-templates.sh b/ssl/gen-ssl-templates.sh deleted file mode 100755 index 14336765..00000000 --- a/ssl/gen-ssl-templates.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# this script regenerate the SSL-* templates from the ORIGINAL non-ssl in parent folder -# launch it if you know that some templates has been changed in parent folder. - -function convert { - src=$1 - dst=$2 - (cat ../etc/alternc/templates/apache2/url.conf | sed -e 's#%%redirect%%#https://%%fqdn%%#' - cat $src | - sed -e 's#:80#:443#' \ - -e "s## SSLEngine On\n SSLCertificateFile %%CRT%%\n SSLCertificateKeyFile %%KEY%%\n %%CHAINLINE%%\n\n#i" \ - ) >$dst -} - -# Those 3 are redirects from http://%%fqdn%% to https://%%fqdn%% PLUS the https://%%fqdn%% VHOST -convert "../roundcube/templates/apache2/roundcube.conf" "templates/roundcube-ssl.conf" -convert "../squirrelmail/templates/apache2/squirrelmail.conf" "templates/squirrelmail-ssl.conf" -convert "../etc/alternc/templates/apache2/panel.conf" "templates/panel-ssl.conf" -convert "../etc/alternc/templates/apache2/vhost.conf" "templates/vhost-ssl.conf" - -# manual case : BOTH http and https are normal vhosts pointing to the same DocumentRoot -(cat ../etc/alternc/templates/apache2/vhost.conf - cat ../etc/alternc/templates/apache2/vhost.conf | - sed -e 's#:80#:443#' \ - -e "s## SSLEngine On\n SSLCertificateFile %%CRT%%\n SSLCertificateKeyFile %%KEY%%\n %%CHAINLINE%%\n\n#i" -) >templates/vhost-mixssl.conf - - -