debian/0000755000000000000000000000000012263605021007163 5ustar debian/libsnapper2.install0000644000000000000000000000003412166351147013002 0ustar /usr/lib/*/libsnapper.so.2* debian/patches/0000755000000000000000000000000012250653044010616 5ustar debian/patches/0001-Link-boost-libraries-without-the-mt-suffix.patch0000644000000000000000000000117312250647017022414 0ustar From: Nicolas Dandrimont Date: Wed, 4 Dec 2013 22:15:52 +0100 Subject: Link boost libraries without the mt suffix --- snapper/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapper/Makefile.am b/snapper/Makefile.am index a4a8c60..23ac5bc 100644 --- a/snapper/Makefile.am +++ b/snapper/Makefile.am @@ -53,7 +53,7 @@ endif libsnapper_la_LDFLAGS = -version-info @LIBVERSION_INFO@ -libsnapper_la_LIBADD = -lboost_thread-mt -lboost_system-mt -lxml2 -lz -lm +libsnapper_la_LIBADD = -lboost_thread -lboost_system -lxml2 -lz -lm pkgincludedir = $(includedir)/snapper debian/patches/0002-Add-DSO-linker-options-for-libsnapper.la.patch0000644000000000000000000000537212250647017021632 0ustar From: Nicolas Dandrimont Date: Wed, 4 Dec 2013 23:15:39 +0100 Subject: Add DSO linker options for libsnapper.la --- client/Makefile.am | 2 +- examples/c++-lib/Makefile.am | 2 +- server/Makefile.am | 2 +- testsuite-cmp/Makefile.am | 2 +- testsuite-real/Makefile.am | 2 +- testsuite/Makefile.am | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/Makefile.am b/client/Makefile.am index f43c040..8807135 100644 --- a/client/Makefile.am +++ b/client/Makefile.am @@ -15,5 +15,5 @@ snapper_SOURCES = \ commands.cc commands.h \ cleanup.cc cleanup.h -snapper_LDADD = ../snapper/libsnapper.la utils/libutils.la ../dbus/libdbus.la +snapper_LDADD = ../snapper/libsnapper.la -lboost_thread -lboost_system -lxml2 -lz -lm utils/libutils.la ../dbus/libdbus.la diff --git a/examples/c++-lib/Makefile.am b/examples/c++-lib/Makefile.am index 03d1b33..7b1c1e6 100644 --- a/examples/c++-lib/Makefile.am +++ b/examples/c++-lib/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = -I$(top_srcdir) -LDADD = ../../snapper/libsnapper.la +LDADD = ../../snapper/libsnapper.la -lboost_thread -lboost_system -lxml2 -lz -lm noinst_PROGRAMS = List ListAll Create CmpDirs CreateNumber CreateTimeline SnapTest diff --git a/server/Makefile.am b/server/Makefile.am index 00d1e81..172f4f7 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -14,5 +14,5 @@ snapperd_SOURCES = \ Background.cc Background.h \ Types.cc Types.h -snapperd_LDADD = ../snapper/libsnapper.la ../dbus/libdbus.la -lrt +snapperd_LDADD = ../snapper/libsnapper.la -lboost_thread -lboost_system -lxml2 -lz -lm ../dbus/libdbus.la -lrt diff --git a/testsuite-cmp/Makefile.am b/testsuite-cmp/Makefile.am index 14df3a5..8fba22e 100644 --- a/testsuite-cmp/Makefile.am +++ b/testsuite-cmp/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = -I$(top_srcdir) -LDADD = ../snapper/libsnapper.la +LDADD = ../snapper/libsnapper.la -lboost_thread -lboost_system -lxml2 -lz -lm noinst_SCRIPTS = run-all diff --git a/testsuite-real/Makefile.am b/testsuite-real/Makefile.am index b183fb7..be53f94 100644 --- a/testsuite-real/Makefile.am +++ b/testsuite-real/Makefile.am @@ -6,7 +6,7 @@ CXXFLAGS += -std=gnu++0x INCLUDES = -I$(top_srcdir) -LDADD = ../snapper/libsnapper.la +LDADD = ../snapper/libsnapper.la -lboost_thread -lboost_system -lxml2 -lz -lm if HAVE_XATTRS TMP_XATST = xattrs1 xattrs2 xattrs3 diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am index af16005..3d4fa75 100644 --- a/testsuite/Makefile.am +++ b/testsuite/Makefile.am @@ -6,7 +6,7 @@ CXXFLAGS += -std=gnu++0x INCLUDES = -I$(top_srcdir) -LDADD = ../snapper/libsnapper.la +LDADD = ../snapper/libsnapper.la -lboost_thread -lboost_system -lxml2 -lz -lm noinst_SCRIPTS = run-all debian/patches/0003-Fix-the-CHMOD-command-for-pam_snapper-scripts.patch0000644000000000000000000000220712250653044022544 0ustar From: Nicolas Dandrimont Date: Sat, 7 Dec 2013 10:30:30 +0100 Subject: Fix the CHMOD command for pam_snapper scripts Forwarded: https://github.com/openSUSE/snapper/commit/4e8687be241f571160b4e244f3588a10b4ee4d67 --- scripts/pam_snapper_homeconvert.sh | 2 +- scripts/pam_snapper_useradd.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pam_snapper_homeconvert.sh b/scripts/pam_snapper_homeconvert.sh index 742b171..df677ce 100755 --- a/scripts/pam_snapper_homeconvert.sh +++ b/scripts/pam_snapper_homeconvert.sh @@ -17,7 +17,7 @@ CMD_SED="sed" CMD_USERADD="useradd -m" CMD_USERDEL="userdel -r" CMD_CHOWN="chown" -CMD_CHOWN="chmod" +CMD_CHMOD="chmod" # SNAPPERCFGDIR="/etc/snapper/configs" HOMEHOME=/home diff --git a/scripts/pam_snapper_useradd.sh b/scripts/pam_snapper_useradd.sh index 8e05d23..617edf6 100755 --- a/scripts/pam_snapper_useradd.sh +++ b/scripts/pam_snapper_useradd.sh @@ -17,7 +17,7 @@ CMD_SED="sed" CMD_USERADD="useradd -m" CMD_USERDEL="userdel -r" CMD_CHOWN="chown" -CMD_CHOWN="chmod" +CMD_CHMOD="chmod" # SNAPPERCFGDIR="/etc/snapper/configs" HOMEHOME=/home debian/patches/series0000644000000000000000000000024312250647017012035 0ustar 0001-Link-boost-libraries-without-the-mt-suffix.patch 0002-Add-DSO-linker-options-for-libsnapper.la.patch 0003-Fix-the-CHMOD-command-for-pam_snapper-scripts.patch debian/compat0000644000000000000000000000000212166351147010372 0ustar 9 debian/changelog0000644000000000000000000000063012263604603011041 0ustar snapper (0.1.8-2) unstable; urgency=medium * Move PAM config to /usr/share/pam-configs/snapper for consistency with other pam module-providing packages (Closes: #734784) -- Nicolas Dandrimont Thu, 09 Jan 2014 21:41:31 +0100 snapper (0.1.8-1) unstable; urgency=low * Initial release. (Closes: #715404) -- Nicolas Dandrimont Sat, 07 Dec 2013 21:45:39 +0100 debian/snapper.docs0000644000000000000000000000002612166351147011514 0ustar doc/dbus-protocol.txt debian/libsnapper-dev.install0000644000000000000000000000004612166351147013477 0ustar /usr/include /usr/lib/*/libsnapper.so debian/snapper.install0000644000000000000000000000014212250562043012222 0ustar /etc /usr/bin /usr/sbin /usr/share/dbus-1 /usr/share/doc/snapper /usr/share/locale /usr/share/man debian/control0000644000000000000000000000620312250655264010601 0ustar Source: snapper Section: utils Priority: optional Maintainer: Nicolas Dandrimont Build-Depends: btrfs-tools, debhelper (>= 9), dh-autoreconf, docbook-xsl, libboost-dev, libboost-thread-dev, libdbus-1-dev, libpam-dev, libxml2-dev, xsltproc, zlib1g-dev, Standards-Version: 3.9.4 Homepage: http://snapper.io/ Vcs-Git: git://anonscm.debian.org/collab-maint/snapper.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/snapper.git;a=summary Package: snapper Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Linux filesystem snapshot management tool Snapper is a tool for Linux filesystem snapshot management. Apart from the obvious creation and deletion of snapshots, it can compare snapshots and revert differences between snapshots. In simple terms, this allows root and non-root users to view older versions of files and revert changes. . The features include: * Manually create snapshots * Automatically create snapshots, e.g. when using a package manager * Automatically create timeline of snapshots * Show and revert changes between snapshots * Works with btrfs, ext4 and thin-provisioned LVM volumes * Supports Access Control Lists and Extended Attributes * Automatic cleanup of old snapshots * Command line interface * D-Bus interface * PAM module to create snapshots during login and logout (libpam-snapper) Package: libsnapper2 Section: libs Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Library for Linux filesystem snapshot management tool Snapper is a tool for Linux filesystem snapshot management. Apart from the obvious creation and deletion of snapshots, it can compare snapshots and revert differences between snapshots. In simple terms, this allows root and non-root users to view older versions of files and revert changes. . This package contains the runtime library for snapper, allowing the development of third-party tools. Package: libsnapper-dev Section: libdevel Architecture: linux-any Depends: ${misc:Depends} Description: Library for Linux filesystem snapshot management tool (header files) Snapper is a tool for Linux filesystem snapshot management. Apart from the obvious creation and deletion of snapshots, it can compare snapshots and revert differences between snapshots. In simple terms, this allows root and non-root users to view older versions of files and revert changes. . This package contains the header files for libsnapper, allowing the development of third-party tools. Package: libpam-snapper Section: admin Architecture: linux-any Depends: snapper, ${misc:Depends}, ${shlibs:Depends} Description: PAM module for Linux filesystem snapshot management tool Snapper is a tool for Linux filesystem snapshot management. Apart from the obvious creation and deletion of snapshots, it can compare snapshots and revert differences between snapshots. In simple terms, this allows root and non-root users to view older versions of files and revert changes. . This package contains the PAM library for snapper, which allows the administrator to take snapshots when an user logs in or out of the system. debian/libpam-snapper.postinst0000644000000000000000000000007112250555116013705 0ustar #!/bin/sh set -e pam-auth-update --package #DEBHELPER# debian/libpam-snapper.install0000644000000000000000000000010712250555060013466 0ustar /lib/*/security /usr/lib/pam_snapper /usr/share /usr/share/pam-configs debian/libsnapper-dev.examples0000644000000000000000000000003512250640502013633 0ustar examples/c examples/c++-lib debian/clean0000644000000000000000000000001312166351147010173 0ustar config.log debian/source/0000755000000000000000000000000012166351147010474 5ustar debian/source/format0000644000000000000000000000001412166351147011702 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000521312250555431011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Snapper Source: http://snapper.io/ Files: * Copyright: 2004-2012 Novell, Inc. License: GPL-2 Files: snapper/LvmCache.cc snapper/LvmCache.h snapper/XAttributes.cc snapper/XAttributes.h Copyright: 2013 RedHat, Inc. License: GPL-2 Files: pam/* scripts/* Copyright: 2013 SuSE License: GPL-2 Files: ltmain.sh Copyright: 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. License: GPL-2+ with Libtool exception Files: debian/* Copyright: 2013 Nicolas Dandrimont License: GPL-2 License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. . This program 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 program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-2+ with Libtool exception GNU Libtool 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; either version 2 of the License, or (at your option) any later version. . As a special exception to the GNU General Public License, if you distribute this file as part of a program or library that is built using GNU Libtool, you may include this file under the same distribution terms that you use for the rest of that program. . GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy can be downloaded from http://www.gnu.org/licenses/gpl.html, or obtained by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/pam-configs/0000755000000000000000000000000012263602625011375 5ustar debian/pam-configs/snapper0000644000000000000000000000027412250554703012772 0ustar Name: Snapshot the filesystem when the user logs in and out of the system Default: yes Priority: 0 Session-Interactive-Only: yes Session-Type: Additional Session: optional pam_snapper.so debian/watch0000644000000000000000000000011612250631710010212 0ustar version=3 http://ftp.suse.com/pub/projects/snapper/ snapper-([\d\.]+).tar.bz2 debian/libpam-snapper.prerm0000644000000000000000000000016012263602646013153 0ustar #!/bin/sh set -e if [ "$1" = "remove" ] ; then pam-auth-update --package --remove snapper fi #DEBHELPER# debian/libpam-snapper.README.Debian0000644000000000000000000000211212250703523014133 0ustar Debian documentation for libpam-snapper --------------------------------------- libpam-snapper uses pam-auth-config to hook itself into the system PAM config, and therefore should be enabled by default. To generate snapshots when the user logs in/out, a snapper configuration with the name home_ needs to exist. libpam-snapper provides a few scripts to generate such a config: - /usr/share/pam_snapper/pam_snapper_useradd.sh: useradd wrapper, creating the subvolume and generating the snapshot configuration for a new user; - /usr/share/pam_snapper/pam_snapper_userdel.sh: userdel wrapper, removing the snapper configuration while removing the user; - /usr/share/pam_snapper/pam_snapper_homeconvert.sh: converts an existing user's home for use by snapper. Warning: if the user home is not on a submodule, it is created and the current data is moved to it. Those scripts need to be adapted for a local setup. You especially need to make the DRYRUN variable 0 for the scripts to act on data. -- Nicolas Dandrimont , Sat, 7 Dec 2013 21:38:43 +0100 debian/rules0000755000000000000000000000254512250640462010255 0ustar #!/usr/bin/make -f include /usr/share/dpkg/architecture.mk %: dh $@ --with autoreconf override_dh_auto_configure: dh_auto_configure -- --with-conf=/etc/default --disable-zypp --enable-xattrs --disable-silent-rules override_dh_auto_install: dh_auto_install # Add pam-configs for snapper cp -a $(CURDIR)/debian/pam-configs $(CURDIR)/debian/tmp/usr/share # Remove zypp-related files find $(CURDIR)/debian/tmp -name *zypp* -delete # Install the configuration file in /etc/default mkdir -p $(CURDIR)/debian/tmp/etc/default install -m 0644 $(CURDIR)/data/sysconfig.snapper $(CURDIR)/debian/tmp/etc/default/snapper # Move the pam library to /lib mkdir -p $(CURDIR)/debian/tmp/lib mv $(CURDIR)/debian/tmp/$(DEB_BUILD_MULTIARCH) $(CURDIR)/debian/tmp/lib # Change the cron names and config paths set -e; for dir in $(CURDIR)/debian/tmp/etc/cron.*/; do \ sed -e 's#/etc/sysconfig#/etc/default#g' $$dir/suse.de-snapper > $$dir/snapper; \ chmod +x $$dir/snapper; \ rm $$dir/suse.de-snapper; \ done # Purge the la files find $(CURDIR)/debian/tmp -name *.la -delete # Purge a redundant COPYING file rm -f $(CURDIR)/debian/tmp/usr/share/doc/snapper/COPYING # Cleanup examples make -C examples clean override_dh_compress: dh_compress -X.c -X.cc -X.h -X.hpp -X.am override_dh_makeshlibs: dh_makeshlibs -V override_dh_install: dh_install --fail-missing