--- /dev/null
+mailman-cn
++--------+
+
+Mailman - Mailing List Manager
+
+Mailman je software za rad sa mailing listama. Buduci da je integriran sa
+webom, omogucava korisnicima jednostavno odrzavanje njihovih racuna, dok za
+vlasnike lista olaksava administraciju. Mailman podrzava arhiviranje poruka,
+filtriranje poruka prema sadrzaju i zaglavljima, dostavu poruka u obliku
+redovnih sazetaka, spam filtere itd.
+
+Mailman je slobodan i besplatan software koji se distribuira pod GNU General
+Public licencom. Napisan je u Pythonu i C-u.
+
+Nakon instalacije paketa nuzno je postaviti administratorsku lozinku
+naredbom /usr/sbin/mmsitepass. Ta lozinka daje pristup svim dijelovima
+Mailmanovog web sucelja koji zahtijevaju autentikaciju, sto obuhvaca sucelja
+za konfiguraciju i moderaciju bilo koje mailing liste (ako vlasnik liste
+zaboravi lozinku za pristup svojoj listi), sucelje za stvaranje nove liste,
+privatne web arhive (kojima pristup imaju samo clanovi odredjene liste) itd.
+
+Paket je prilikom instalacije stvorio listu 'mailman' koja je sistemska i
+ne smije biti obrisana. Listi mozete pristupiti koristeci web sucelje na
+adresi http://hostname/mailman/list/admin/mailman. Na adrese clanova ove
+liste stizati ce svi korisnicki zahtjevi i sistemske obavijesti o radu
+Mailman sustava (na primjer, nakon otvaranja neke nove liste na tu cete
+adresu dobiti popis aliasa koje trebate upisati u /etc/aliases datoteku).
+Paket je na ovu listu dodao adresu root accounta na vasem racunalu. Ukoliko
+ce netko drugi obavljati duznosti administatora mailing listi, mozete
+koristeci funkcije Upravljanja clanstvom u konfiguracijskom sucelju
+prijaviti neku drugu email adresu i odjaviti root account.
+
+Dodavanje nove mailing liste moze se napraviti na dva nacina, koristenjem
+web sucelja ili koristeci shell. Web sucelje se nalazi na adresi
+http://hostname/mailman/create. U polja na formi se upisu trazeni podaci, i
+u posljednje polje se upise administratorska lozinka za Mailman sustav koju
+ste prethodno kreirali komandom /usr/sbin/mmsitepass. Ukoliko koristite
+shell za kreiranje nove mailing liste ukucajte /usr/sbin/newlist te upisite
+potrebne podatke. Nakon toga cete na mail dobiti aliase koje trebate upisati
+u /etc/aliases datoteku, nakon cega cete pokrenuti komandu newaliases.
+
+Za administriranje same liste koristite web sucelje na adresi
+http://hostname/mailman/list/admin/naziv-liste. Lozinka za pristup sucelju
+moze biti ona koju koristi sam administator te liste, ali i ona koju koristi
+osoba zaduzena za kreiranje listi (kreirana komandom mmsitepass).
+
+Sa korisnicke strane dostupno je sucelje na adresi
+http://hostname/list/listinfo/naziv-liste. Koristeci navedeno sucelje
+korisnici se mogu, ukoliko je to dozvolio administrator liste, pretplatiti
+ili odjaviti sa liste. Moguce je pregledati i arhivu liste ukoliko je ona
+javna.
+
+Vise o Mailmanu mozete pronaci na http://list.org.
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Thu, 20 Nov 2003 19:17:02 +0100
--- /dev/null
+changelog.Debian
\ No newline at end of file
--- /dev/null
+mailman-cn (2:2.1.9-1) carnet-etch; urgency=low
+
+ * Prva verzija za Etch
+
+ -- Ivan Rako <irako@srce.hr> Mon, 22 Oct 2007 00:14:02 +0200
+
+mailman-cn (2:2.1.5-12) stable; urgency=low
+
+ * Ovisnost o novoj verzija koja ispravlja sigurnosne nedostatke
+ (CVE-2006-0052 i DSA 1027-1)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Thu, 6 Apr 2006 11:06:13 +0200
+
+mailman-cn (2:2.1.5-11) stable; urgency=low
+
+ * Podrazumni jezik je hrvatski
+ * Regeneriranje hrvatskog template-a u postinstu (inace pola sucelja
+ ostane na engleskom)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Sat, 25 Feb 2006 00:49:30 +0100
+
+mailman-cn (2:2.1.5-10) stable; urgency=low
+
+ * Ovisnost o novoj verziji koja ispravlja sigurnosne nedostatke
+ (DSA 955-1, CVE-2005-3573 i CVE-2005-4153)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Mon, 30 Jan 2006 13:03:12 +0100
+
+mailman-cn (2:2.1.5-9) stable; urgency=low
+
+ * Ispravak kod komentiranja stare opcije DEFAULT_URL (greskom se
+ zakomentira sve sto pocinje sa DEFAULT_URL)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Tue, 10 Jan 2006 10:34:49 +0100
+
+mailman-cn (2:2.1.5-8) stable; urgency=low
+
+ * Od sada se u maintainer skriptama koristi CARNet tools
+ * Provjera da li postoji /etc/mail/smrsh/ prije 'ln -sf'
+ * Kozmetika postinsta
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Sat, 17 Dec 2005 18:09:34 +0100
+
+mailman-cn (2:2.1.5-6.1) testing; urgency=high
+
+ * /var/lib/mailman/Mailman/mm_cfg.py -> /etc/mailman/mm_cfg.py
+ * provjera da li je /var/lib/mailman/Mailman/mm_cfg.py symlink, ako nije,
+ napravi ga symlinkom na /etc/mailman/mm_cfg.py
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Fri, 18 Feb 2005 11:47:55 +0100
+
+mailman-cn (2:2.1.5-6) testing; urgency=high
+
+ * ovisnost o novoj verziji koja ispravlja sigurnosne nedostatke
+ (DSA 674-1, CAN-2004-1177 i CAN-2004-1177)
+ * izbaceno divertanje lokalizacije
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Thu, 10 Feb 2005 14:07:32 +0100
+
+mailman-cn (2:2.1.5-5) sarge; urgency=high
+
+ * kozmetika postinsta
+ * ovisnost o novoj verziji koja ispravlja sigurnosne nedostatke
+ (CAN-2004-1143 i CAN-2004-1177)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Fri, 21 Jan 2005 12:15:50 +0100
+
+mailman-cn (2:2.1.4-5)
+
+ * /usr/local/doc -> /usr/share/doc
+ * kozmetika postinsta
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Thu, 24 Jun 2004 10:34:45 +0200
+
+mailman-cn (2:2.1.4-1)
+
+ * inicijalna verzija paketa
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Thu, 20 Nov 2003 19:29:17 +0100
--- /dev/null
+Source: mailman-cn
+Section: mail
+Priority: optional
+Maintainer: Ivan Rako <Ivan.Rako@CARNet.hr>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
+
+Package: mailman-cn
+Architecture: all
+Depends: mailman (>= 2.1.9), apache2-cn, carnet-tools-cn (>= 2.4)
+Pre-Depends: pwgen
+Description: Powerful, web-based mailing list manager
+ The GNU Mailing List Manager, which manages email discussion lists
+ much like Majordomo and Smartmail. Unlike most similar products,
+ Mailman gives each mailing list a web page, and allows users to
+ subscribe, unsubscribe, etc. over the web. Even the list manager can
+ administer his or her list entirely from the web.
--- /dev/null
+README.CARNet
+changelog.CARNet
--- /dev/null
+#!/bin/sh -e
+
+set -e
+
+[ "$1" = "configure" ] || exit 0
+
+# Load CARNet tools
+. /usr/share/carnet-tools/functions.sh
+# Load Debconf
+. /usr/share/debconf/confmodule
+
+# Fri, 18 Feb 2005 11:48:51 +0100
+MM_CFG="/etc/mailman/mm_cfg.py"
+
+if [ ! -L /usr/lib/mailman/Mailman/mm_cfg.py -a -f /usr/lib/mailman/Mailman/mm_cfg.py ]; then
+ mv /usr/lib/mailman/Mailman/mm_cfg.py /usr/lib/mailman/Mailman/mm_cfg.py.cn-bak
+ ln -sf /etc/mailman/mm_cfg.py /usr/lib/mailman/Mailman/mm_cfg.py
+fi
+
+if [ ! -L /etc/apache2/conf.d/mailman-cn.conf -a ! -f /etc/apache2/conf.d/mailman-cn.conf ]; then
+ ln -sf /etc/mailman/apache.conf /etc/apache2/conf.d/mailman-cn.conf
+fi
+
+HOSTNAME="`hostname --fqdn`"
+
+mmcfg_add () {
+ opt="$1"
+ val="$2"
+ if ( grep -E -q "^$opt " $MM_CFG && ! grep -E -q "^$opt = $val$" $MM_CFG ) || grep -E -q "^#$opt " $MM_CFG; then
+ perl -ne \
+"if (/^#?$opt /) {
+ if (! \$found) {
+ \$found = 1;
+ \$_ = \"$opt = $val\\n\";
+ } else {
+ next;
+ }
+ }
+ print \$_;
+" < $MM_CFG > ${MM_CFG}.$$
+ if ! cmp -s $MM_CFG ${MM_CFG}.$$; then
+ cp_mv ${MM_CFG}.$$ $MM_CFG
+ restart=yes
+ else
+ rm -f ${MM_CFG}.$$
+ exit 1 # shouldn't happen
+ fi
+ elif ! grep -E -q "^$opt = $val$" $MM_CFG; then
+ echo "$opt = $val" >> $MM_CFG
+ restart=yes
+ fi
+}
+
+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'"
+ 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 }' \
+ > ${MM_CFG}.$$
+ cp_mv ${MM_CFG}.$$ $MM_CFG
+fi
+
+# stavi hrvatski kao jezik
+mmcfg_add "DEFAULT_SERVER_LANGUAGE" "'hr'"
+
+# sredi DEFAULT_URL_PATTERN
+mmcfg_add "DEFAULT_URL_PATTERN" "'http://%s/mailman/'"
+
+# sredi VIRTUAL_HOST_OVERVIEW
+mmcfg_add "VIRTUAL_HOST_OVERVIEW" "Off"
+
+# sredi DEFAULT_URL_HOST
+mmcfg_add "DEFAULT_URL_HOST" "'$HOSTNAME'"
+
+# sredi DEFAULT_EMAIL_HOST
+mmcfg_add "DEFAULT_EMAIL_HOST" "'$HOSTNAME'"
+
+# sredi PRIVATE_ARCHIVE_URL
+mmcfg_add "PRIVATE_ARCHIVE_URL" "'/mailman/private'"
+
+# kreirati link za smrsh
+if [ -d /etc/mail/smrsh/ ]; then
+ ln -sf /var/lib/mailman/mail/mailman /etc/mail/smrsh/mailman
+fi
+
+# zakomentiraj prastare opcije
+if [ -f $MM_CFG ]; then
+ cp_check_and_sed '^DEFAULT_MAIL_HOST ' \
+ 's/^DEFAULT_MAIL_HOST .*/d' \
+ $MM_CFG || true
+ cp_check_and_sed '^DEFAULT_URL ' \
+ 's/^\(DEFAULT_URL .*\)/#\1/g' \
+ $MM_CFG || true
+fi
+
+# kreirati mailman listu
+if [ -z "`list_lists | grep -i mailman`" ]; then
+ newlist -q mailman mailman@$HOSTNAME `pwgen 8 1` > /dev/null
+fi
+
+# kreirati aliase
+if ! grep -q "mailman.*/var/lib/mailman/mail/mailman" /etc/aliases; then
+ cat >> /etc/aliases <<EOF
+## mailman mailing list
+mailman: "|/var/lib/mailman/mail/mailman post mailman"
+mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman"
+mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman"
+mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman"
+mailman-join: "|/var/lib/mailman/mail/mailman join mailman"
+mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman"
+mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman"
+mailman-request: "|/var/lib/mailman/mail/mailman request mailman"
+mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman"
+mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"
+EOF
+ newaliases > /dev/null
+fi
+
+withlist mailman > /dev/null 2> /dev/null << EOF
+m.advertised = False
+m.Lock()
+m.Save()
+m.Unlock()
+EOF
+
+# dodati roota na mailman listu:
+if [ ! "`list_members mailman | wc -l`" -ge 1 ]; then
+ add_members -r - mailman <<EOF
+root@$HOSTNAME
+EOF
+fi
+
+# sredi debconf da site bude na hrvatskom
+db_get mailman/site_languages || true
+site_languages="$RET"
+if ! echo $site_languages | grep -q 'hr'; then
+ site_languages="$site_languages, hr"
+ db_set mailman/site_languages "$site_languages" || true
+ db_go || true
+fi
+db_set mailman/default_server_language "hr" || true
+db_go || true
+db_stop || true
+
+site_languages="`echo $site_languages | tr -d ','`"
+mm_etc=/etc/mailman
+mm_dist=/usr/share/mailman
+
+for lang in ${site_languages}; do
+ [ -d "${mm_dist}/${lang}" ] || break
+ echo -n "Installing site language ${lang} " >&2
+ mkdir -p ${mm_etc}/${lang}
+ for file in $(ls ${mm_dist}/${lang}); do
+ echo -n . >&2
+ langfile=${lang}/${file}
+ ucf --debconf-ok --three-way ${mm_dist}/${langfile} ${mm_etc}/${langfile} 2>/dev/null
+ # Upon install ucf leaves a duplicate in .dpkg-dist (Bug #238730), remove it
+ cmp -s ${mm_etc}/${langfile} ${mm_etc}/${langfile}.dpkg-dist \
+ && rm ${mm_etc}/${langfile}.dpkg-dist
+ done
+ echo " done." >&2
+done
+
+
+# restart mailman
+if [ "$restart" = "yes" -a -x /etc/init.d/mailman ]; then
+ /etc/init.d/mailman stop
+ /etc/init.d/mailman start
+fi
+
+# restartat apache2
+if [ -x /etc/init.d/apache2 ]; then
+ /etc/init.d/apache2 reload || true
+fi
+
+# promjena passworda
+echo
+if [ ! -f /var/lib/mailman/data/adm.pw ]; then
+ echo "CN: IMPORTANT: Change your site administrator password using the command:"
+ echo "CN:"
+ echo "CN: # mmsitepass"
+ echo "CN:"
+fi
+echo "CN: Web interface is at http://$HOSTNAME/mailman/admin/"
--- /dev/null
+#!/bin/sh
+
+set -e
+
+[ "$1" = "purge" ] || exit 0
+
+if [ /etc/apache2/conf.d/mailman-cn.conf ]; then
+ rm -f /etc/apache2/conf.d/mailman-cn.conf
+fi
+
+# restartat apache
+if [ -x /etc/init.d/apache2 ]; then
+ /etc/init.d/apache2 reload || true
+fi
--- /dev/null
+#!/bin/sh
+
+set -e
+
+[ "$1" = "remove" ] || exit 0
+
+# restartat apache
+if [ -x /etc/init.d/apache2 ]; then
+ /etc/init.d/apache2 reload || true
+fi
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ # $(MAKE)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ # -$(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/openssh-cn.
+ # $(MAKE) install DESTDIR=$(CURDIR)/debian/openssh-cn
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -k
+ dh_installdocs
+# dh_installexamples
+ dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+# dh_link
+# dh_strip
+# dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+# dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure