debian: Abandon ancient `fw' package; replace CDBS with Debhelper.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 29 Jun 2013 14:00:04 +0000 (15:00 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 29 Jun 2013 14:07:40 +0000 (15:07 +0100)
Makefile.am
debian/compat [new file with mode: 0644]
debian/control
debian/fw.README.Debian [deleted file]
debian/fw.sh [deleted file]
debian/rules

index dfc03ad..055a217 100644 (file)
@@ -119,6 +119,7 @@ dist-hook:
 ## Main Debian files.
 EXTRA_DIST             += debian/rules
 EXTRA_DIST             += debian/changelog
 ## Main Debian files.
 EXTRA_DIST             += debian/rules
 EXTRA_DIST             += debian/changelog
+EXTRA_DIST             += debian/compat
 EXTRA_DIST             += debian/control
 EXTRA_DIST             += debian/copyright
 
 EXTRA_DIST             += debian/control
 EXTRA_DIST             += debian/copyright
 
@@ -126,8 +127,4 @@ EXTRA_DIST          += debian/copyright
 EXTRA_DIST             += debian/fwd.init
 EXTRA_DIST             += debian/fwd.postinst
 
 EXTRA_DIST             += debian/fwd.init
 EXTRA_DIST             += debian/fwd.postinst
 
-## Compatbility cruft.
-EXTRA_DIST             += debian/fw.sh
-EXTRA_DIST             += debian/fw.README.Debian
-
 ###----- That's all, folks --------------------------------------------------
 ###----- That's all, folks --------------------------------------------------
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
index d53fdce..4fa27b3 100644 (file)
@@ -1,7 +1,7 @@
 Source: fwd
 Section: net
 Priority: extra
 Source: fwd
 Section: net
 Priority: extra
-Build-Depends: mlib-dev (>= 2.2.1), debhelper (>= 8)
+Build-Depends: mlib-dev (>= 2.2.1), debhelper (>= 9)
 Maintainer: Mark Wooding <mdw@distorted.org.uk>
 Standards-Version: 3.1.1
 
 Maintainer: Mark Wooding <mdw@distorted.org.uk>
 Standards-Version: 3.1.1
 
@@ -15,20 +15,3 @@ Description: Excessive port forwarder
  username (as reported by identd on the connecting host).  It subsumes the
  basic functionality of inetd, cat, netcat and others.  It runs as a
  single nonblocking process.
  username (as reported by identd on the connecting host).  It subsumes the
  basic functionality of inetd, cat, netcat and others.  It runs as a
  single nonblocking process.
-
-Package: fw
-Architecture: all
-Depends: fwd
-Conflicts: funnelweb
-Description: Excessive port forwarder
- fwd can forward connections to and from: TCP sockets, Unix-domain sockets,
- locally-executed programs, and file descriptors.  It can do host-based
- access control.  It will log incoming TCP connections by hostname and
- username (as reported by identd on the connecting host).  It subsumes the
- basic functionality of inetd, cat, netcat and others.  It runs as a single
- nonblocking process.
- .
- Once upon a time, fwd was called fw; but this conflicts with funnelweb's use
- of the same name.  This package depends on the new, renamed real package and
- provides compatibility scripts and symlinks.  Once you've fixed references
- to the old name, you can delete this package.
diff --git a/debian/fw.README.Debian b/debian/fw.README.Debian
deleted file mode 100644 (file)
index 5710699..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-fw renamed to fwd
-
-The port forwarder `fw' has been renamed, since funnelweb already uses
-that name.  It's now called `fwd', which seems clear, and suggests that
-it might run as a daemon (which is true).
-
-This package provides a compatibility script with the old name.  It nags
-you each time it runs, unless you set FW_RENAME_NAG=muffle in your
-environment.  I recommend that you fix whatever it is that's calling fwd
-instead of setting this variable.
-
-                                       Mark Wooding, <mdw@distorted.org.uk>
-                                       2008-04-02
-\f
-Local variables:
-mode: text
-End:
diff --git a/debian/fw.sh b/debian/fw.sh
deleted file mode 100644 (file)
index 6bc3554..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#! /bin/sh
-
-set -e
-case "$FW_RENAME_NAG" in
-  muffle) ;;
-  "") echo >&2 "$0: the \`fw' program been renamed to /usr/bin/fwd" ;;
-esac
-exec /usr/bin/fwd "$@"
index 1996d95..f4a2b35 100755 (executable)
@@ -1,30 +1,2 @@
 #! /usr/bin/make -f
 #! /usr/bin/make -f
-
-CDBS = /usr/share/cdbs/1
-
-include $(CDBS)/class/autotools.mk
-include $(CDBS)/rules/debhelper.mk
-
-###--------------------------------------------------------------------------
-### General definitions.
-
-DEB_BUILDDIR = $(CURDIR)/build
-DEB_DESTDIR = $(CURDIR)/debian/fwd
-
-###--------------------------------------------------------------------------
-### Documentation.
-
-DEB_INSTALL_DOCS_fwd    = GRAMMAR
-
-###--------------------------------------------------------------------------
-### Compatibility package.
-
-DEB_INSTALL_DIRS_fw = \
-       usr/bin \
-       usr/share/man/man1
-
-install/fw::
-       install -m755 debian/fw.sh debian/fw/usr/bin/fw
-       ln -s fwd.1.gz debian/fw/usr/share/man/man1/fw.1.gz
-
-###----- That's all, folks --------------------------------------------------
+%:; dh "$*" -Bdebian/build