From: Ivan Rako Date: Fri, 22 Apr 2011 11:22:58 +0000 (+0200) Subject: novi debian/rules i novi debian/copyright X-Git-Tag: debian/2.1.13-1~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=555fd6a113c94c78e77e835c3f73921a988cc842;p=mailman-cn.git novi debian/rules i novi debian/copyright --- diff --git a/debian/control b/debian/control index ee79eb0..7bbcd76 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Standards-Version: 3.6.1 Package: mailman-cn Architecture: all -Depends: mailman (>= 1:2.1.11), apache2-cn, carnet-tools-cn (>= 2.4) +Depends: mailman (>= 1:2.1.11), apache2-cn, carnet-tools-cn (>= 2.4), ucf Pre-Depends: pwgen Description: Powerful, web-based mailing list manager The GNU Mailing List Manager, which manages email discussion lists diff --git a/debian/postinst b/debian/postinst index f47332c..777d08b 100755 --- a/debian/postinst +++ b/debian/postinst @@ -22,7 +22,7 @@ if [ ! -L /etc/apache2/conf.d/mailman-cn.conf -a ! -f /etc/apache2/conf.d/mailma ln -sf /etc/mailman/apache.conf /etc/apache2/conf.d/mailman-cn.conf fi -HOSTNAME="`hostname --fqdn`" +hostname="`hostname --fqdn`" mmcfg_add () { opt="$1" @@ -56,7 +56,7 @@ cp_backup_conffile -p -d mailman $MM_CFG || true # ocisti smece od prosle verzije if dpkg --compare-versions "$2" lt 2:2.1.5-9; then - HN="'$HOSTNAME'" + HN="'$hostname'" grep -v -E 'DEFAULT_(URL_PATTERN|URL_HOST|EMAIL_HOST) =' $MM_CFG | \ awk '/^# Default host for web interface of newly created MLs/ { print $0; print "DEFAULT_EMAIL_HOST = '$HN'"; getline } { print $0 }' | \ awk '/^# Default domain for email addresses of newly created MLs/ { print $0; print "DEFAULT_URL_HOST = '$HN'"; getline } { print $0 }' \ @@ -74,10 +74,10 @@ mmcfg_add "DEFAULT_URL_PATTERN" "'http://%s/mailman/'" mmcfg_add "VIRTUAL_HOST_OVERVIEW" "Off" # sredi DEFAULT_URL_HOST -mmcfg_add "DEFAULT_URL_HOST" "'$HOSTNAME'" +mmcfg_add "DEFAULT_URL_HOST" "'$hostname'" # sredi DEFAULT_EMAIL_HOST -mmcfg_add "DEFAULT_EMAIL_HOST" "'$HOSTNAME'" +mmcfg_add "DEFAULT_EMAIL_HOST" "'$hostname'" # sredi PRIVATE_ARCHIVE_URL mmcfg_add "PRIVATE_ARCHIVE_URL" "'/mailman/private'" @@ -99,7 +99,7 @@ fi # kreirati mailman listu if [ -z "`list_lists | grep -i mailman`" ]; then - newlist -q mailman mailman@$HOSTNAME `pwgen 8 1` > /dev/null + newlist -q mailman mailman@$hostname `pwgen 8 1` > /dev/null fi # kreirati aliase @@ -130,7 +130,7 @@ EOF # dodati roota na mailman listu: if [ ! "`list_members mailman | wc -l`" -ge 1 ]; then add_members -r - mailman <