--- mysql-proxy-0.8.1.orig/debian/copyright +++ mysql-proxy-0.8.1/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Norbert Tretkowski on +Fri, 19 Oct 2007 23:41:43 +0200. + +It was downloaded from http://dev.mysql.com/downloads/mysql-proxy/ + +Upstream Author: + + Jan Kneschke + +Copyright: + + (C) 2007 MySQL AB + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + + +The Debian packaging is (C) 2007, Norbert Tretkowski and +is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. --- mysql-proxy-0.8.1.orig/debian/changelog +++ mysql-proxy-0.8.1/debian/changelog @@ -0,0 +1,135 @@ +mysql-proxy (0.8.1-1.1build1) precise; urgency=low + + * Rebuild for libmysqlclient transition + + -- Clint Byrum Wed, 23 Nov 2011 23:57:24 -0800 + +mysql-proxy (0.8.1-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Don't ship .la files (Closes: #622489). + + -- Luk Claes Sat, 25 Jun 2011 18:18:28 +0200 + +mysql-proxy (0.8.1-1) unstable; urgency=low + + * New upstream release. (closes: #620373) + * Import and acknowledge NMUs. (closes: #575246, #578403) + + -- Norbert Tretkowski Tue, 21 Jun 2011 20:25:33 +0200 + +mysql-proxy (0.8.0-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Fix "DAEMON=".." in initscripts points to": point DAEMON to + /usr/bin/mysql-proxy; patch from Chris Lamb (closes: #578403). + * init script: add dependency on $remote_fs to Required-Start and + Required-Stop. + + -- gregor herrmann Sat, 02 Oct 2010 16:03:38 +0200 + +mysql-proxy (0.8.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Clean up after upstream build system properly + * Fix FTBFS on sparc (Closes: #575246) + * Correctly version the libevent build-dependency + + -- Paul Wise Sat, 21 Aug 2010 08:29:43 +0000 + +mysql-proxy (0.8.0-1) unstable; urgency=low + + * New upstream release. + + -- Norbert Tretkowski Tue, 26 Jan 2010 19:10:16 +0100 + +mysql-proxy (0.7.2-3) unstable; urgency=low + + * Add back missing .lua files. + + -- Norbert Tretkowski Mon, 24 Aug 2009 13:04:33 +0200 + +mysql-proxy (0.7.2-2) unstable; urgency=low + + * Rebuild against MySQL 5.1. + + -- Norbert Tretkowski Sun, 26 Jul 2009 15:59:36 +0200 + +mysql-proxy (0.7.2-1) unstable; urgency=low + + * New upstream release. (closes: #536146) + + -- Norbert Tretkowski Tue, 07 Jul 2009 23:19:28 +0200 + +mysql-proxy (0.7.1-1) unstable; urgency=low + + * New upstream release. + + -- Norbert Tretkowski Wed, 03 Jun 2009 22:17:47 +0200 + +mysql-proxy (0.7.0-2) unstable; urgency=low + + * Now maintained by Debian MySQL Maintainers. + * Fix some lintian errors and warnings: + + Update Standards-Version to 3.8.1, no changes required. + + Drop empty /usr/libexec/ directory. + + Call ldconfig in postinst and postrm. + + Enable dh_makeshlibs. + + -- Norbert Tretkowski Sat, 25 Apr 2009 12:48:00 +0200 + +mysql-proxy (0.7.0-1) unstable; urgency=low + + * New upstream release. + + No longer send queries to crashed servers. (closes: #513558) + + -- Norbert Tretkowski Sun, 12 Apr 2009 10:09:35 +0200 + +mysql-proxy (0.7.0~r646-2) experimental; urgency=low + + * Set section to database, priority extra. + + -- Norbert Tretkowski Mon, 06 Apr 2009 16:29:43 +0200 + +mysql-proxy (0.7.0~r646-1) experimental; urgency=low + + * New upstream snapshot. + + -- Norbert Tretkowski Sun, 05 Apr 2009 18:04:18 +0200 + +mysql-proxy (0.6.1-5) unstable; urgency=low + + * Add patch from Raoul Bhatia which adds support for status option to init + script. (closes: #505710) + + -- Norbert Tretkowski Fri, 14 Nov 2008 20:50:01 +0100 + +mysql-proxy (0.6.1-4) unstable; urgency=low + + * Add default database check to rw-splitting.lua. + + -- Norbert Tretkowski Thu, 13 Nov 2008 14:36:16 +0100 + +mysql-proxy (0.6.1-3) unstable; urgency=low + + * Add init script. + + -- Norbert Tretkowski Wed, 24 Sep 2008 13:23:05 +0200 + +mysql-proxy (0.6.1-2) unstable; urgency=low + + * Add homepage field to source stanza in control file. + + -- Norbert Tretkowski Wed, 26 Mar 2008 22:23:34 +0100 + +mysql-proxy (0.6.1-1) unstable; urgency=low + + * New upstream release. + + -- Norbert Tretkowski Sun, 03 Feb 2008 12:55:52 +0100 + +mysql-proxy (0.6.0-1) unstable; urgency=low + + * Initial release. (closes: #446727) + + -- Norbert Tretkowski Fri, 19 Oct 2007 23:41:43 +0200 --- mysql-proxy-0.8.1.orig/debian/control +++ mysql-proxy-0.8.1/debian/control @@ -0,0 +1,18 @@ +Source: mysql-proxy +Section: database +Priority: extra +Maintainer: Debian MySQL Maintainers +Uploaders: Norbert Tretkowski +Build-Depends: debhelper (>= 5), autotools-dev, libmysqlclient-dev, liblua5.1-dev, pkg-config, libglib2.0-dev, libevent-dev (>= 1.4), check +Standards-Version: 3.9.2 +Homepage: http://forge.mysql.com/wiki/MySQL_Proxy +Vcs-Browser: http://svn.debian.org/wsvn/pkg-mysql/mysql-proxy/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-mysql/mysql-proxy/ + +Package: mysql-proxy +Architecture: any +Depends: ${shlibs:Depends} +Description: high availability, load balancing and query modification for mysql + MySQL Proxy stands between database servers and clients to provide load + balancing and failover. Incoming queries can be filtered and modified using + Lua scripts. --- mysql-proxy-0.8.1.orig/debian/default +++ mysql-proxy-0.8.1/debian/default @@ -0,0 +1,2 @@ +ENABLED="false" +OPTIONS="" --- mysql-proxy-0.8.1.orig/debian/rules +++ mysql-proxy-0.8.1/debian/rules @@ -0,0 +1,104 @@ +#!/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 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +config.status: configure + dh_testdir + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-lua=lua5.1 + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/mysql-proxy.sgml > mysql-proxy.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/mysql-proxy. + $(MAKE) DESTDIR=$(CURDIR)/debian/mysql-proxy install + + cp $(CURDIR)/debian/default $(CURDIR)/debian/mysql-proxy/etc/default/mysql-proxy + cp $(CURDIR)/lib/*.lua $(CURDIR)/debian/mysql-proxy/usr/share/mysql-proxy/ + rmdir $(CURDIR)/debian/mysql-proxy/usr/libexec + rm `find $(CURDIR)/debian -name '*.la'` + + +# 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 NEWS + dh_installdocs --exclude=NEWS + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python + dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl + 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 --- mysql-proxy-0.8.1.orig/debian/init +++ mysql-proxy-0.8.1/debian/init @@ -0,0 +1,52 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: mysql-proxy +# Required-Start: $syslog $remote_fs +# Required-Stop: $syslog $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: MySQL Proxy +### END INIT INFO + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +LUA_PATH="/usr/share/mysql-proxy/?.lua" + +DAEMON="/usr/bin/mysql-proxy" +PIDFILE="/var/run/mysql-proxy.pid" + +test -f $DAEMON || exit 0 + +test ! -r /etc/default/mysql-proxy || . /etc/default/mysql-proxy + +if ! $ENABLED ; then exit 0 ; fi + +. /lib/lsb/init-functions + +case "$1" in + start) + log_begin_msg "Starting MySQL Proxy daemon..." + start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --name mysql-proxy --startas $DAEMON -b -- $OPTIONS + log_end_msg $? + ;; + stop) + log_begin_msg "Stopping MySQL Proxy daemon..." + start-stop-daemon --stop --quiet --retry 3 --exec $DAEMON --pidfile $PIDFILE + log_end_msg $? + ;; + status) + log_begin_msg "Checking MySQL Proxy daemon... " + status_of_proc -p $PIDFILE /usr/sbin/mysql-proxy mysql-proxy && exit 0 || exit $? + ;; + restart|force-reload) + log_begin_msg "Reloading MySQL Proxy daemon..." + start-stop-daemon --stop --quiet --retry 3 --exec $DAEMON --pidfile $PIDFILE + start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --name mysql-proxy --startas $DAEMON -b -- $OPTIONS + log_end_msg $? + ;; + *) + log_success_msg "Usage: $0 {start|stop|status|restart|force-reload}" + exit 1 +esac + +exit 0 --- mysql-proxy-0.8.1.orig/debian/postinst +++ mysql-proxy-0.8.1/debian/postinst @@ -0,0 +1,14 @@ +#! /bin/sh + +set -e + +case "$1" in + configure) + + ldconfig + ;; +esac + +#DEBHELPER# + +exit 0 --- mysql-proxy-0.8.1.orig/debian/compat +++ mysql-proxy-0.8.1/debian/compat @@ -0,0 +1 @@ +5 --- mysql-proxy-0.8.1.orig/debian/dirs +++ mysql-proxy-0.8.1/debian/dirs @@ -0,0 +1,2 @@ +etc/default/ +usr/share/mysql-proxy/ --- mysql-proxy-0.8.1.orig/debian/docs +++ mysql-proxy-0.8.1/debian/docs @@ -0,0 +1,3 @@ +NEWS +README +README.TESTS --- mysql-proxy-0.8.1.orig/debian/postrm +++ mysql-proxy-0.8.1/debian/postrm @@ -0,0 +1,14 @@ +#! /bin/sh + +set -e + +case "$1" in + remove) + + ldconfig + ;; +esac + +#DEBHELPER# + +exit 0 --- mysql-proxy-0.8.1.orig/src/my_rdtsc.h +++ mysql-proxy-0.8.1/src/my_rdtsc.h @@ -31,6 +31,8 @@ #define C_MODE_END G_END_DECLS typedef guint64 ulonglong; +#include + #ifndef HAVE_ULONG #ifdef HAVE_ULONG_T typedef ulong_t ulong;