From: Grupa za izradu paketa Date: Tue, 18 Sep 2007 14:44:30 +0000 (+0000) Subject: r1: [svn-inject] Installing original source of mysql-cn X-Git-Tag: debian/5.1.49-1~11 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=94ed0d871649e73400c860ae9b577d3c5b617800;p=mariadb-cn.git r1: [svn-inject] Installing original source of mysql-cn --- 94ed0d871649e73400c860ae9b577d3c5b617800 diff --git a/README.CARNet b/README.CARNet new file mode 100644 index 0000000..33de3cc --- /dev/null +++ b/README.CARNet @@ -0,0 +1,9 @@ +mysql-cn ++------+ + +Promjene u odnosu na originalni Debian paket su: + * ukljucen networking (port 3306) + * podrsku za InnoDB + * hrvatski grafemi + + -- Ivan Rako Tue, 18 Sep 2007 16:35:23 +0200 diff --git a/changelog.CARNet b/changelog.CARNet new file mode 100644 index 0000000..884c1ce --- /dev/null +++ b/changelog.CARNet @@ -0,0 +1,131 @@ +mysql-cn (2:5.0.32-1) carnet-etch; urgency=low + + * izdanje paketa za Etch + * prva verzija sa source paketom + + -- Ivan Rako 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Sun, 18 Apr 2004 11:36:54 +0200 + +mysql-cn (2:4.0.16-2) + + * inicijalna verzija paketa + + -- Ivan 'ico' Rako Thu, 20 Nov 2003 19:29:17 +0100 diff --git a/debian/changelog b/debian/changelog new file mode 120000 index 0000000..dbf0845 --- /dev/null +++ b/debian/changelog @@ -0,0 +1 @@ +../changelog.CARNet \ No newline at end of file diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..202ebd9 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: mysql-cn +Section: net +Priority: optional +Maintainer: Ivan Rako +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: mysql-cn +Architecture: all +Depends: mysql-client-5.0, mysql-server-5.0, makepasswd, carnet-tools-cn (>= 2.4), mail-transport-agent +Description: MySQL database server + MySQL is a fast, stable and true multi-user, multi-threaded SQL database + server. SQL (Structured Query Language) is the most popular database query + language in the world. The main goals of MySQL are speed, robustness and + ease of use. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..d92e2d1 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README.CARNet +changelog.CARNet diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..4bf896b --- /dev/null +++ b/debian/postinst @@ -0,0 +1,71 @@ +#!/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 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d500396 --- /dev/null +++ b/debian/rules @@ -0,0 +1,86 @@ +#!/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