--- flip-1.20.orig/debian/changelog
+++ flip-1.20/debian/changelog
@@ -0,0 +1,127 @@
+flip (1.20-1) unstable; urgency=low
+
+ * New upstream release. Preserve file permissions (closes:Bug#122435).
+ New self-test script.
+
+ * debian/rules: obey DEB_BUILD_OPTIONS flags noopt, nostrip, and
+ parallel. Don't ignore errors on "make clean". Package test-flip as
+ an example.
+
+ * debian/control: bump policy level to 3.8.0
+
+ * debian/dirs: don't package /usr/sbin
+
+ -- James R. Van Zandt <jrv@debian.org> Sat, 26 Jul 2008 11:14:25 -0400
+
+flip (1.19-6) unstable; urgency=low
+
+ * remove /usr/doc/flip symlink if it exists (thanks to Amaya
+ <amaya@debian.org>, closes:Bug#359405)
+
+ * debian/control: bump policy level to 3.7.2 (no changes needed)
+
+ -- James R. Van Zandt <jrv@debian.org> Fri, 14 Jul 2006 21:28:22 -0400
+
+flip (1.19-5) unstable; urgency=low
+
+ * repackage using debhelper. Don't install doc symlink (fixes:#359405)
+ * install symlinks for toms and toix (fixes:#153324,#278391)
+
+ -- James R. Van Zandt <jrv@debian.org> Tue, 28 Mar 2006 21:29:46 -0500
+
+flip (1.19-4) unstable; urgency=low
+
+ * recompile with current libc
+ * #include <string.h> to quiet some warnings.
+ * policy 3.6.2
+ * debian/rules: install symlinks "toix" and "toms" mentioned in help
+ printout (closes:Bug#153324,Bug#278391) (2nd try)
+
+ -- James R. Van Zandt <jrv@debian.org> Sat, 24 Sep 2005 18:49:51 -0400
+
+flip (1.19-3) unstable; urgency=low
+
+ * debian/rules: install symlinks "toix" and "toms" mentioned in help
+ printout (closes:Bug#153324)
+
+ -- James R. Van Zandt <jrv@debian.org> Sat, 20 Jul 2002 17:28:20 -0400
+
+flip (1.19-2) unstable; urgency=low
+
+ * debian/control: spelling fixes (Closes:Bug#124619)
+
+ -- James R. Van Zandt <jrv@debian.org> Fri, 21 Dec 2001 19:57:55 -0500
+
+flip (1.19-1) unstable; urgency=low
+
+ * new upstream version: preserve file permissions, accept input from
+ stdin (thanks to "Dwayne C. Litzenberger" <dlitz@dlitz.net>)
+ (Closes:Bug#102391)
+ * new maintainer email
+
+ -- James R. Van Zandt <jrv@debian.org> Sun, 15 Jul 2001 11:26:21 -0400
+
+flip (1.18-9) unstable; urgency=low
+
+ * debian/copyright: remove reference to old copyright directory
+
+ -- James R. Van Zandt <jrv@vanzandt.mv.com> Thu, 17 May 2001 22:04:44 -0400
+
+flip (1.18-8) unstable; urgency=low
+
+ * debian/control: move build-depends line to source section. Update
+ policy to 3.5.2.
+ * debian/rules: honor DEB_BUILD_OPTIONS
+
+ -- James R. Van Zandt <jrv@vanzandt.mv.com> Fri, 27 Apr 2001 21:25:16 -0400
+
+flip (1.18-7) unstable; urgency=low
+
+ * install test with "install" instead of non-existant "dh_installtests"
+ (Closes:Bug#74379)
+
+ -- James R. Van Zandt <jrv@vanzandt.mv.com> Mon, 9 Oct 2000 22:50:00 -0400
+
+flip (1.18-6) unstable; urgency=low
+
+ * build-depends on debhelper and debmake
+ * package description: flip only handles lineendings, not character
+ codes (Closes:Bug#72907)
+
+ -- James R. Van Zandt <jrv@vanzandt.mv.com> Sun, 3 Sep 2000 11:54:01 -0400
+
+flip (1.18-5) unstable frozen; urgency=low
+
+ * Really add the /usr/doc/flip symlink.
+
+ -- James R. Van Zandt <jrv@vanzandt.mv.com> Sat, 23 Oct 1999 22:04:49 -0400
+
+flip (1.18-4) unstable frozen; urgency=low
+
+ * Add /usr/doc/flip symlink.
+
+ -- James R. Van Zandt <jrv@vanzandt.mv.com> Tue, 14 Sep 1999 21:42:25 -0400
+
+flip (1.18-3) unstable frozen; urgency=low
+
+ * link against glibc 2.1.2.
+ * Update to FHS.
+
+ -- James R. Van Zandt <jrv@vanzandt.mv.com> Thu, 2 Sep 1999 19:27:42 -0400
+
+flip (1.18-2) unstable frozen; urgency=high
+
+ * Build with "make bsd", so rename() is used and executing on a VFAT
+ fs does not delete the file (Bug#30691).
+
+ -- James R. Van Zandt <jrv@vanzandt.mv.com> Sat, 26 Dec 1998 12:48:44 -0500
+
+flip (1.18-1) unstable; urgency=low
+
+ * Initial Release.
+
+ * Manual page source reconstructed from supplied formatted page.
+
+ -- Jim Van Zandt <jrv@vanzandt.mv.com> Thur, 17 Apr 1998 8:00:00 -0500
+
+
--- flip-1.20.orig/debian/compat
+++ flip-1.20/debian/compat
@@ -0,0 +1 @@
+4
--- flip-1.20.orig/debian/dirs
+++ flip-1.20/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- flip-1.20.orig/debian/postinst
+++ flip-1.20/debian/postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a -h /usr/doc/flip -a -d /usr/share/doc/flip ]; then
+ rm -f /usr/doc/flip
+ fi
+fi
+
+#DEBHELPER#
--- flip-1.20.orig/debian/copyright
+++ flip-1.20/debian/copyright
@@ -0,0 +1,17 @@
+This package was debianized by James R. Van Zandt <jrv@debian.org> on
+Tue, 28 Mar 2006 21:29:46 -0500.
+
+It was downloaded from comp.sources.misc Volume 7, Issue 68 (9 Jul 89
+00:36:02 GMT)
+
+Copyright:
+
+ Both this documentation and flip are Copyright 1989 Rahul
+ Dhesi, all rights reserved. Permission is granted to copy,
+ use, and distribute for any commercial or noncommercial
+ purpose in accordance with the requirements of version 1.0
+ of the GNU General Public license.
+
+On Debian GNU/Linux systems, the complete text of the GNU Public
+License can be found in `/usr/share/common-licenses/GPL'.
+
--- flip-1.20.orig/debian/control
+++ flip-1.20/debian/control
@@ -0,0 +1,21 @@
+Source: flip
+Section: text
+Priority: extra
+Maintainer: James R. Van Zandt <jrv@debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.8.0
+
+Package: flip
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: convert text file line endings between Unix and DOS formats
+ This program converts line endings of text files between MS-DOS and
+ **IX formats. It detects binary files in a nearly foolproof way and
+ leaves them alone unless you override this. It will also leave files
+ alone that are already in the right format and preserves file
+ timestamps. User interrupts are handled gracefully and no garbage or
+ corrupted files left behind. 'flip' does not convert files to a
+ different character set, and it can not handle Apple Macintosh
+ line endings (CR only). For that (and more), you can use the 'recode'
+ program (package 'recode').
+
--- flip-1.20.orig/debian/rules
+++ flip-1.20/debian/rules
@@ -0,0 +1,111 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+CFLAGS = -Wall -g
+INSTALL = install
+INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
+INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
+INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
+INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ MAKEFLAGS += -j$(NUMJOBS)
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # compile the package.
+ make "CFLAGS=$(CFLAGS) -DBSD -DIX -DSTDINCLUDE" flip
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # clean up after the build process.
+ [ ! -f Makefile ] || $(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # install the package into debian/flip.
+ $(INSTALL_PROGRAM) flip `pwd`/debian/flip/usr/bin
+ ln -s flip `pwd`/debian/flip/usr/bin/toix
+ ln -s flip `pwd`/debian/flip/usr/bin/toms
+
+
+# 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 ChangeLog
+ dh_installdocs
+ dh_installexamples test-flip
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman flip.1
+ ln -s flip.1 debian/flip/usr/share/man/man1/toix.1
+ ln -s flip.1 debian/flip/usr/share/man/man1/toms.1
+ 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 configure