--- /dev/null
+mysql-cn (2:5.0.32-1) carnet-etch; urgency=low
+
+ * izdanje paketa za Etch
+ * prva verzija sa source paketom
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr> Sat, 8 Sep 2007 21:43:34 +0200
+
+mysql-cn (2:4.0.24-10.5) sarge; urgency=low
+
+ * Dodana provjera da li postoji lozinka zapisana u konfiguracijskoj
+ datoteci, ako postoji, ne mijenja lozinku
+ * Maknut 'unset CP_ECHO_RETURN'
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Sat, 12 Nov 2005 20:14:29 +0100
+
+mysql-cn (2:4.0.24-10.4) sarge; urgency=low
+
+ * Dodana baza kao argument kod provjere administratorske lozinke
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Mon, 31 Oct 2005 21:10:20 +0100
+
+mysql-cn (2:4.0.24-10.3) sarge; urgency=low
+
+ * verzija u Depends postavljena na najnovije sigurnosno izdanje
+ koja ispravlja problem unutar funkcije init_syms (CAN-2005-2558
+ i DSA 829-1)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Mon, 3 Oct 2005 08:54:42 +0200
+
+mysql-cn (2:4.0.24-10.2) sarge; urgency=low
+
+ * dodana ovisnost o mail-transport-agent
+ * ispravljena sintaksa u changelogu
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Mon, 5 Sep 2005 14:32:02 +0200
+
+mysql-cn (2:4.0.24-10.1) sarge; urgency=medium
+
+ * dodana ovisnost o carnet-tools-cn
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Tue, 28 Jun 2005 13:40:53 +0200
+
+mysql-cn (2:4.0.24-10) sarge; urgency=medium
+
+ * postavlja administratorsku lozinku ako ne postoji
+ * kozmetika maintainer skripti
+ * koristenje CARNet toolsa
+ * restarta MySQL samo ako se mjenja konfiguracijska datoteka
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Wed, 25 May 2005 21:20:24 +0200
+
+mysql-cn (2:4.0.24-5) sarge; urgency=high
+
+ * verzija u Depends postavljena na najnovije sigurnosno izdanje:
+ - CAN-2004-0957
+ - CAN-2005-0709
+ - CAN-2005-0710
+ - CAN-2005-0711
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Wed, 13 Apr 2005 18:41:04 +0200
+
+mysql-cn (2:4.0.24-2.2) sarge; urgency=high
+
+ * koristenje grep -q u postinstu
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Sun, 27 Mar 2005 14:10:27 +0200
+
+mysql-cn (2:4.0.24-2.1) sarge; urgency=high
+
+ * krive dozvole nad datotekama u DEBIAN/
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Tue, 22 Mar 2005 15:57:46 +0100
+
+mysql-cn (2:4.0.24-2) sarge; urgency=high
+
+ * kozmetika postinsta
+ * verzija u Depends postavljena na najnovije sigurnosno izdanje:
+ - CAN-2005-XXX (temporary file creation with "CREATE TEMPORARY TABLE")
+ - CAN-2005-XXX (arbitrary library injection in udf_init())
+ - CAN-2005-XXX (arbitrary code execution via "CREATE FUNCTION")
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Tue, 15 Mar 2005 15:08:53 +0100
+
+mysql-cn (2:4.0.23-3) sarge; urgency=high
+
+ * verzija u Depends postavljena na najnovije sigurnosno izdanje
+ (DSA 647-1 i CAN-2005-0004)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Wed, 19 Jan 2005 13:35:16 +0100
+
+mysql-cn (2:4.0.22-2) stable; urgency=high
+
+ * iskljuceno logiranje u /var/log/mysql/mysql.log zbog velike
+ kolicine logova koje proizvodi prelude-manager
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Thu, 16 Dec 2004 00:26:28 +0100
+
+mysql-cn (2:4.0.22-1) stable; urgency=high
+
+ * dodan ispravan croat.conf i win1250.conf
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Mon, 6 Dec 2004 20:28:39 +0100
+
+mysql-cn (2:4.0.21-1) stable; urgency=high
+
+ * kozmetika postinsta
+ * verzija u Depends postavljena na najnovije sigurnosno izdanje
+ (DSA 562-1, CAN-2004-0835, CAN-2004-0836 i CAN-2004-0837)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Mon, 11 Oct 2004 21:04:53 +0200
+
+mysql-cn (2:4.0.20-11) stable; urgency=high
+
+ * verzija u Depends postavljena na najnovije sigurnosno izdanje
+ (DSA 540-1 i CAN-2004-0457)
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Fri, 20 Aug 2004 11:00:06 +0200
+
+mysql-cn (2:4.0.18-6) stable; urgency=high
+
+ * verzija koja ispravlja sigurnosne greske (CAN-2004-0381 i CAN-2004-0388)
+ * kozmeticke promjene u postinstu
+ * /usr/local/doc -> /usr/share/doc
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Sun, 18 Apr 2004 11:36:54 +0200
+
+mysql-cn (2:4.0.16-2)
+
+ * inicijalna verzija paketa
+
+ -- Ivan 'ico' Rako <irako@srce.hr> Thu, 20 Nov 2003 19:29:17 +0100
--- /dev/null
+#!/bin/sh
+
+set -e
+
+[ "$1" = "configure" ] || exit 0
+
+PKG="mysql-cn"
+
+# Load CARNet Tools
+. /usr/share/carnet-tools/functions.sh
+
+if [ -f /etc/mysql/my.cnf ]; then
+ # ukljuci networking, da mysql visi na portu 3306
+ cp_check_and_sed '^skip-networking' \
+ 's/^skip-networking$/#skip-networking/' \
+ /etc/mysql/my.cnf && restart=yes || true
+
+ # ukljuci podrsku za innodb, istinabog neznam zasto, al neka :-)
+ cp_check_and_sed '^skip-innodb$' \
+ 's/^skip-innodb$/#skip-innodb/' \
+ /etc/mysql/my.cnf && restart=yes || true
+
+ # izgasi logiranje zbog prelude logova
+ cp_check_and_sed '^log.*mysql.log' \
+ "s,^\([\t ]*log[\t ]*=\),#\1," \
+ /etc/mysql/my.cnf && restart=yes || true
+
+ # ukljuci podrsku za hrvatsko znakovlje
+ if ! grep -q default-character-set /etc/mysql/my.cnf; then
+ awk '/^\[mysqld\]/{print "[mysqld]"; print "default-character-set=croat"; getline}{print $0}' \
+ /etc/mysql/my.cnf > /etc/mysql/mysql-cn.$$
+ cp_mv /etc/mysql/mysql-cn.$$ /etc/mysql/my.cnf
+ restart=yes
+ fi
+fi
+
+# pristup samo sa lokalne mreze, preko tcp-wrappera...
+DOMAIN=`hostname -d`
+if ! grep -q '^mysqld' /etc/hosts.deny; then
+ echo "mysqld: ALL" >> /etc/hosts.deny
+fi
+if ! grep -q '^mysqld' /etc/hosts.allow; then
+ echo "mysqld: .$DOMAIN 127.0.0.1" >> /etc/hosts.allow
+fi
+
+# ako nije setiran admin pass, setiraj
+[ -f ~root/.my.cnf ] && grep -q "password.*=" ~root/.my.cnf && rootmycnf=1
+if [ -z "$rootmycnf" ]; then
+ if ! grep -q "password.*=" /etc/mysql/my.cnf; then
+ if echo | mysql mysql 2> /dev/null; then
+ mypwd="`makepasswd`"
+ mysqladmin password $mypwd
+ cp_echo "CN: Password for MySQL administrator (root@localhost) is: $mypwd"
+ cp_mail $PKG
+ fi
+ fi
+fi
+
+if su - nobody -c '[ -r ~root/.my.cnf ]' 2>&1 > /dev/null; then
+ if grep -q "password.*=" ~root/.my.cnf; then
+ echo "CN: WARNING: ~root/.my.cnf is world readable."
+ fi
+fi
+
+[ "$restart" = "yes" ] || exit 0
+# restart mysql-a
+if [ -x /usr/sbin/invoke-rc.d ]; then
+ [ -x /etc/init.d/mysql ] && invoke-rc.d mysql restart
+else
+ [ -x /etc/init.d/mysql ] && /etc/init.d/mysql restart
+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/mysql-cn.
+ # $(MAKE) install DESTDIR=$(CURDIR)/debian/mysql-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