--- netsed-0.01c.orig/debian/rules
+++ netsed-0.01c/debian/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+# debian/rules for netsed by Lenart Janos.
+# Written from scratch.
+
+pkg = netsed
+checkdir = test -f $(pkg).c -a -f debian/rules
+checkroot = test $$(id -u) = 0
+
+build:
+	$(checkdir)
+	$(MAKE) $(pkg)
+	touch build
+
+clean:
+	$(checkdir)
+	rm -f build
+	-$(MAKE) clean
+	rm -rf debian/tmp debian/files* debian/substvars
+
+binary-indep: build
+
+binary-arch: build
+	$(checkdir)
+	$(checkroot)
+	rm -Rf debian/tmp
+	install -d debian/tmp/DEBIAN
+	install -d debian/tmp/usr/share/doc/$(pkg)
+	install -d debian/tmp/usr/share/man/man1
+	install -d debian/tmp/usr/bin
+	install -m 644 debian/copyright debian/tmp/usr/share/doc/$(pkg)
+	install $(pkg) debian/tmp/usr/bin
+	strip --remove-section=.comment --remove-section=.note debian/tmp/usr/bin/$(pkg)
+	gzip -9c README >debian/tmp/usr/share/doc/$(pkg)/README.gz
+	gzip -9c debian/changelog >debian/tmp/usr/share/doc/$(pkg)/changelog.Debian.gz
+	gzip -9c debian/netsed.1 >debian/tmp/usr/share/man/man1/$(pkg).1.gz
+	dpkg-shlibdeps $(pkg)
+	dpkg-gencontrol -isp
+	chown -R root.root debian/tmp
+	dpkg --build debian/tmp ..
+
+binary: binary-indep binary-arch
+
+.PHONY: binary binary-arch binary-indep clean
--- netsed-0.01c.orig/debian/copyright
+++ netsed-0.01c/debian/copyright
@@ -0,0 +1,26 @@
+This package was debianized by Lenart Janos <ocsi@debian.org> from
+scratch on Sat, 24 Nov 2001 18:25:49 +0100. It was originally debianized
+by Gergely Nagy <algernon@debian.org> on Sat, 23 Jun 2001 10:47:53 +0200.
+
+It was downloaded from http://lcamtuf.na.export.pl/netsed.tgz
+
+Upstream Author: Michal Zalewski <lcamtuf@ids.pl>
+
+Copyright:
+
+    This package is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser 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
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this package; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
+
+On Debian GNU/Linux systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
--- netsed-0.01c.orig/debian/netsed.1
+++ netsed-0.01c/debian/netsed.1
@@ -0,0 +1,76 @@
+.TH NETSED 1 "June 23, 2001" NETSED
+.SH NAME
+netsed \- network packet stream editor
+.SH SYNOPSIS
+.B netsed
+.I proto lport rhost rport rule1
+.RI [ rule2 ] " " ...
+.SH DESCRIPTION
+NetSED is small and handful utility designed to alter the contents of
+packets forwarded thru your network in real time. It is really useful
+for network hackers in following applications:
+.TP
+.B black\-box protocol auditing
+whenever there are two or more propertiary boxes communicating over
+undocumented protocol (by enforcing changes in ongoing transmissions,
+you will be able to test if tested application is secure)
+.TP
+.B fuzz\-alike experiments, integrity tests
+whenever you want to test stability of the application and see how it
+ensures data integrity,
+.TP
+.B other common applications
+fooling other people, content filtering, etc etc \- choose whatever
+you want to.
+.LP
+It perfectly fits netgrep, netcat and tcpdump tools suite :P
+.SH OPTIONS
+.TP
+.B proto
+protocol specification (tcp or udp)
+.TP
+.B lport
+local port to listen on (see README for transparent traffic intercepting
+on some systems)
+.TP
+.B rhost
+where connection should be forwarded (0 = use destination address of
+incoming connection, see README)
+.TP
+.B rport
+destination port (0 = dst port of incoming connection)
+.TP
+.B rule\fIN\fR
+replacement rules (see below)
+.LP
+General replacement rules syntax: s/\fBpat1\fR/\fBpat2\fR\fI[/expire]\fR
+
+This will replace all occurences of \fBpat1\fR with \fBpat2\fR in matching
+packets. Additional parameter (count) can be used to expire rule after 'count'
+succesful substitutions. Eight\-bit characters, including NULL and '/', can
+be passed using HTTP\-alike hex escape sequences (eg. %0a%0d). Single '%'
+can be reached by using '%%'. Examples:
+.TP
+.B 's/andrew/mike/1'
+replace 'andrew' with 'mike' (once)
+.TP
+.B 's/andrew/mike'
+replace all occurences of 'andrew' with 'mike'
+.TP
+.B 's/andrew/mike%00'
+replace 'andrew' with 'mike\\x00\\x00' (to keep orig. size)
+.TP
+.B 's/%%/%2f/20'
+replace '%' with '/' in first 20 packets
+.LP
+Rules are not working on cross\-packet boundaries and are evaluated from
+first to last not expired rule.
+.SH SEE ALSO
+.BR ngrep (8),
+.BR nc (1),
+
+.BR /usr/share/doc/netsed/README.gz
+.SH AUTHOR
+\fBnetsed\fR was written by Michal Zalewski <lcamtuf@ids.pl>.
+
+This manual page was written by Gergely Nagy <algernon@debian.org>.
--- netsed-0.01c.orig/debian/control
+++ netsed-0.01c/debian/control
@@ -0,0 +1,26 @@
+Source: netsed
+Section: net
+Priority: optional
+Maintainer: Lenart Janos <ocsi@debian.org>
+Standards-Version: 3.5.7.1
+
+Package: netsed
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: The network packet altering stream editor
+ NetSED is small and handful utility designed to alter the contents of
+ packets forwarded thru your network in real time. It is really useful
+ for network hackers in following applications:
+ .
+   * black-box protocol auditing - whenever there are two or more
+     proprietary boxes communicating over undocumented protocol (by
+     enforcing  changes in ongoing transmissions, you will be able to
+     test if tested application is secure),
+ .
+   * fuzz-alike experiments, integrity tests - whenever you want to test
+     stability of the application and see how it ensures data integrity,
+ .
+   * other common applications - fooling other people, content filtering,
+     etc etc - choose whatever you want to.
+ .
+ It perfectly fits ngrep, netcat and tcpdump tools suite.
--- netsed-0.01c.orig/debian/changelog
+++ netsed-0.01c/debian/changelog
@@ -0,0 +1,54 @@
+netsed (0.01c-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/rules: fix bashisms (use of {,}) (Closes: #375570) 
+
+ -- Lucas Nussbaum <lucas@lucas-nussbaum.net>  Mon, 14 Jan 2008 15:16:15 +0100
+
+netsed (0.01c-2) unstable; urgency=low
+
+  * Manpage typos fixed.                            (closes: Bug#170847)
+
+ -- Lenart Janos <ocsi@debian.org>  Wed, 27 Nov 2002 14:14:45 +0100
+
+netsed (0.01c-1) unstable; urgency=medium
+
+  * Re-release under GPL (administrative).          (closes: Bug#166669)
+  * Upgraded Standards-Version.
+  * Removed debian/{postinst,prerm}.
+
+ -- Lenart Janos <ocsi@debian.org>  Mon, 25 Nov 2002 18:34:55 +0100
+
+netsed (0.01b-5) unstable; urgency=low
+
+  * Fixed buggy debian/{pre,post}{inst,rem}.        (closes: Bug#126957)
+
+ -- Lenart Janos <ocsi@debian.org>  Tue,  1 Jan 2002 19:51:31 +0100
+
+netsed (0.01b-4) unstable; urgency=low
+
+  * Typo fixed in the description.                  (closes: Bug#125183)
+
+ -- Lenart Janos <ocsi@debian.org>  Sat, 22 Dec 2001 16:13:00 +0100
+
+netsed (0.01b-3) unstable; urgency=low
+
+  * Adopted package.                                (closes: Bug#120654)
+  * Re-debianized from scratch.
+
+ -- Lenart Janos <ocsi@debian.org>  Sat, 24 Nov 2001 18:17:44 +0100
+
+netsed (0.01b-2) unstable; urgency=low
+
+  * Oops. Corrected debian/control, so long description refers to ngrep,
+    not netgrep (Closes: #112120)
+  * Bumped up Standards-Version while there
+
+ -- Gergely Nagy <algernon@debian.org>  Sat, 15 Sep 2001 15:45:44 +0200
+
+netsed (0.01b-1) unstable; urgency=low
+
+  * Initial release, for Master to take over the world
+  (Closes: #101959)
+
+ -- Gergely Nagy <algernon@debian.org>  Sat, 23 Jun 2001 10:47:53 +0200
