diff --git a/.gitattributes b/.gitattributes index e78fe819..48c2f357 100644 --- a/.gitattributes +++ b/.gitattributes @@ -245,23 +245,22 @@ bureau/locales/manual.pot -text bureau/locales/messages.pot -text bureau/locales/pt_BR/LC_MESSAGES/messages.po -text debian/README.Debian -text -debian/alternc-slave.dirs -text -debian/alternc-slave.install -text -debian/alternc-slave.links -text -debian/alternc-slave.lintian -text -debian/alternc-slave.logrotate -text -debian/alternc-slave.postinst -text -debian/alternc-slave.postrm -text -debian/alternc-slave.prerm -text -debian/alternc.cron.d -text -debian/alternc.dirs -text -debian/alternc.links -text -debian/alternc.lintian -text -debian/alternc.logrotate -text -debian/alternc.postinst -text -debian/alternc.postrm -text -debian/alternc.preinst -text -debian/alternc.prerm -text +debian/alternc-bureau.install -text +debian/alternc-misc.cron.d -text +debian/alternc-misc.dirs -text +debian/alternc-misc.links -text +debian/alternc-misc.postinst -text +debian/alternc-misc.postrm -text +debian/alternc-misc.preinst -text +debian/alternc-misc.prerm -text +debian/alternc-node.dirs -text +debian/alternc-node.install -text +debian/alternc-node.links -text +debian/alternc-node.lintian -text +debian/alternc-node.logrotate -text +debian/alternc-node.postinst -text +debian/alternc-node.postrm -text +debian/alternc-node.prerm -text debian/changelog -text debian/compat -text debian/config -text diff --git a/debian/alternc-bureau.install b/debian/alternc-bureau.install new file mode 100644 index 00000000..21f049e6 --- /dev/null +++ b/debian/alternc-bureau.install @@ -0,0 +1 @@ +var/alternc/bureau/* diff --git a/debian/alternc.cron.d b/debian/alternc-misc.cron.d similarity index 100% rename from debian/alternc.cron.d rename to debian/alternc-misc.cron.d diff --git a/debian/alternc.dirs b/debian/alternc-misc.dirs similarity index 93% rename from debian/alternc.dirs rename to debian/alternc-misc.dirs index b9178ee6..b7f4c441 100644 --- a/debian/alternc.dirs +++ b/debian/alternc-misc.dirs @@ -1,18 +1,3 @@ -etc/alternc -etc/alternc/templates -etc/bind -etc/bind/templates -etc/courier -etc/cron.d -etc/phpmyadmin -etc/postfix -etc/squirrelmail -usr/bin -usr/lib/alternc -usr/sbin -usr/share/alternc/install -usr/share/locale/fr/LC_MESSAGES -usr/share/lintian/overrides/ var/alternc/apacheconf var/alternc/apacheconf/_ var/alternc/apacheconf/0 @@ -211,6 +196,3 @@ var/alternc/mail/z var/alternc/mla var/alternc/redir var/alternc/tmp -var/backups/alternc -var/log/alternc -var/run/alternc diff --git a/debian/alternc.links b/debian/alternc-misc.links similarity index 100% rename from debian/alternc.links rename to debian/alternc-misc.links diff --git a/debian/alternc-misc.postinst b/debian/alternc-misc.postinst new file mode 100644 index 00000000..ade01aa6 --- /dev/null +++ b/debian/alternc-misc.postinst @@ -0,0 +1,88 @@ +#!/bin/sh + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +CONFIGFILE="/etc/alternc/local.sh" + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + + if [ -e $CONFIGFILE ]; then + # source local.sh variables + . $CONFIGFILE + fi + + # /var/alternc/dns/d/www.example.com + FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`" + if [ "$FQDN_LETTER" = "$FQDN" ] + then + FQDN_LETTER="_" + fi + + # Erase all apacheconf file + # They will be regenerated without the bug by upgrade_check.sh below. + if dpkg --compare-versions "$2" le "0.9.3.9-globenet14"; then + rm -f /var/alternc/apacheconf/*/* + rm -f /var/alternc/apacheconf/override_php.conf + fi + + # Add access to the management panel + ln -nsf /var/alternc/bureau /var/alternc/dns/$FQDN_LETTER/$FQDN + + # Bind stuff + touch /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf + chown root:bind /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf + chmod 640 /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf + touch /var/run/alternc/refresh_slave + /usr/lib/alternc/slave_dns + # Apache will not start without this file + touch /var/alternc/apacheconf/override_php.conf + + # Update l18n files + /usr/share/alternc/install/dopo.sh + + # Add basedir protection + /usr/lib/alternc/basedir_prot.sh + + ;; + + 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# + +exit 0 + +# vim: et sw=4 diff --git a/debian/alternc.postrm b/debian/alternc-misc.postrm similarity index 83% rename from debian/alternc.postrm rename to debian/alternc-misc.postrm index 838b6e96..9892d23f 100644 --- a/debian/alternc.postrm +++ b/debian/alternc-misc.postrm @@ -15,9 +15,6 @@ set -e case "$1" in purge) - rm -f /etc/alternc/local.sh /etc/alternc/my.cnf /etc/alternc/bureau.conf - rm -f /var/backups/alternc/etc-installed.tar.gz - # Purge database? db_input high alternc/postrm_remove_databases || true db_go @@ -31,7 +28,7 @@ case "$1" in db_go db_get alternc/postrm_remove_datafiles || true if [ "$RET" = "true" ]; then - rm -rf /var/backups/alternc /var/alternc/dns /var/alternc/html /var/alternc/redir + rm -rf /var/alternc/dns /var/alternc/html /var/alternc/redir fi # Purge bind zones @@ -51,7 +48,6 @@ case "$1" in fi rm -rf /var/alternc/apacheconf /var/alternc/cgi-bin /var/alternc/bureau /var/alternc/exec.usr /var/alternc/mla /var/alternc/redir /var/alternc/tmp /var/log/alternc - rm -f /etc/apache/conf.d/override_php.conf /etc/apache/conf.d/alternc-ssl.conf /etc/apache/conf.d/alternc.conf ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade) ;; diff --git a/debian/alternc.preinst b/debian/alternc-misc.preinst similarity index 100% rename from debian/alternc.preinst rename to debian/alternc-misc.preinst diff --git a/debian/alternc.prerm b/debian/alternc-misc.prerm similarity index 89% rename from debian/alternc.prerm rename to debian/alternc-misc.prerm index aa02f673..b32c18a9 100644 --- a/debian/alternc.prerm +++ b/debian/alternc-misc.prerm @@ -5,9 +5,6 @@ case "$1" in remove) - # remove postfix from the sasl group (might not be user will though...) - deluser --quiet postfix sasl || true - . /etc/alternc/local.sh FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`" diff --git a/debian/alternc-slave.dirs b/debian/alternc-node.dirs similarity index 100% rename from debian/alternc-slave.dirs rename to debian/alternc-node.dirs diff --git a/debian/alternc-slave.install b/debian/alternc-node.install similarity index 100% rename from debian/alternc-slave.install rename to debian/alternc-node.install diff --git a/debian/alternc-slave.links b/debian/alternc-node.links similarity index 100% rename from debian/alternc-slave.links rename to debian/alternc-node.links diff --git a/debian/alternc-slave.lintian b/debian/alternc-node.lintian similarity index 100% rename from debian/alternc-slave.lintian rename to debian/alternc-node.lintian diff --git a/debian/alternc-slave.logrotate b/debian/alternc-node.logrotate similarity index 100% rename from debian/alternc-slave.logrotate rename to debian/alternc-node.logrotate diff --git a/debian/alternc-slave.postinst b/debian/alternc-node.postinst similarity index 100% rename from debian/alternc-slave.postinst rename to debian/alternc-node.postinst diff --git a/debian/alternc-slave.postrm b/debian/alternc-node.postrm similarity index 100% rename from debian/alternc-slave.postrm rename to debian/alternc-node.postrm diff --git a/debian/alternc-slave.prerm b/debian/alternc-node.prerm similarity index 100% rename from debian/alternc-slave.prerm rename to debian/alternc-node.prerm diff --git a/debian/alternc.lintian b/debian/alternc.lintian deleted file mode 100644 index 8f822821..00000000 --- a/debian/alternc.lintian +++ /dev/null @@ -1,44 +0,0 @@ -alternc: non-standard-dir-in-var var/alternc/ -alternc: non-standard-dir-in-var var/backups/ -alternc: file-in-unusual-dir -alternc: possible-bashism-in-maintainer-script -alternc: setuid-binary usr/lib/alternc/mail_add 4750 root/www-data -alternc: setuid-binary usr/lib/alternc/mail_del 4750 root/www-data -alternc: setuid-binary usr/lib/alternc/quota_edit 4750 root/www-data -alternc: setuid-binary usr/lib/alternc/quota_get 4750 root/www-data -alternc: setuid-binary usr/lib/alternc/mem_add 4750 root/www-data -alternc: setuid-binary usr/lib/alternc/mem_del 4750 root/www-data -alternc: setuid-binary usr/lib/alternc/db_create 4750 root/www-data -alternc: setuid-binary usr/lib/alternc/du.pl 4750 root/www-data -alternc: non-standard-executable-perm usr/lib/alternc/quota_edit.sh 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/quota_get.sh 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/basedir_prot.sh 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/sqlbackup.sh 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/rawstat.daily 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/quota_init 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/quota_delete 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/update_domains.sh 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/slave_dns 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/sendmail 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/spoolsize.php 0750 != 0755 -alternc: non-standard-executable-perm usr/lib/alternc/fixperms.sh 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/sendmail 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/quota_edit.sh 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/fixperms.sh 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/quota_edit 4750 -alternc: executable-is-not-world-readable usr/lib/alternc/quota_get.sh 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/mail_add 4750 -alternc: executable-is-not-world-readable usr/lib/alternc/mail_del 4750 -alternc: executable-is-not-world-readable usr/lib/alternc/mem_del 4750 -alternc: executable-is-not-world-readable usr/lib/alternc/quota_delete 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/mem_add 4750 -alternc: executable-is-not-world-readable usr/lib/alternc/sqlbackup.sh 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/quota_get 4750 -alternc: executable-is-not-world-readable usr/lib/alternc/slave_dns 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/update_domains.sh 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/du.pl 4750 -alternc: executable-is-not-world-readable usr/lib/alternc/quota_init 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/basedir_prot.sh 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/spoolsize.php 0750 != 0755 -alternc: executable-is-not-world-readable usr/lib/alternc/rawstat.daily 0750 != 0755 -alternc: using-first-person-in-templates alternc/monitor_ip diff --git a/debian/alternc.logrotate b/debian/alternc.logrotate deleted file mode 100644 index acbaa5a1..00000000 --- a/debian/alternc.logrotate +++ /dev/null @@ -1,32 +0,0 @@ -# -# Logrotate.d script for AlternC -# $Id: alternc.logrotate,v 1.1 2004/05/25 02:35:38 anonymous Exp $ -# - -/var/log/alternc/bureau.log { - monthly - missingok - create 0640 www-data www-data - rotate 12 - compress - delaycompress -} - -/var/log/alternc/domaines.log { - monthly - missingok - create 0640 root root - rotate 12 - compress - delaycompress -} - -/var/log/alternc/sub_domaines.log { - monthly - missingok - create 0640 root root - rotate 12 - compress - delaycompress -} - diff --git a/debian/alternc.postinst b/debian/alternc.postinst deleted file mode 100644 index 628d5a16..00000000 --- a/debian/alternc.postinst +++ /dev/null @@ -1,255 +0,0 @@ -#!/bin/sh - -set -e - -# Source debconf library. -. /usr/share/debconf/confmodule - -CONFIGFILE="/etc/alternc/local.sh" - -update_var() { - local question="$1" - local var="$2" - db_get "$question" - if [ ! -z "$RET" ]; then - grep -Eq "^ *$var=" $CONFIGFILE || echo "$var=" >> $CONFIGFILE - SED_SCRIPT="$SED_SCRIPT;s\\^ *$var=.*\\$var=\"$RET\"\\" - fi -} - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package -# -# quoting from the policy: -# Any necessary prompting should almost always be confined to the -# post-installation script, and should be protected with a conditional -# so that unnecessary prompting doesn't happen if a package's -# installation fails and the `postinst' is called with `abort-upgrade', -# `abort-remove' or `abort-deconfigure'. - -case "$1" in - configure) - - # ajoute l'user postfix au groupe sasl - adduser --quiet postfix sasl - - # corriger les permissions du chroot - mkdir -p /var/spool/postfix/var/run/saslauthd || true - dpkg-statoverride --quiet --update --add root sasl 710 /var/spool/postfix/var/run/saslauthd || true - - # build local.sh if it does not exist - if [ ! -f $CONFIGFILE ]; then - cat > $CONFIGFILE < $CONFIGFILE.tmp - mv -f $CONFIGFILE.tmp $CONFIGFILE - - # Setup grants - db_get "alternc/mysql/host" - MYSQL_HOST="$RET" - if [ "$MYSQL_HOST" != "localhost" -o -e /usr/sbin/mysqld ]; then - # compatibility shims with my.cnf - host="$RET" - db_get "alternc/mysql/db" - database="$RET" - db_get "alternc/mysql/user" - user="$RET" - db_get "alternc/mysql/password" - password="$RET" - - # we source (instead of forking) mysql.sh so that it gets the local environment above - . /usr/share/alternc/install/mysql.sh - fi - - # forget the password - db_reset alternc/mysql/password || true - db_fset alternc/mysql/password "seen" "false" || true - - if [ -e $CONFIGFILE ]; then - # source local.sh variables - . $CONFIGFILE - fi - - # /var/alternc/dns/d/www.example.com - FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`" - if [ "$FQDN_LETTER" = "$FQDN" ] - then - FQDN_LETTER="_" - fi - - # Erase all apacheconf file - # They will be regenerated without the bug by upgrade_check.sh below. - if dpkg --compare-versions "$2" le "0.9.3.9-globenet14"; then - rm -f /var/alternc/apacheconf/*/* - rm -f /var/alternc/apacheconf/override_php.conf - fi - - echo "checking for upgrades" - /usr/share/alternc/install/upgrade_check.sh $2 - - echo "config phpmyadmin" - include_str='include("/etc/alternc/phpmyadmin.inc.php")' - pma_config=/etc/phpmyadmin/config.inc.php - if ! grep -e "$include_str" $pma_config > /dev/null 2>&1; then - echo "" >> $pma_config - fi - - # Add access to the management panel - ln -nsf /var/alternc/bureau /var/alternc/dns/$FQDN_LETTER/$FQDN - - # Bind stuff - touch /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf - chown root:bind /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf - chmod 640 /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf - touch /var/run/alternc/refresh_slave - /usr/lib/alternc/slave_dns - # Apache will not start without this file - touch /var/alternc/apacheconf/override_php.conf - - # Update l18n files - /usr/share/alternc/install/dopo.sh - - # important: postinst gele sans ca - db_stop - - echo "running alternc.install" - alternc.install - - # Add basedir protection - /usr/lib/alternc/basedir_prot.sh - - if [ -x /usr/sbin/apache ]; then - if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then - ln -sf /etc/alternc/apache-ssl.conf \ - /etc/apache-ssl/conf.d/alternc.conf - fi - - if [ ! -h /etc/apache/conf.d/alternc.conf ]; then - ln -sf /etc/alternc/apache.conf \ - /etc/apache/conf.d/alternc.conf - fi - - if [ ! -h /etc/apache/conf.d/override_php.conf ]; then - ln -sf /var/alternc/apacheconf/override_php.conf \ - /etc/apache/conf.d/override_php.conf - fi - fi - if [ -x /usr/sbin/apache2 ]; then - if [ ! -h /etc/apache2/conf.d/alternc.conf ]; then - ln -sf /etc/alternc/apache.conf \ - /etc/apache/conf.d/alternc.conf - fi - if [ ! -h /etc/apache2/conf.d/override_php.conf ]; then - ln -sf /var/alternc/apacheconf/override_php.conf \ - /etc/apache/conf.d/override_php.conf - fi - - fi - ;; - - 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# - -exit 0 - -# vim: et sw=4 diff --git a/debian/changelog b/debian/changelog index 6dc43a23..45379648 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,8 +17,10 @@ alternc (0.9.9) stable; urgency=low * #1131: allow admins to make all list URLs be based on the FQDN * #1087: allow admins to create user subdomains according to hardcoded value or available domains - * make a new alternc-slave package that eases installation on NFS-backed - frontend nodes + * split alternc in multiple debian packages: + * alternc-bureau: the /var/alternc/bureau files + * alternc-node: everything but the /var/alternc directory and cronjobs + * alternc-misc: the backend scripts and everything else -- Antoine Beaupré Tue, 15 Apr 2008 11:52:56 -0400 diff --git a/debian/control b/debian/control index 785c7668..9f973de8 100644 --- a/debian/control +++ b/debian/control @@ -10,8 +10,62 @@ Standards-Version: 3.7.3 Package: alternc Architecture: all Pre-depends: debconf (>= 0.5.00) | debconf-2.0 +Depends: alternc-bureau, alternc-misc, alternc-node, debianutils (>= 1.13.1) +Recommends: mysql-server +Conflicts: alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4) +Suggests: alternc-awstats, alternc-mailman, alternc-changepass, pop-before-smtp, magpierss +Description: hosting software managment suite for Debian + Hosting software suite based on Valentin Lacambre's altern.org French hosting + service. It uses Apache, Postfix, Sympa, MySQL and PHP to allow a web-based + managment of services, such as web hosting, mail hosting, mailing lists, + virtual hosts, and so on. + . + AlternC is mainly a PHP based administration interface and some conf files + for the softwares used by it. + . + This is a meta package that installs the whole AlternC suite. +Homepage: http://www.alternc.org/ + +Package: alternc-bureau +Architecture: all +Pre-depends: debconf (>= 0.5.00) | debconf-2.0 +Depends: debianutils (>= 1.13.1), php5-mysql | php4-mysql, wget, rsync, locales, wwwconfig-common, php5-cli | php4-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), mysql-client +Recommends: alternc-node, alternc +Description: hosting software managment suite for Debian + Hosting software suite based on Valentin Lacambre's altern.org French hosting + service. It uses Apache, Postfix, Sympa, MySQL and PHP to allow a web-based + managment of services, such as web hosting, mail hosting, mailing lists, + virtual hosts, and so on. + . + AlternC is mainly a PHP based administration interface and some conf files + for the softwares used by it. + . + This package distributes the PHP files that make up the web interface. +Homepage: http://www.alternc.org/ + +Package: alternc-misc +Architecture: all +Pre-depends: debconf (>= 0.5.00) | debconf-2.0 +Depends: debianutils (>= 1.13.1), php5-mysql | php4-mysql, wget, rsync, quota, ca-certificates, locales, perl-suid, perl, php5-cli | php4-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), pdksh (>= 5.2.14-6), adduser, mysql-client +Recommends: alternc-node +Description: hosting software managment suite for Debian + Hosting software suite based on Valentin Lacambre's altern.org French hosting + service. It uses Apache, Postfix, Sympa, MySQL and PHP to allow a web-based + managment of services, such as web hosting, mail hosting, mailing lists, + virtual hosts, and so on. + . + AlternC is mainly a PHP based administration interface and some conf files + for the softwares used by it. + . + This package provides backend cronjobs and all the stuff that doesn't fit + in other packages. +Homepage: http://www.alternc.org/ + +Package: alternc-node +Architecture: all +Pre-depends: debconf (>= 0.5.00) | debconf-2.0 Depends: debianutils (>= 1.13.1), apache | apache2, libapache-mod-php5 | libapache2-mod-php5 | libapache-mod-php4 | libapache2-mod-php4, courier-ssl, courier-imap-ssl, courier-pop-ssl, php5-mysql | php4-mysql, phpmyadmin, postfix, proftpd-mysql, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli | php4-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), pdksh (>= 5.2.14-6), adduser, mysql-client -Recommends: libapache-mod-gzip, apache-ssl, mysql-server +Recommends: libapache-mod-gzip, apache-ssl Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4) Provides: alternc-admintools Replaces: alternc-admintools @@ -23,29 +77,9 @@ Description: hosting software managment suite for Debian virtual hosts, and so on. . AlternC is mainly a PHP based administration interface and some conf files - for the softwares used by it. More information at http://www.alternc.org/ -Homepage: http://www.alternc.org/ - -Package: alternc-slave -Architecture: all -Pre-depends: debconf (>= 0.5.00) | debconf-2.0 -Depends: debianutils (>= 1.13.1), apache | apache2, libapache-mod-php5 | libapache2-mod-php5 | libapache-mod-php4 | libapache2-mod-php4, courier-ssl, courier-imap-ssl, courier-pop-ssl, php5-mysql | php4-mysql, phpmyadmin, postfix, proftpd-mysql, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli | php4-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), pdksh (>= 5.2.14-6), adduser, mysql-client -Recommends: libapache-mod-gzip, apache-ssl -Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4), alternc -Provides: alternc -Replaces: alternc -Suggests: alternc-awstats, alternc-mailman, alternc-changepass, pop-before-smtp, magpierss -Description: hosting software managment suite for Debian - Hosting software suite based on Valentin Lacambre's altern.org French hosting - service. It uses Apache, Postfix, Sympa, MySQL and PHP to allow a web-based - managment of services, such as web hosting, mail hosting, mailing lists, - virtual hosts, and so on. - . - AlternC is mainly a PHP based administration interface and some conf files - for the softwares used by it. More information at http://www.alternc.org/ + for the softwares used by it. . This package is designed for frontend nodes in a load balancing setup, where the /var/alternc directory is not touched and managed over NFS. Homepage: http://www.alternc.org/ - diff --git a/debian/rules b/debian/rules index 5e57e75d..c767cac8 100755 --- a/debian/rules +++ b/debian/rules @@ -81,8 +81,7 @@ install: build # Remove CVS directories /usr/bin/find debian/alternc -depth -type d -name CVS -exec rm {} -rf \; /usr/bin/find debian/alternc -depth -type d -name .svn -exec rm {} -rf \; - cp debian/alternc.lintian debian/alternc/usr/share/lintian/overrides/alternc - cp debian/alternc-slave.lintian debian/alternc/usr/share/lintian/overrides/alternc-slavedns + cp debian/alternc-node.lintian debian/alternc/usr/share/lintian/overrides/alternc-slavedns # This single target is used to build all the packages, all at once, or # one at a time. So keep in mind: any options passed to commands here will diff --git a/debian/templates b/debian/templates index e04e5b2a..5c75d5b7 100644 --- a/debian/templates +++ b/debian/templates @@ -1,4 +1,4 @@ -Template: alternc/welcomeconfirm +Template: alternc-node/welcomeconfirm Type: boolean Default: true _Description: Do you REALLY want to install AlternC on this computer ? @@ -11,7 +11,7 @@ _Description: Do you REALLY want to install AlternC on this computer ? . YOU HAVE BEEN WARNED. -Template: alternc/desktopname +Template: alternc-node/desktopname Type: string _Description: Fully qualified name of the desktop: Please enter the fully qualified name of your server. This will be the @@ -20,13 +20,13 @@ _Description: Fully qualified name of the desktop: . The default should be ok if your machine is correctly configured. -Template: alternc/hostingname +Template: alternc-node/hostingname Type: string _Description: Name of your hosting service: Please enter the name of your hosting service. It may be your company's name or your personnal name or whatever you want to ... -Template: alternc/ns1 +Template: alternc-node/ns1 Type: string _Description: Name of the primary domain name server: Please enter the fully qualified name of your primary dns server. It can @@ -35,7 +35,7 @@ _Description: Name of the primary domain name server: name server that keep in sync with your alternc's server(s). . The default value should be good in most case. -Template: alternc/ns2 +Template: alternc-node/ns2 Type: string _Description: Name of the secondary domain name server: Please enter the fully qualified name of your secondary dns server. It can @@ -46,7 +46,7 @@ _Description: Name of the secondary domain name server: You may contact the AlternC's users mailing list if you want to exchange dns service with other AlternC's users. -Template: alternc/mysql/host +Template: alternc-node/mysql/host Type: string _Description: Name of the mysql server: Please enter the fully qualified name of your mysql server host. On small @@ -58,20 +58,20 @@ _Description: Name of the mysql server: "127.0.0.1" instead of "localhost" if your postfix installation is configured in a chroot (which is the case, by default). -Template: alternc/mysql/db +Template: alternc-node/mysql/db Type: string _Description: AlternC's mysql system database: AlternC will create a mysql database to store it's system data. Please choose the name of this database here. The default value should be good in most case. -Template: alternc/mysql/user +Template: alternc-node/mysql/user Type: string _Description: AlternC's mysql account: AlternC will create a mysql administrator account. Please choose it's username here. The default value should be good in most case. -Template: alternc/mysql/password +Template: alternc-node/mysql/password Type: password _Description: Password of the AlternC's mysql account: AlternC requires an administrator account on the mysql server. It will be @@ -81,7 +81,7 @@ _Description: Password of the AlternC's mysql account: Please choose a quite complex password since it will have full access to the system database !!! -Template: alternc/mysql/client +Template: alternc-node/mysql/client Type: string _Description: The server to GRANT permissions to: AlternC and MySQL can be installed on different servers. In order to have @@ -89,7 +89,7 @@ _Description: The server to GRANT permissions to: to the hostname or IP the Apache server will appear as connecting from to the MySQL server. -Template: alternc/sql/backup_type +Template: alternc-node/sql/backup_type Type: select Choices: rotate, date _Description: The way backup rotation is executated @@ -99,7 +99,7 @@ _Description: The way backup rotation is executated rotate - backup.sql, backup.sql.0, backup.sql.1 date - backup.sql, backup.sql.20080709, backup.sql.20080708 -Template: alternc/sql/backup_overwrite +Template: alternc-node/sql/backup_overwrite Type: select Choices: no, rename, overwrite _Description: Behavior of the backup script when it encounters a unmanaged file @@ -107,13 +107,13 @@ _Description: Behavior of the backup script when it encounters a unmanaged file about when doing backups. The default behavior is to skip those files and ignore it. -Template: alternc/public_ip +Template: alternc-node/public_ip Type: string _Description: The primary IP of this server: AlternC will default the A records for domains it hosts to this address. In other words, this is the address everyone can reach to server at. -Template: alternc/internal_ip +Template: alternc-node/internal_ip Type: string _Description: The internal IP of this server: AlternC will configure Apache and other services to listen to this @@ -122,13 +122,13 @@ _Description: The internal IP of this server: . In other words, this is the IP address of eth0. -Template: alternc/default_mx +Template: alternc-node/default_mx Type: string _Description: The default MX to assign to new domains: AlternC will assign this hostname as the MX record for all the domains it hosts. It is usually better be left alone. -Template: alternc/alternc_location +Template: alternc-node/alternc_location Type: string _Description: The path where AlternC is installed: Please enter the partition name where alternc is installed. This is used @@ -136,24 +136,24 @@ _Description: The path where AlternC is installed: . Warning : Be careful ! It can generate some problems. -Template: alternc/monitor_ip +Template: alternc-node/monitor_ip Type: string _Description: The monitoring server: The IP address (or ip/prefix) of the server(s) which must be authorized to ping us and access apache status pages. Completely optional. -Template: alternc/bind_internal +Template: alternc-node/bind_internal Type: string _Description: trusted servers for bind: IP address or prefix of trusted machines for DNS transfers, delimited by ';', optional. -Template: alternc/mynetwork +Template: alternc-node/mynetwork Type: string _Description: SMTP authorized networks: IP addresses of the networks authorized in SMTP, space-delimited. -Template: alternc/pop_before_smtp_warning +Template: alternc-node/pop_before_smtp_warning Type: note _Description: POP Before SMTP deprecated AlternC doesn't automatically configure the pop-before-smtp package @@ -167,22 +167,22 @@ _Description: POP Before SMTP deprecated hash:/var/lib/pop-before-smtp/hosts must also be added to the mynetworks directive of /etc/postfix/main.cf -Template: alternc/postrm_remove_databases +Template: alternc-node/postrm_remove_databases Type: boolean _Description: Should AlternC remove all databases (/var/lib/mysql/) ? All users databases will be trashed -Template: alternc/postrm_remove_datafiles +Template: alternc-node/postrm_remove_datafiles Type: boolean _Description: Should AlternC remove users datas ? The files and apache redirections created by users will be trashed -Template: alternc/postrm_remove_bind +Template: alternc-node/postrm_remove_bind Type: boolean _Description: Should AlternC remove bind zones ? It will delete all bind zones created by AlternC -Template: alternc/postrm_remove_mailboxes +Template: alternc-node/postrm_remove_mailboxes Type: boolean _Description: Should AlternC remove bind mailboxes ? If you accept all users e-mails will be deleted