debian/0000755000000000000000000000000011732674403007175 5ustar debian/docs0000644000000000000000000000000711732674403010045 0ustar README debian/clean0000644000000000000000000000001511732674403010176 0ustar .pc/.version debian/source/0000755000000000000000000000000011732674403010475 5ustar debian/source/format0000644000000000000000000000001411732674403011703 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000211211732674403011043 0ustar comprez (2.6.1-2) unstable; urgency=low * debian/control - (Build-Depends): Update to debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/compat - Update to 9. * debian/copyright - Update to format 1.0. * debian/rules - Update to dh(1). -- Jari Aalto Thu, 22 Mar 2012 15:09:33 -0400 comprez (2.6.1-1) unstable; urgency=low * New upstream release. * Move to format: 3.0 (quilt). * debian/clean - Move content from 'rules' for dh(1) to use. * debian/debian-vars.mk - Update. * debian/control - (Build-Depends:): remove dpatch. * debian/patches - Move dpatch format to quilt. * debian/rules - (binary-arch): Delete unused. - (configure-stamp, build-stamp. clean): Delete; obsoleted by dh(1). - (install): minor adjustments. * debian/source/format - New file. -- Jari Aalto Wed, 16 Dec 2009 18:48:20 +0200 comprez (2.6.0-1) unstable; urgency=low * Initial release (Closes: #453269). -- Jari Aalto Fri, 04 Dec 2009 12:57:34 +0200 debian/copyright0000644000000000000000000000234711732674403011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: z Upstream-Contact: Steve Kinzler Source: http://freshmeat.net/projects/z X-Upstream-Vcs: X-Upstream-Bugs: X-Source: http://www.cs.indiana.edu/~kinzler/z http://directory.fsf.org/all/Z.html Files: * Copyright: 1989-2000 Steve Kinzler License: GPL-2+ Files: debian/* Copyright: 2009, 2012 Jari Aalto License: GPL-2+ License: GPL-2+ 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; either version 2 of the License, or (at your option) any later version. . 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 program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/debian-vars.mk0000644000000000000000000000547511732674403011734 0ustar # debian-vars.mk -- Common variables # # Copyright # # Copyright (C) 2005-2009 Jari Aalto # # License # # 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 at # . # # Description # # This is GNU makefile part, that defines common variables and # macros to be used from debian/rules. To install, add this: # # PACKAGE = foo # include debian/debian-vars.mk ifneq (,) This makefile requires GNU Make. endif PACKAGE ?= foo TOPDIR := $(shell pwd) PKGDIR = $(CURDIR)/debian/$(PACKAGE) SHAREROOTDIR = $(PKGDIR)/usr/share SHAREDIR = $(SHAREROOTDIR)/$(PACKAGE) DOCROOTDIR = $(SHAREROOTDIR)/doc PKGDOCDIR = $(SHAREROOTDIR)/doc/$(PACKAGE) SITELISPDIR = $(SHAREROOTDIR)/emacs/site-lisp PKGLISPDIR = $(SITELISPDIR)/$(PACKAGE) DESKTOPDIR = $(SHAREROOTDIR)/applications LOCALEDIR = $(SHAREROOTDIR)/locale INFODIR = $(SHAREROOTDIR)/info PIXDIR = $(SHAREROOTDIR)/pixmaps MANROOTDIR = $(SHAREROOTDIR)/man MAN1DIR = $(MANROOTDIR)/man1 MAN5DIR = $(MANROOTDIR)/man5 MAN8DIR = $(MANROOTDIR)/man8 LIBROOTDIR = $(PKGDIR)/usr/lib LIBDIR = $(LIBROOTDIR)/$(PACKAGE) LIBPERLDIR = $(LIBROOTDIR)/perl BINDIR = $(PKGDIR)/usr/bin SBINDIR = $(PKGDIR)/usr/sbin INSTALL ?= /usr/bin/install INSTALL_DATA = $(INSTALL) -p -m 644 INSTALL_SCRIPT = $(INSTALL) -p -m 755 INSTALL_BIN = $(INSTALL) -p -m 755 INSTALL_DIR = $(INSTALL) -m 755 -d ####################################################################### # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) # # [Add this] # config.status: configure # ... # ./configure --host=$(DEB_HOST_GNU_TYPE) \ # --build=$(DEB_BUILD_GNU_TYPE) \ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ####################################################################### # [Add this to use multiple CPU cores] # build-stamp: # $(MAKE) $(MAKE_FLAGS) ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_BIN += -s endif CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif MAKE_FLAGS = CPU_COUNT := $(shell fgrep -c processor /proc/cpuinfo 2> /dev/null | \ egrep "^[2-9]$$|^[0-9][0-9]$$") ifneq ($(CPU_COUNT),) MAKE_FLAGS += -j$(CPU_COUNT) endif # End of Makefile part debian/compat0000644000000000000000000000000211732674403010373 0ustar 9 debian/control0000644000000000000000000000162311732674403010602 0ustar Source: comprez Section: utils Priority: extra Maintainer: Jari Aalto Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3.1 Vcs-Browser: http://git.debian.org/?p=collab-maint/comprez.git Vcs-Git: git://git.debian.org/git/collab-maint/comprez.git Homepage: http://www.cs.indiana.edu/~kinzler/z Package: comprez Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Description: frontend to many compression programs Comprez, aka 'z', is a simple, safe and convenient front-end for the compress(1), uncompress(1), gzip(1), bzip2(1), tar(1), zip(1) and unzip(1) utilities for compressing and uncompressing files and directories. . The basic idea is that you can just run "comprez SOMETHING" where SOMETHING is any file, directory, compressed file or compressed archive, and program will do the right thing in a standard way. Simple for novices and convenient for experts. debian/repack.sh0000755000000000000000000001110011732674403010772 0ustar #!/bin/sh # # Copyright # # Copyright (C) 2008-2009 Jari Aalto # # License # # 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, see . set -e set -u Init () { # Check depends [ -x /bin/mktemp ] || Die "[ERROR]: mktemp (coreutils) not installed." [ -x /bin/bzip2 ] || Die "[ERROR]: bzip2 (bzip2) not installed." [ -x /bin/gzip ] || Die "[ERROR]: gzip (gzip) not installed." [ -x /bin/tar ] || Die "[ERROR]: tar (tar) not installed." } Help () { echo " SYNOPSIS repack.sh --upstream-source [package] DESCRIPTION Repackage upstream source. The command line arguments are due to uscan(1) order. The PACKAGE argument is optional. EXAMPLES Repack foo-1.1.tar.gz as bar-1.10.tar.gz repack.sh 1.10 foo-1.1.tar.gz bar AUTHOR Jari Aalto . Licenced under GPL v2 or, at your option, any later version. " exit 0 } Run () { if [ "${test+test_mode}" = "test_mode" ]; then echo "$@" else [ "${verbose+verbose_mode}" = "verbose_mode" ] && echo "$@" >&2 "$@" fi } Warn () { echo "$*" >&2 } Die () { Warn "$*" exit 1 } AtExit () { if [ "$DIR" ]; then [ -d "$DIR" ] && Run rm -rf "$DIR" fi } DebianVersion () { # YYYYMMDD => YYYY.MMDD echo $1 | sed 's/^\([0-9][0-9][0-9][0-9]\)\([0-9][0-9]\)\([0-9][0-9]\)/\1.\2\3/' } DebianTar () { local ver=$1 local dver=$2 local file=$3 local pkg=$4 # If version is same, use original file if [ "$ver" = "$dver" ]; then if [ "$pkg" ]; then echo $file | sed "s,.*$ver,$pkg-$ver," else echo $file fi return 0 fi if [ "$pkg" ]; then echo $file | sed -e "s,.*$ver,$pkg-$dver," else # replace with new version echo $file | sed -e "s,$ver,$dver," fi } Pkg () { local file=$1 if [ -f debian/changelog ]; then dpkg-parsechangelog | awk '/^Source:/ {print $2}' else # package-1.1.tar.gz => package echo $file | sed "s,-[0-9].*,," fi } Version () { local file=$1 local pkg=$(Pkg $file) if [ ! "$pkg" ]; then Die "[ERROR] Internal error. 'pkg' variable not set. Run with debug (-x)" fi echo $file | sed -e "s,\.tar.*,," \ -e "s,$pkg[-_],," } Main () { Init DIR= # Ignore uscan(1) argument --upstream-version in $1 case "$1" in --help|-h) Help ;; --*) shift ;; esac VER="$1" FILE="$2" if [ ! -f "$FILE" ]; then Die "[ERROR] Arg 2. File does not exist: $FILE" fi PKG=${3:-$(Pkg $FILE)} if [ ! "$PKG" ]; then Die "[ERROR] Internal error. PKG not set. Run with debug (-x)" fi CURVER=$(Version $FILE) if [ ! "$CURVER" ]; then Die "[ERROR] Internal error. CURVER not set. Run with debug (-x)" fi DVER=$(DebianVersion "$VER") DFILE=$(DebianTar "$CURVER" "$DVER" "$FILE" $PKG) # Debian Developer's Reference 6.7.8.2 Repackaged upstream source REPACK_DIR="$PKG-$DVER.orig" DIR=$(Run mktemp -d ./tmp.repack.XXXXXX) echo "Repacking $FILE as $PKG-$DVER" # Create an extra directory to cope with tarballs that # do not have root/ directory UP_BASE="$DIR/unpack" Run mkdir "$UP_BASE" Run tar -C "$UP_BASE" -xf "$FILE" if [ $(ls -1 "$UP_BASE" | wc -l) -eq 1 ]; then # Tarball does contain a root directory UP_BASE="$UP_BASE/$(ls -1 "$UP_BASE")" fi # Remove files if needed # Repack Run mv "$UP_BASE" "$DIR/$REPACK_DIR" # Don't use pipes. Errors are not handled correctly if pipes aree used. Run tar -C "$DIR" -cf "$DIR/repacked.tar" "$REPACK_DIR" # The .orig file must uxe gzip compression tar="$DIR/repacked.tar" case "$DFILE" in *.bz2) DFILE=$(echo $DFILE | sed "s/.bz2/.gz/") ;; *.gz) ;; *) Die "Unknown *.suffix in $DFILE" ;; esac suffix=".gz" Run gzip --best "$tar" Run mv "$tar$suffix" "$DFILE" echo "Done $DFILE" } trap AtExit QUIT INT EXIT Main "$@" # End of file debian/README.Debian-source0000644000000000000000000000036511732674403012540 0ustar comprez for Debian ------------------ The package z-VERSION was re-tarred as comprez-VERSION, no further changes were made when making Debian package. See debian/repack.sh -- Jari Aalto , Wed, 22 Aug 2007 14:16:20 +0300 debian/debian-compile.mk0000644000000000000000000000370011732674403012376 0ustar # debian-compile.mk -- Common compile variables # # Copyright # # Copyright (C) 2005-2009 Jari Aalto # # License # # 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 at # . # # Description # # This is GNU makefile part, that defines common variables and # macros to be used from debian/rules. To install, add this: # # PACKAGE = foo # include debian/debian-compile.mk ifneq (,) This makefile requires GNU Make. endif ####################################################################### # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) # # [Add this] # config.status: configure # ... # ./configure --host=$(DEB_HOST_GNU_TYPE) \ # --build=$(DEB_BUILD_GNU_TYPE) \ export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export 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 ####################################################################### # [Add this to use multiple CPU cores] # build-stamp: # $(MAKE) $(MAKE_FLAGS) MAKE_FLAGS = CPU_COUNT := $(shell fgrep -c processor /proc/cpuinfo 2> /dev/null | \ egrep "^[2-9]$$|^[0-9][0-9]$$") ifneq ($(CPU_COUNT),) MAKE_FLAGS += -j$(CPU_COUNT) endif # End of Makefile part debian/README.Debian0000644000000000000000000000053211732674403011236 0ustar comprez for Debian ------------------ The orginal binary 'z' was renamed to 'comprez' because one letter commands are discouraged. Likewise for the manual page. It is possible to make an alias to use it like the original program. An example for Bash: alias z=comprez -- Jari Aalto , Fri, 4 Dec 2009 11:17:19 +0200 debian/rules0000755000000000000000000000042311732674403010254 0ustar #!/usr/bin/make -f PACKAGE = comprez override_dh_auto_install: install -D -m 755 z \ $(CURDIR)/debian/$(PACKAGE)/usr/bin/$(PACKAGE) override_dh_installman: install -D -m 644 z.man \ $(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1/$(PACKAGE).1 %: dh $@ # End of file debian/watch0000644000000000000000000000025211732674403010225 0ustar version=3 opts="downloadurlmangle=s/.index.html//,opts=filenamemangle=s/tgz/tar.gz/" \ http://www.cs.indiana.edu/~kinzler/z/ z-([\d.]+)\.tgz debian debian/repack.sh debian/patches/0000755000000000000000000000000011732674403010624 5ustar debian/patches/10-z.man-change-name.patch0000644000000000000000000000314411732674403015251 0ustar From ef5b9d51ea214e667875aa3da5ec83d1b9fb54f5 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Fri, 4 Dec 2009 13:13:09 +0200 Subject: [PATCH] z.man: chnage name to comprez Signed-off-by: Jari Aalto --- z.man | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/z.man b/z.man index df46cc2..a4d0402 100644 --- a/z.man +++ b/z.man @@ -1,8 +1,8 @@ .TH Z 1 2.6.1 .SH NAME -z \- safely (un)tar and (de)feather files and directories +comprez \- safely (un)tar and (de)feather files and directories .SH SYNOPSIS -.B z +.B comprez [ .B \-t | @@ -48,7 +48,7 @@ z \- safely (un)tar and (de)feather files and directories ] .I file ... .SH DESCRIPTION -.I Z +.I Comprez is a simple, safe and convenient front-end for the .IR compress (1), .IR uncompress (1), @@ -216,7 +216,7 @@ GZIP This environment variable for .IR gzip (1) is \fBnot\fP passed on by -.I z +.I comprez so that .IR gzip 's behavior is standard and predictable. @@ -228,20 +228,20 @@ These environment variables for and .IR unzip (1) are \fBnot\fP passed on by -.I z +.I comprez so that their behavior is standard and predictable. .SH BUGS There should be an option to allow the use of another directory for temporary files needed during the (un)tarring and (de)feathering processes. This would make -.I z +.I comprez more useful when the quota or disk is nearly full. .PP There should be \fB\-k\fP and \fB\-K\fP options for keeping the original input files or not. .SH CAVEATS -.I Z +.I Comprez is written to work with .I gzip versions 1.2.3 and 1.2.4, -- 1.6.5 debian/patches/series0000644000000000000000000000003311732674403012035 0ustar 10-z.man-change-name.patch