From 35250418391433f854f90315511cf3ed1cb1b4d9 Mon Sep 17 00:00:00 2001 From: "cam.lafit" Date: Thu, 21 Jun 2018 17:05:28 +0200 Subject: [PATCH] No more need to package alternc-ssl * Say good bye, thank a lot --- debian/alternc-ssl.cron.d | 5 ---- debian/alternc-ssl.dirs | 20 ---------------- debian/alternc-ssl.postinst | 46 ------------------------------------- debian/alternc-ssl.postrm | 36 ----------------------------- debian/rules | 1 - 5 files changed, 108 deletions(-) delete mode 100644 debian/alternc-ssl.cron.d delete mode 100644 debian/alternc-ssl.dirs delete mode 100755 debian/alternc-ssl.postinst delete mode 100755 debian/alternc-ssl.postrm diff --git a/debian/alternc-ssl.cron.d b/debian/alternc-ssl.cron.d deleted file mode 100644 index e520428a..00000000 --- a/debian/alternc-ssl.cron.d +++ /dev/null @@ -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 diff --git a/debian/alternc-ssl.dirs b/debian/alternc-ssl.dirs deleted file mode 100644 index 3c417eb6..00000000 --- a/debian/alternc-ssl.dirs +++ /dev/null @@ -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 diff --git a/debian/alternc-ssl.postinst b/debian/alternc-ssl.postinst deleted file mode 100755 index f2eb00d5..00000000 --- a/debian/alternc-ssl.postinst +++ /dev/null @@ -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 diff --git a/debian/alternc-ssl.postrm b/debian/alternc-ssl.postrm deleted file mode 100755 index f12f38e0..00000000 --- a/debian/alternc-ssl.postrm +++ /dev/null @@ -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# diff --git a/debian/rules b/debian/rules index 0d85457e..8407afd6 100755 --- a/debian/rules +++ b/debian/rules @@ -16,7 +16,6 @@ override_dh_install: $(MAKE) install-awstats DESTDIR=$(CURDIR)/debian/alternc-awstats $(MAKE) install-slave DESTDIR=$(CURDIR)/debian/alternc-slave $(MAKE) install-api DESTDIR=$(CURDIR)/debian/alternc-api - $(MAKE) -C ssl install DESTDIR=$(CURDIR)/debian/alternc-ssl override_dh_fixperms: dh_fixperms