--- safecat-1.9.orig/conf-root +++ safecat-1.9/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, --- safecat-1.9.orig/error.h +++ safecat-1.9/error.h @@ -1,6 +1,7 @@ #ifndef ERROR_H #define ERROR_H +#include extern int errno; extern int error_intr; --- safecat-1.9.orig/debian/changelog +++ safecat-1.9/debian/changelog @@ -0,0 +1,58 @@ +safecat (1.9-1.0) unstable; urgency=low + + * Install the maildir(1) script. + + -- Greg Wooledge Fri, 14 Nov 2003 19:34:28 +0500 + +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.9.orig/debian/control +++ safecat-1.9/debian/control @@ -0,0 +1,15 @@ +Source: safecat +Section: utils +Priority: optional +Maintainer: Teemu Hukkanen +Build-Depends: groff-base +Standards-Version: 3.5.7.0 + +Package: safecat +Architecture: any +Depends: ${shlibs:Depends} +Description: safely copy stdin to a file + safecat is a program which implements Professor 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.9.orig/debian/copyright +++ safecat-1.9/debian/copyright @@ -0,0 +1,91 @@ +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. + +--- + +one-liners.txt is copyrighted material by the same author, copyright +follows: + + All original work on this site is Copyright © 1998 by Leonard R + Budney. Quotation of said material is permitted, if the author is + cited. Permission is further granted to duplicate, mirror, exerpt or + modify any documents on this site, for any legitimate purpose, + provided this copyright notice is included in its entirety. + + Unauthorized use includes any use intended to slander, denigrate or + misrepresent the author or others. --- safecat-1.9.orig/debian/one-liners.txt +++ safecat-1.9/debian/one-liners.txt @@ -0,0 +1,92 @@ + + Gallery of safecat One-Liners + + Admittedly, the documentation on safecat is not all that provocative. + On the other hand, safecat is a very simple program--how much is there + to say? Not much, if you have plenty of imagination! For the rest, + here are some handy-dandy uses of safecat. + + Note that in the current version of safecat, you can use either of the + following commands interchangeably: +maildir MAILDIR +safecat MAILDIR/tmp MAILDIR/new + + We have preserved the original semantics of safecat for applications + which don't involve qmail maildirs, where a common temp directory is + shared by many spool directories. When the following one-liners + involve "real" maildirs, we will use the less redundant syntax. + +Helping Manage Your Email + + If you are a qmail user, you already know something about Dan + Bernstein's super-reliable maildir format. If you're a mutt user, you + know that maildirs make great mail folders, too. Here are some quick + tricks to make life easier for you: + + Convert a UNIX mbox to a Maildir + + Forget fancy Perl scripts, which don't conform to the maildir + algorithm anyway! If you have procmail, you can use its cute little + 'formail' program and convert an mbox to a maildir in one line: +formail -I'From ' -s maildir MAILDIR < mbox + + Make procmail Deliver to a Maildir + + There is a patched procmail, which will deliver to a maildir. What on + earth for? Just make a recipe like the following, using the + standard-issue procmail: +:0 +|maildir MAILDIR + + Make fetchmail Deliver to a Maildir + + Usually, fetchmail connects to your local SMTP port to deliver email. + However, it violates the RFCs in several ways: it mucks around with + email envelopes; it doesn't use fully qualified domain names when + talking SMTP; under certain conditions it can drop messages on the + floor. If you put the following in your .fetchmailrc, then fetchmail's + bugs will be less likely to affect you (and you'll save system + resources a little, and speed up mail handling, too). +poll SERVER, user USER, password PASSWORD, no rewrite, + mda "/usr/bin/env - /usr/local/bin/maildir ~/Maildir" + + Here is the equivalent one-liner: +fetchmail -n -l USER -m "/usr/local/bin/maildir ~/Maildir" SERVER + + Make .qmail Files More Flexible + + The .qmail-ext files give a lovely, flexible way of handling incoming + email in a variety of ways. Suppose, though, that you have a family of + related addresses, all delivering to different maildirs. For example, + you might subscribe to mailing lists as username-lists-lname@host, and + want list mail delivered to a maildir named Mail/lname. You could make + a separate .qmail-listname file for each list, or you could put the + following line in .qmail-lists-default: +|maildir ./Mail/"$EXT2" + + Make sendmail do Maildir Deliveries + + Jealous of all your friends who use qmail? Is your home directory + mounted with NFS? Well, you can take advantage of the reliability of + maildir as well! Just put the following in your .forward file: +|maildir MAILDIR || exit 75 #USERNAME + + [1]Top + [2]safecat + [3]Linux + [4]Home + _________________________________________________________________ + + + Len Budney + [5]lbudney@pobox.com + [6]Copyright © 1999 + +References + + 1. http://www.nb.net/~lbudney/linux/software/safecat/one-liners.html#top + 2. http://www.nb.net/~lbudney/linux/software/safecat.html + 3. http://www.nb.net/~lbudney/linux.html + 4. http://www.nb.net/~lbudney/index.html + 5. mailto:lbudney@pobox.com + 6. http://www.nb.net/~lbudney/copyright.html --- safecat-1.9.orig/debian/postinst +++ safecat-1.9/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.9.orig/debian/prerm +++ safecat-1.9/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.9.orig/debian/rules +++ safecat-1.9/debian/rules @@ -0,0 +1,75 @@ +#!/usr/bin/make -f + +install = install -o root -g root +install_exec = $(install) -m 755 -s +install_dir = $(install) -m 755 -d +install_nonex = $(install) -m 644 +install_script = $(install) -m 755 +install_symlink = ln -s + +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) + $(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) +# strip --strip-unneeded --remove-section=.note \ +# --remove-section=.comment $(bindir)/safecat + $(install_nonex) debian/changelog $(docdir)/changelog.Debian + $(install_nonex) CHANGES $(docdir)/changelog + $(install_nonex) README debian/one-liners.txt $(docdir) + $(install_nonex) debian/one-liners.txt $(docdir) + $(install_dir) $(docdir)/examples + $(install_nonex) maildir.sh maildir.1 $(docdir)/examples + gzip -9fr $(docdir)/ + $(install_nonex) debian/copyright $(docdir) + gzip -9 $(man1dir)/safecat.1 + #$(install_script) debian/postinst $(rootdir)/DEBIAN + #$(install_script) debian/prerm $(rootdir)/DEBIAN + 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 +