From 4598a1285a43e6cbe4cf5fb22b577e389f120a2b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 7 Nov 2015 16:57:39 +0100 Subject: Adding debian version 0.2-1. Signed-off-by: Daniel Baumann --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 19 +++++++++++++++++++ debian/copyright | 14 ++++++++++++++ debian/rules | 10 ++++++++++ debian/zutils.docs | 2 ++ debian/zutils.postrm | 26 ++++++++++++++++++++++++++ debian/zutils.preinst | 26 ++++++++++++++++++++++++++ 8 files changed, 103 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/zutils.docs create mode 100644 debian/zutils.postrm create mode 100644 debian/zutils.preinst diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..016a511 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +zutils (0.2-1) unstable; urgency=low + + * Initial release. + + -- Daniel Baumann Sat, 08 Aug 2009 10:53:00 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4a8145d --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: zutils +Section: utils +Priority: extra +Maintainer: Debian Lzip Maintainers +Uploaders: Daniel Baumann +Build-Depends: debhelper (>= 7), autotools-dev, lzip, texinfo +Standards-Version: 3.8.2 +Homepage: http://www.nongnu.org/lzip/zutils.html +Vcs-Browser: http://git.debian-maintainers.org/?p=lzip/lzip.git +Vcs-Git: git://git.debian-maintainers.org/git/lzip/lzip.git + +Package: zutils +Architecture: all +Depends: ${misc:Depends} +Recommends: bzip2, lzip, xz-utils +Description: utilities for dealing with compressed files transparently + Zutils is a collection of utilities for dealing with any combination of + compressed and non-compressed files transparently. Currently the supported + compressors are gzip, bzip2, lzip, and xz. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2e99412 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,14 @@ +Author: Antonio Diaz Diaz +Download: http://www.nongnu.org/lzip/zutils.html + +Files: * +Copyright: (C) 2009 Antonio Diaz Diaz +License: PD + These scripts are free software: you have unlimited permission + to copy, distribute and modify it. + +Files: debian/* +Copyright: (C) 2009 Daniel Baumann +License: PD + The Debian packaging is hereby placed in the public domain (no rights + reserved). diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f7b64bd --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +%: + dh ${@} + +override_dh_auto_install: + $(MAKE) prefix=$(CURDIR)/debian/zutils/usr bindir=$(CURDIR)/debian/zutils/bin install + + # Removing useless file + rm -f debian/zutils/usr/share/info/dir* diff --git a/debian/zutils.docs b/debian/zutils.docs new file mode 100644 index 0000000..50bd824 --- /dev/null +++ b/debian/zutils.docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/debian/zutils.postrm b/debian/zutils.postrm new file mode 100644 index 0000000..709bc34 --- /dev/null +++ b/debian/zutils.postrm @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove) + for FILE in zgrep zcmp zdiff zcat + do + dpkg-divert --package zutils --remove --rename --divert /bin/${FILE}.gzip /bin/${FILE} + dpkg-divert --package zutils --remove --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz + done + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/zutils.preinst b/debian/zutils.preinst new file mode 100644 index 0000000..c24ed84 --- /dev/null +++ b/debian/zutils.preinst @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +case "${1}" in + install) + for FILE in zgrep zcmp zdiff zcat + do + dpkg-divert --package zutils --add --rename --divert /bin/${FILE}.gzip /bin/${FILE} + dpkg-divert --package zutils --add --rename --divert /usr/share/man/man1/${FILE}.gzip.1.gz /usr/share/man/man1/${FILE}.1.gz + done + ;; + + upgrade|abort-upgrade) + + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit v1.2.3