[Pkg-mysql-commits] r1605 - in mylvmbackup/trunk: . debian debian/patches
Norbert Tretkowski
nobse at alioth.debian.org
Fri Jul 3 07:19:54 UTC 2009
tags 448228 pending
tags 489566 pending
tags 494105 pending
thanks
Author: nobse
Date: 2009-07-03 07:19:53 +0000 (Fri, 03 Jul 2009)
New Revision: 1605
Added:
mylvmbackup/trunk/debian/
mylvmbackup/trunk/debian/changelog
mylvmbackup/trunk/debian/compat
mylvmbackup/trunk/debian/control
mylvmbackup/trunk/debian/copyright
mylvmbackup/trunk/debian/dirs
mylvmbackup/trunk/debian/docs
mylvmbackup/trunk/debian/patches/
mylvmbackup/trunk/debian/patches/00list
mylvmbackup/trunk/debian/patches/01_fix-makefile-path.diff
mylvmbackup/trunk/debian/patches/02_fix-config-paths.diff
mylvmbackup/trunk/debian/postinst
mylvmbackup/trunk/debian/rules
Log:
Initial check-in.
Added: mylvmbackup/trunk/debian/changelog
===================================================================
--- mylvmbackup/trunk/debian/changelog (rev 0)
+++ mylvmbackup/trunk/debian/changelog 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,70 @@
+mylvmbackup (0.11-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Norbert Tretkowski <nobse at debian.org> Wed, 21 Jan 2009 12:29:48 +0100
+
+mylvmbackup (0.10-1) unstable; urgency=low
+
+ * New upstream release.
+ + Add missing entry for "lvs" to mylvmbackup.conf. (closes: #494105)
+
+ -- Norbert Tretkowski <nobse at debian.org> Sun, 14 Sep 2008 11:39:26 +0200
+
+mylvmbackup (0.9-1) unstable; urgency=low
+
+ * New upstream release.
+ * Add version to asciidoc build-dependency. (closes: #489566)
+
+ -- Norbert Tretkowski <nobse at debian.org> Fri, 11 Jul 2008 11:35:58 +0200
+
+mylvmbackup (0.8-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Norbert Tretkowski <nobse at debian.org> Tue, 15 Apr 2008 22:08:03 +0200
+
+mylvmbackup (0.7-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Norbert Tretkowski <nobse at debian.org> Tue, 08 Apr 2008 14:09:42 +0200
+
+mylvmbackup (0.6-5) unstable; urgency=low
+
+ * Move upstream website in control file to source stanza.
+
+ -- Norbert Tretkowski <nobse at debian.org> Wed, 26 Mar 2008 22:09:07 +0100
+
+mylvmbackup (0.6-4) unstable; urgency=low
+
+ * Add upstream website to long description.
+ * Use /var/run/mysqld/ instead /var/tmp/ for PID file of InnoDB recovery.
+
+ -- Norbert Tretkowski <nobse at debian.org> Sat, 03 Nov 2007 11:15:25 +0100
+
+mylvmbackup (0.6-3) unstable; urgency=low
+
+ * Change mode of /etc/mylvmbackup.conf to 600 in postinst.
+
+ -- Norbert Tretkowski <nobse at debian.org> Mon, 29 Oct 2007 19:45:24 +0100
+
+mylvmbackup (0.6-2) unstable; urgency=low
+
+ * Use dpatch for patch management.
+ * Include /etc/mysql/my.cnf instead /etc/my.cnf in the backup.
+
+ -- Norbert Tretkowski <nobse at debian.org> Sun, 28 Oct 2007 19:06:55 +0100
+
+mylvmbackup (0.6-1) unstable; urgency=low
+
+ * New upstream release.
+ * Add libtimedate-perl dependency.
+
+ -- Norbert Tretkowski <nobse at debian.org> Sun, 28 Oct 2007 17:57:53 +0100
+
+mylvmbackup (0.5-1) unstable; urgency=low
+
+ * Initial release. (closes: #448228)
+
+ -- Norbert Tretkowski <nobse at debian.org> Sat, 27 Oct 2007 12:22:15 +0200
Added: mylvmbackup/trunk/debian/compat
===================================================================
--- mylvmbackup/trunk/debian/compat (rev 0)
+++ mylvmbackup/trunk/debian/compat 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1 @@
+5
Added: mylvmbackup/trunk/debian/control
===================================================================
--- mylvmbackup/trunk/debian/control (rev 0)
+++ mylvmbackup/trunk/debian/control 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,19 @@
+Source: mylvmbackup
+Section: misc
+Priority: extra
+Maintainer: Norbert Tretkowski <nobse at debian.org>
+Build-Depends: debhelper (>= 5), dpatch, asciidoc (>= 8.2.0), xsltproc, docbook-xsl
+Standards-Version: 3.8.0
+Homepage: http://lenzg.org/mylvmbackup/
+
+Package: mylvmbackup
+Architecture: all
+Depends: ${perl:Depends}, libdbd-mysql-perl, libtimedate-perl, libconfig-inifiles-perl, lvm2
+Suggests: mysql-server
+Description: quickly creating backups of MySQL server's data files
+ To perform a backup, mylvmbackup obtains a read lock on all tables and
+ flushes all server caches to disk, makes an LVM snapshot of the volume
+ containing the MySQL data directory, and unlocks the tables again. The
+ snapshot process takes only a small amount of time. When it is done, the
+ server can continue normal operations, while the actual file backup
+ proceeds.
Added: mylvmbackup/trunk/debian/copyright
===================================================================
--- mylvmbackup/trunk/debian/copyright (rev 0)
+++ mylvmbackup/trunk/debian/copyright 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,31 @@
+This package was debianized by Norbert Tretkowski <nobse at debian.org> on
+Sat, 27 Oct 2007 12:22:15 +0200.
+
+It was downloaded from http://www.lenzg.org/mylvmbackup/
+
+Upstream Author:
+
+ Lenz Grimmer <lenz at grimmer.com>
+
+Copyright:
+
+ (C) 2006, 2007 Lenz Grimmer
+
+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 <nobse at debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
Added: mylvmbackup/trunk/debian/dirs
===================================================================
--- mylvmbackup/trunk/debian/dirs (rev 0)
+++ mylvmbackup/trunk/debian/dirs 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,3 @@
+usr/bin
+var/cache/mylvmbackup/backup/
+var/cache/mylvmbackup/mnt/
Added: mylvmbackup/trunk/debian/docs
===================================================================
--- mylvmbackup/trunk/debian/docs (rev 0)
+++ mylvmbackup/trunk/debian/docs 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,2 @@
+README
+TODO
Added: mylvmbackup/trunk/debian/patches/00list
===================================================================
--- mylvmbackup/trunk/debian/patches/00list (rev 0)
+++ mylvmbackup/trunk/debian/patches/00list 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,2 @@
+01_fix-makefile-path.diff
+02_fix-config-paths.diff
Added: mylvmbackup/trunk/debian/patches/01_fix-makefile-path.diff
===================================================================
--- mylvmbackup/trunk/debian/patches/01_fix-makefile-path.diff (rev 0)
+++ mylvmbackup/trunk/debian/patches/01_fix-makefile-path.diff 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,28 @@
+#! /bin/sh -e
+## DP: 01_fix-makefile-path.diff
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+
+exit 0
+
+ at DPATCH@
+--- mylvmbackup-0.6.orig/Makefile 2007-05-31 11:31:29.000000000 +0200
++++ mylvmbackup-0.6/Makefile 2007-10-28 19:16:08.000000000 +0100
+@@ -45,7 +45,7 @@
+ sysconfdir = /etc
+ bindir = $(prefix)/bin
+ distdir = $(NAME)-$(VERSION)
+-mandir = $(prefix)/man
++mandir = $(prefix)/share/man
+ man1dir = $(mandir)/man1
+
+ all: $(DISTFILES) $(MAN1)
Added: mylvmbackup/trunk/debian/patches/02_fix-config-paths.diff
===================================================================
--- mylvmbackup/trunk/debian/patches/02_fix-config-paths.diff (rev 0)
+++ mylvmbackup/trunk/debian/patches/02_fix-config-paths.diff 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,102 @@
+#! /bin/sh -e
+## DP: 02_fix-config-paths.diff
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+
+exit 0
+
+ at DPATCH@
+diff -Nur mylvmbackup-0.11.orig/man/mylvmbackup.pod mylvmbackup-0.11/man/mylvmbackup.pod
+--- mylvmbackup-0.11.orig/man/mylvmbackup.pod 2008-11-23 14:09:31.000000000 +0100
++++ mylvmbackup-0.11/man/mylvmbackup.pod 2009-01-21 12:38:57.000000000 +0100
+@@ -219,7 +219,7 @@
+ that is spawned to perform the InnoDB recovery (see option
+ I<--innodb_recover>). Must be different from the PID file that the actual
+ running server uses.
+-The default is I</var/tmp/mylvmbackup_recoverserver.pid>
++The default is I</var/run/mysqld/mylvmbackup_recoverserver.pid>
+
+ =item B<--lvcreate=string>
+
+@@ -322,7 +322,7 @@
+ =item B<--mountdir=string>
+
+ Path for mounting the snapshot volume to.
+-The default value is I</var/tmp/mylvmbackup/mnt/>.
++The default value is I</var/cache/mylvmbackup/mnt/>.
+
+ =item B<--backupdir=string>
+
+@@ -333,7 +333,7 @@
+ properly configured remote rsync setup (e.g. pre-setup SSH keys and a
+ valid rsyncd.conf file). Note that using rsync for remote backups is still
+ under development and the way to configure it may change!
+-The default is I</var/tmp/mylvmbackup/backup/>
++The default is I</var/cache/mylvmbackup/backup/>
+
+ =item B<--mount=string>
+
+diff -Nur mylvmbackup-0.11.orig/mylvmbackup.conf mylvmbackup-0.11/mylvmbackup.conf
+--- mylvmbackup-0.11.orig/mylvmbackup.conf 2008-11-23 13:59:09.000000000 +0100
++++ mylvmbackup-0.11/mylvmbackup.conf 2009-01-21 12:34:00.000000000 +0100
+@@ -18,7 +18,7 @@
+ host=
+ port=
+ socket=
+-mycnf=/etc/my.cnf
++mycnf=/etc/mysql/my.cnf
+
+ #
+ # LVM-specific options
+@@ -34,8 +34,8 @@
+ #
+ [fs]
+ xfs=0
+-mountdir=/var/tmp/mylvmbackup/mnt/
+-backupdir=/var/tmp/mylvmbackup/backup/
++mountdir=/var/cache/mylvmbackup/mnt/
++backupdir=/var/cache/mylvmbackup/backup/
+ relpath=
+
+ #
+diff -Nur mylvmbackup-0.11.orig/mylvmbackup.pl.in mylvmbackup-0.11/mylvmbackup.pl.in
+--- mylvmbackup-0.11.orig/mylvmbackup.pl.in 2008-11-23 13:32:47.000000000 +0100
++++ mylvmbackup-0.11/mylvmbackup.pl.in 2009-01-21 12:34:00.000000000 +0100
+@@ -386,7 +386,7 @@
+ $port = '';
+ $socket = '';
+ $mysqld_safe='mysqld_safe';
+- $mycnf = '/etc/my.cnf';
++ $mycnf = '/etc/mysql/my.cnf';
+
+ # lvm
+ $vgname='mysql';
+@@ -400,7 +400,7 @@
+ $suffix='_mysql';
+ $datefmt='%Y%m%d_%H%M%S';
+ $innodb_recover=0;
+- $pidfile = '/var/tmp/mylvmbackup_recoverserver.pid';
++ $pidfile = '/var/run/mylvmbackup_recoverserver.pid';
+ $skip_flush_tables=0;
+ $extra_flush_tables=0;
+ $skip_mycnf=0;
+@@ -416,8 +416,8 @@
+ $quiet=0;
+
+ # fs
+- $mountdir='/var/tmp/mylvmbackup/mnt/';
+- $backupdir='/var/tmp/mylvmbackup/backup/';
++ $mountdir='/var/cache/mylvmbackup/mnt/';
++ $backupdir='/var/cache/mylvmbackup/backup/';
+ $relpath='';
+ $need_xfsworkaround=0;
+
Added: mylvmbackup/trunk/debian/postinst
===================================================================
--- mylvmbackup/trunk/debian/postinst (rev 0)
+++ mylvmbackup/trunk/debian/postinst 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,44 @@
+#!/bin/sh
+# postinst script for mylvmbackup
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ if [ -f /etc/mylvmbackup.conf ] ; then
+ chmod 600 /etc/mylvmbackup.conf
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
Added: mylvmbackup/trunk/debian/rules
===================================================================
--- mylvmbackup/trunk/debian/rules (rev 0)
+++ mylvmbackup/trunk/debian/rules 2009-07-03 07:19:53 UTC (rev 1605)
@@ -0,0 +1,88 @@
+#!/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
+
+
+include /usr/share/dpatch/dpatch.make
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp patch
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/mylvmbackup.sgml > mylvmbackup.1
+
+ touch $@
+
+clean: unpatch
+ 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/mylvmbackup.
+ $(MAKE) prefix=/usr DESTDIR=$(CURDIR)/debian/mylvmbackup install
+
+ rmdir $(CURDIR)/debian/mylvmbackup/usr/share/mylvmbackup/
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ 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 configure unpatch
More information about the Pkg-mysql-commits
mailing list