From aa2e7d2d084c8b777f3da587d5ff2fc4a181d689 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 29 Jul 2004 23:13:56 +0000 Subject: add debian stuff git-svn-id: file:///home/lennart/svn/public/syrep/trunk@65 07ea20a6-d2c5-0310-9e02-9ef735347d72 --- Makefile.am | 7 ++-- debian/changelog | 6 ++++ debian/compat | 1 + debian/control | 34 ++++++++++++++++++ debian/copyright | 13 +++++++ debian/dirs | 2 ++ debian/docs | 2 ++ debian/rules | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 170 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100755 debian/rules diff --git a/Makefile.am b/Makefile.am index edcd325..8aae3e5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,7 +16,7 @@ # along with syrep; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. -EXTRA_DIST=bootstrap.sh README LICENSE +EXTRA_DIST=bootstrap.sh README LICENSE debian/changelog debian/compat debian/control debian/copyright debian/dirs debian/docs debian/rules SUBDIRS=src doc man MAINTAINERCLEANFILES = README @@ -37,4 +37,7 @@ homepage: all dist distcleancheck: @: -.PHONY: homepage distcleancheck +deb: + dpkg-buildpackage -rfakeroot + +.PHONY: homepage distcleancheck deb diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7791ed3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +syrep (0.5-1) unstable; urgency=low + + * Initial Release. + + -- Lennart Poettering Fri, 30 Jul 2004 01:03:45 +0200 + 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..a1e84a1 --- /dev/null +++ b/debian/control @@ -0,0 +1,34 @@ +Source: syrep +Section: utils +Priority: optional +Maintainer: Lennart Poettering +Build-Depends: debhelper (>= 4.0.0), lynx, xmltoman, gengetopt, subversion, zlib1g-dev, libdb4.2-dev +Standards-Version: 3.6.0 + +Package: syrep +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A generic file repository synchronization tool + syrep is a generic file repository synchronization tool. It may be used to + synchronize large file hierarchies bidirectionally by exchanging patch files. + Syrep is truely peer-to-peer, no central servers are involved. + Synchronizations between more than two repositories are supported. The patch + files may be transferred via offline media, e.g. removable hard disks or + compact discs. + . + Files are tracked by their message digests, currently MD5. The following file + operations are tracked in the snapshot files: creation, deletion, + modification, creation of new hard or symbolic links, renaming. (The latter is + nothing more than a new hard link and removal of the old file). syrep doesn't + distuinguish between soft and hard links. In fact even copies of files are + treated as the same. Currently, syrep doesn't synchronize file attributes like + access modes or modification times. + . + Syrep was written to facilitate the synchronization of two large digital music + repositories without direct network connection. Patch files of several + gigabytes are common in this situation. + . + Syrep is able to cope with 64 bit file sizes. (LFS) + . + Syrep is optimized for speed. It may make use of a message digest cache to + accelerate the calculation of digests of a whole directory hierarchy. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f3dd146 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Lennart Poettering on +Fri, 30 Jul 2004 01:03:45 +0200. + +It was downloaded from http://0pointer.de/lennart/projects/syrep/ + +Upstream Author: Lennart Poettering + +Copyright: + +You are free to distribute this software under the terms of the GNU +General Public License. On Debian systems, the complete text of the +GNU General Public License can be found in the file +`/usr/share/common-licenses/GPL'. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..961869b --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +doc/package.txt diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..562ab11 --- /dev/null +++ b/debian/rules @@ -0,0 +1,107 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# 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) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/syrep.sgml > syrep.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean +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 + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/syrep. + $(MAKE) install DESTDIR=$(CURDIR)/debian/syrep + + +# 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 + 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 -- cgit