debian/0000755000000000000000000000000011765140277007200 5ustar debian/metastore.examples0000644000000000000000000000001311443005653012724 0ustar examples/* debian/metastore.docs0000644000000000000000000000000711443005653012041 0ustar README debian/changelog0000644000000000000000000000561111765140203011042 0ustar metastore (1+20080623+debian-3) unstable; urgency=low * Handle xattrs with empty value correctly; thanks to Przemysław Pawełczyk (closes: #676572, LP: #937306). * Switch to debhelper compat level 9. * Enable all hardening options. * Don't overwrite environment CFLAGS, use CPPFLAGS. * Bump Standards-Version to 3.9.3, no changes needed. -- Romain Francoise Sun, 10 Jun 2012 17:42:59 +0200 metastore (1+20080623+debian-2) unstable; urgency=low * New maintainer (closes: #540588). * Fix getopt parsing of -f (closes: #594134). * Remove prompting from example Git pre-commit hook (closes: #469250); hooks now run with stdin closed (since Git version 1.5.4) and prompting will not work when using a high-level interface such as git-gui or Emacs anyway. * Switch (back) to a minimal rules files; restores missing examples. * Switch to source format 3.0 (quilt). * Add debian/watch. * Bump Standards-Version to 3.9.1, no changes needed. -- Romain Francoise Sun, 12 Sep 2010 10:56:36 +0200 metastore (1+20080623+debian-1) unstable; urgency=low * Orphaning package. -- Daniel Baumann Sun, 09 Aug 2009 01:16:56 +0200 metastore (1+20080623+debian) unstable; urgency=low * New maintainer (Closes: #486897). * New upstream checkout, tarball built without debian directory. * Replacing package descriptions with text from Davids homepage. * Upgrading package to standards 3.8.0. * Seting correct value for homepage field. * Adding ${misc:depends} to depends. * Adding/Updating vcs fields. * Rewriting copyright in machine-interpretable format. * Removing unused dirs debhelper. * Rewriting rules file in traditional way. -- Daniel Baumann Fri, 19 Sep 2008 13:06:00 +0200 metastore (1-4) unstable; urgency=low * debhelper v7; rules file minimisation * Orphaned the package. -- Joey Hess Wed, 18 Jun 2008 16:16:15 -0400 metastore (1-3) unstable; urgency=low * detect nonexistant users/groups and print a warning message that includes the pathname * Merge upstream changes through ed7e4217e2eae466bab88cd425c71ac22a0340c5: - First stab at supporting the option of automatically creating empty directories which are missing. Closes: #460998 - Detect whether the underlying FS supports xattrs. Closes: #470184 -- Joey Hess Thu, 20 Mar 2008 21:34:51 -0400 metastore (1-2) unstable; urgency=low * Fix man page to document --compare. Closes: #451313 * Correct display of usage message. -- Joey Hess Thu, 15 Nov 2007 12:11:25 -0500 metastore (1-1) unstable; urgency=low * Initial upload to Debian. -- Joey Hess Mon, 05 Nov 2007 23:01:52 -0500 metastore (1) unstable; urgency=low * Initial release. -- David Härdeman Sat, 19 May 2007 23:20:28 +0200 debian/source/0000755000000000000000000000000011443007154010465 5ustar debian/source/format0000644000000000000000000000001411443007154011673 0ustar 3.0 (quilt) debian/control0000644000000000000000000000161011765136124010575 0ustar Source: metastore Section: misc Priority: optional Maintainer: Romain Francoise Uploaders: David Härdeman Build-Depends: debhelper (>= 9), libattr1-dev Standards-Version: 3.9.3 Homepage: http://david.hardeman.nu/software.php Package: metastore Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Store and restore metadata from a filesystem metastore is a tool to store the metadata of files/directories/links in a file tree to a separate file and to later compare and apply the stored metadata to said file tree. . The tool was written as a supplement to git which does not store all metadata, making it unsuitable for e.g. storing /etc in a repo. metastore could also be helpful if you want to create a tarball of a file tree and make sure that "everything" (e.g. xattrs, mtime, owner, group) is stored along with the files. debian/copyright0000644000000000000000000000175511443005653011132 0ustar Author: David Härdeman Download: http://david.hardeman.nu/software.php Files: * Copyright: (C) 2007-2008 David Härdeman License: GPL-2+ This program 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. . 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 complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/rules0000755000000000000000000000011711765136065010257 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ debian/compat0000644000000000000000000000000211765136134010373 0ustar 9 debian/patches/0000755000000000000000000000000011765137200010617 5ustar debian/patches/02-git-pre-commit.diff0000644000000000000000000000163411443112716014527 0ustar Do not prompt in example git pre-commit hook Hooks now run with stdin closed (since Git version 1.5.4, commit f5bbc322) and prompting will not work when using a high-level interface such as git-gui or Emacs anyway. --- examples/pre-commit | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) --- a/examples/pre-commit +++ b/examples/pre-commit @@ -1,20 +1,7 @@ #!/bin/bash # # An example hook script to store metadata information using -# metastore on each commit. A verification message with a list -# of changes will first be shown and only if it is accepted will -# the commit proceed. - -echo "Going to commit the following metadata changes" >&2 -metastore -c -m >&2 -echo -n "Ok to commit? (y/n): " >&2 -read -n1 REPLY -echo "" - -if [ "$REPLY" != "y" ]; then - echo "Aborted" >&2 - exit 1 -fi +# metastore on each commit. if ! metastore -s; then echo "Failed to execute metastore -s" >&2 debian/patches/03-build-flags.diff0000644000000000000000000000127711765136717014105 0ustar Don't overwrite environment CFLAGS, use CPPFLAGS. --- a/Makefile +++ b/Makefile @@ -18,13 +18,13 @@ # Generic settings # CC = gcc -CFLAGS = -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2 -LDFLAGS = +CFLAGS += -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2 +LDFLAGS += INCLUDES = INSTALL = install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 -COMPILE = $(CC) $(INCLUDES) $(CFLAGS) +COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) LINK = $(CC) $(CFLAGS) $(LDFLAGS) OBJECTS = utils.o metastore.o metaentry.o HEADERS = utils.h metastore.h metaentry.h debian/patches/01-getopt.diff0000644000000000000000000000054411443010613013163 0ustar Fix getopt parsing of -f. --- metastore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/metastore.c +++ b/metastore.c @@ -376,7 +376,7 @@ i = 0; while (1) { int option_index = 0; - c = getopt_long(argc, argv, "csahvqmef", + c = getopt_long(argc, argv, "csahvqmef:", long_options, &option_index); if (c == -1) break; debian/patches/series0000644000000000000000000000012011765137131012030 0ustar 01-getopt.diff 02-git-pre-commit.diff 03-build-flags.diff 04-novalue-xattr.diff debian/patches/04-novalue-xattr.diff0000644000000000000000000000103011765137200014475 0ustar Don't attempt to write a zero-length string to the store file when an entry has an xattr without value. --- a/metaentry.c +++ b/metaentry.c @@ -401,8 +401,9 @@ for (i = 0; i < mentry->xattrs; i++) { write_string(mentry->xattr_names[i], to); write_int(mentry->xattr_lvalues[i], 4, to); - write_binary_string(mentry->xattr_values[i], - mentry->xattr_lvalues[i], to); + if (mentry->xattr_lvalues[i]) + write_binary_string(mentry->xattr_values[i], + mentry->xattr_lvalues[i], to); } } } debian/watch0000644000000000000000000000004611443010210010201 0ustar # Upstream does not release tarballs.