--- safecat-1.13.orig/debian/changelog +++ safecat-1.13/debian/changelog @@ -0,0 +1,87 @@ +safecat (1.13-0.1) unstable; urgency=low + + * Non-maintainer upload. + * New upstream release. + + -- Greg Wooledge Tue, 17 Feb 2009 10:48:28 -0500 + +safecat (1.12-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Install the maildir(1) script and its man page, just as the upstream + package has always done. (It's not just an example!) (Closes: #220849) + + -- Greg Wooledge Tue, 25 Apr 2006 18:51:09 -0400 + +safecat (1.12-1) unstable; urgency=low + + * New upstream release. Includes largefile patch and some typo fixes. + * Effectively rebuilds, fixing relocation error (Closes: #321608) + * debian/rules: respects DEB_BUILD_OPTIONS. + * Removed debian/one-liners.txt, updated debian/copyright accordingly. + * Updated to Standards-Version 3.6.2.0. + + -- Teemu Hukkanen Sat, 17 Sep 2005 02:15:17 +0300 + +safecat (1.11-1) unstable; urgency=low + + * New upstream release. (Closes: #224798) + * Updated upstream URL. + * Updated to Standards-Version 3.6.1.0. + * No longer breaks on input stream longer than 2GB. Thanks to Kai Hendry + for kicking me into doing this. (Closes: #222124) + + -- Teemu Hukkanen Tue, 10 Feb 2004 23:08:38 +0200 + +safecat (1.9-1) unstable; urgency=low + + * New upstream version. (Contains fixes for Solaris) (Closes: #158826) + * Fix build for Hurd. (Closes: #112859) + * And just for completeness, include maildir script in examples. + (Closes: #132520) + * Upgraded to Standards-Version 3.5.7.0. + * Cleanups proposed by linda: + * Upstream Author(s) -> Upstream Author in debian/copyright + * No upstream changelog -> Install CHANGES as changelog + + -- Teemu Hukkanen Mon, 21 Oct 2002 18:55:44 +0300 + +safecat (1.8-1) unstable; urgency=low + + * New upstream version. + + -- Teemu Hukkanen Wed, 13 Jun 2001 20:20:44 +0300 + +safecat (1.4-1) unstable; urgency=low + + * New upstream version. No changes to the binaries. + + -- Teemu Hukkanen Sat, 25 Nov 2000 19:08:33 +0200 + +safecat (1.3-1) unstable; urgency=low + + * New upstream version. + + -- Teemu Hukkanen Sun, 23 Jul 2000 01:57:38 +0300 + +safecat (1.0-2) unstable; urgency=low + + * Cleaned up the rules. + + -- Teemu Hukkanen Thu, 2 Dec 1999 14:37:56 +0200 + +safecat (1.0-1) unstable; urgency=low + + * New upstream version. + * FHS + * Added one-liners.html from upstream website + + -- Teemu Hukkanen Tue, 26 Oct 1999 19:30:22 +0300 + +safecat (0.1-1) unstable; urgency=low + + * Initial Release. + + -- Teemu Hukkanen Mon, 18 Jan 1999 09:18:17 +0200 + + --- safecat-1.13.orig/debian/prerm +++ safecat-1.13/debian/prerm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +pkg=safecat + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$pkg ]; then + rm -f /usr/doc/$pkg +fi --- safecat-1.13.orig/debian/copyright +++ safecat-1.13/debian/copyright @@ -0,0 +1,77 @@ +This package was debianized by Teemu Hukkanen tjhukkan@iki.fi on +Mon, 18 Jan 1999 09:18:17 +0200. + +It was downloaded from + + +Upstream Authors: Len Budney + +Copyright: +--- +All original content is Copyright (c) 2000, Len Budney. All rights +reserved. + +Copying permissions for safecat comes in two parts: + + 1. All code written by me is offered under the BSD license. See below + for the text of the BSD license. Original content is clearly marked + with a copyright notice and my name. + + 2. Other components of the package, like the programs ``setup'' and + ``instcheck'', were derived from code written by Dan Bernstein. + Dan has not specified the licensing of (some of) his code; some of + his code he has released into the public domain. + + My best understanding of Dan's position, based on what he has + written on the subject, is that he doesn't mind if people borrow + his code--as long as you make supporting that code your own problem. + In particular, the following considerations apply: + + a. If you have problems with safecat or anything in this + distribution, contact me about it--. Do NOT + bother Dan. + + b. If you think you've found problems in Dan's code, as contained + in this distribution, contact me first anyway. If I can verify + that the bug exists and isn't mine, I'll pass the info on to Dan. + Do NOT bother Dan. + + c. If you want to use Dan's code for your own projects, then + 1) you do so at your own risk, and 2) you should assume full + responsibility for maintenance of your project, including borrowed + code, just as I'm doing here for safecat. + + +The BSD License states: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + - All advertising materials mentioning features or use of this + software must display the following acknowledgement: This product + includes software developed by the University of California, Berkeley + and its contributors. + + - Neither name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS `AS IS'' + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- safecat-1.13.orig/debian/control +++ safecat-1.13/debian/control @@ -0,0 +1,15 @@ +Source: safecat +Section: utils +Priority: optional +Maintainer: Teemu Hukkanen +Build-Depends: groff-base +Standards-Version: 3.6.2.0 + +Package: safecat +Architecture: any +Depends: ${shlibs:Depends} +Description: safely copy stdin to a file + safecat is a program which implements Daniel Bernstein's maildir + algorithm to copy stdin safely to a file in a specified directory. + It can be used to write mail messages to a qmail-style maildir, or to + write data to a "spool" directory reliably. --- safecat-1.13.orig/debian/postinst +++ safecat-1.13/debian/postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +pkg=safecat + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/$pkg -a -d /usr/share/doc/$pkg ]; then + ln -sf ../share/doc/$pkg /usr/doc/$pkg + fi +fi --- safecat-1.13.orig/debian/rules +++ safecat-1.13/debian/rules @@ -0,0 +1,80 @@ +#!/usr/bin/make -f + +install = install -o root -g root +install_exec = $(install) -m 755 +install_dir = $(install) -m 755 -d +install_nonex = $(install) -m 644 +install_script = $(install) -m 755 +install_symlink = ln -s + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +install_exec += -s +endif + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS=-O0 +else +CFLAGS=-O2 +endif + +package = safecat +rootdir = `pwd`/debian/tmp +docdir = $(rootdir)/usr/share/doc/$(package) +bindir = $(rootdir)/usr/bin +mandir = $(rootdir)/usr/share/man +man1dir = $(rootdir)/usr/share/man/man1 + +build: debian/build.stamp +debian/build.stamp: + $(checkdir) + sed -i -e "s/cc -O./cc ${CFLAGS}/" conf-cc + $(MAKE) + touch $@ + +clean-build: + $(RM) debian/build*.stamp + -$(MAKE) clean + +binary: binary-arch binary-indep + +binary-indep: debian/binary-indep.stamp +debian/binary-indep.stamp: + touch $@ + +binary-arch: debian/binary-arch.stamp +debian/binary-arch.stamp: build + $(checkdir) + $(RM) -r $(rootdir) + $(install_dir) $(rootdir) + $(install_dir) $(rootdir)/DEBIAN + $(install_dir) $(docdir) + $(install_dir) $(bindir) + $(install_dir) $(man1dir) + $(install_exec) safecat $(bindir) + $(install_script) maildir $(bindir) + $(install_nonex) safecat.1 $(man1dir) + $(install_nonex) maildir.1 $(man1dir) + $(install_nonex) debian/changelog $(docdir)/changelog.Debian + $(install_nonex) CHANGES $(docdir)/changelog + $(install_nonex) README $(docdir) + gzip -9fr $(docdir)/ + $(install_nonex) debian/copyright $(docdir) + gzip -9 $(man1dir)/safecat.1 + dpkg-shlibdeps $(bindir)/safecat + dpkg-gencontrol -isp + chown -R root.root $(rootdir) + chmod -R g-ws $(rootdir) + dpkg --build $(rootdir) .. + touch $@ + +define checkdir + test -f safecat.c -a -f debian/control +endef + +clean-binary: + $(RM) debian/binary*.stamp + $(RM) *~ + $(RM) -r debian/tmp debian/*~ debian/files debian/substvars + +clean: clean-build clean-binary + --- safecat-1.13.orig/conf-ld +++ safecat-1.13/conf-ld @@ -1,3 +1,3 @@ -cc -s +cc This will be used to link .o files into an executable. --- safecat-1.13.orig/conf-cc +++ safecat-1.13/conf-cc @@ -1,4 +1,4 @@ -cc -O2 +cc -O2 -D_LARGEFILE64_SOURCE This will be used to compile .c files. Add any needed flags here; for example, if you want support for files larger than 2GB on Linux systems, --- safecat-1.13.orig/conf-root +++ safecat-1.13/conf-root @@ -1,4 +1,4 @@ -/usr/local +/usr The first line of this file gives the top-level directory for installation. Files will be installed in the appropriate subdirectories; bin, lib,