--- n2n-1.3.1~svn3789.orig/debian/README.Debian
+++ n2n-1.3.1~svn3789/debian/README.Debian
@@ -0,0 +1,34 @@
+n2n for Debian
+--------------
+
+This package depends on the kernel having the TUN/TAP driver configured in using
+CONFIG_TUN=yes.
+
+
+Quickstart
+----------
+
+    * Decide where to place your supernode. Suppose you put it on host a.b.c.d 
+at port xyw.
+    * Decide what encryption password you want to use to secure your data. 
+Suppose you use the password encryptme
+    * Decide the network name you want to use. Suppose you call it mynetwork. 
+Note that you can use your supernode/edge nodes to handle multiple networks, 
+not just one.
+    * Decide what IP address you plan to use on your edge nodes. Suppose you 
+use IP address 10.1.2.0/24
+    * Start your applications:
+
+          o #supernode > supernode -l xyw
+          o #edge node1> edge -a 10.1.2.1 -c mynetwork -k encryptme -l a.b.c.d:xyw
+          o #edge node2> edge -a 10.1.2.2 -c mynetwork -k encryptme -l a.b.c.d:xyw
+
+      Now test your n2n network:
+
+          o #edge node1> ping 10.1.2.2
+          o #edge node2> ping 10.1.2.1
+
+For more info check http://www.ntop.org/n2n
+
+
+ -- cristian paul peñaranda rojas <kristian.paul@gmail.com>  Sat, 29 Nov 2008 00:31:58 -0500
--- n2n-1.3.1~svn3789.orig/debian/control
+++ n2n-1.3.1~svn3789/debian/control
@@ -0,0 +1,14 @@
+Source: n2n
+Section: net
+Priority: extra
+Maintainer: cristian paul peñaranda rojas <kristian.paul@gmail.com>
+Build-Depends: debhelper (>= 7), quilt
+Standards-Version: 3.8.2
+
+Package: n2n
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Peer-to-Peer VPN network daemon
+ n2n is an open source VPN application which utilizes 
+ a Peer-to-peer architecture for network membership 
+ and routing.
--- n2n-1.3.1~svn3789.orig/debian/compat
+++ n2n-1.3.1~svn3789/debian/compat
@@ -0,0 +1 @@
+7
--- n2n-1.3.1~svn3789.orig/debian/dirs
+++ n2n-1.3.1~svn3789/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
--- n2n-1.3.1~svn3789.orig/debian/docs
+++ n2n-1.3.1~svn3789/debian/docs
@@ -0,0 +1 @@
+README
--- n2n-1.3.1~svn3789.orig/debian/changelog
+++ n2n-1.3.1~svn3789/debian/changelog
@@ -0,0 +1,16 @@
+n2n (1.3.1~svn3789-1) unstable; urgency=low
+
+  * Update package to version 1.3 from upstream cvs
+  * Removed "libc6-dev (>= 2.0)" build dependency (closes: Bug#533881)
+  * DH compatibility level is 7
+  * Run dh_prep instead of dh_clean -k
+  * Standards Version is 3.8.2
+
+ -- cristian paul peñaranda rojas <kristian.paul@gmail.com>  Sun, 22 Jun 2009 21:19:58 -0500
+
+n2n (1.2.2~svn3653) unstable; urgency=low
+
+  * Initial release (closes: Bug#507750)
+
+ -- cristian paul peñaranda rojas <kristian.paul@gmail.com>  Sat, 29 Nov 2008 00:31:58 -0500
+
--- n2n-1.3.1~svn3789.orig/debian/copyright
+++ n2n-1.3.1~svn3789/debian/copyright
@@ -0,0 +1,110 @@
+This package was debianized by cristian paul peñaranda rojas <kristian.paul@gmail.com> on
+and is licensed under the GNU General Public License (GPL) version 3.
+A copy of the GNU GPL version 3 is in `/usr/share/common-licenses/GPL-3'.
+
+Sat, 29 Nov 2008 00:31:58 -0500.
+
+The current Debian maintainer is cristian paul peñaranda rojas <kristian.paul@gmail.com>
+
+It was downloaded from https://svn.ntop.org/svn/ntop/trunk/n2n
+
+Upstream Author: Luca Deri deri@ntop.org
+
+Copyright:
+
+    Copyright (C) 2008 Luca Deri
+    Copyright (C) 2008 Richard Andrews
+
+
+License:
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 3 of the License, or
+  (at your option) any later version.
+
+  This program 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 General Public License for more details.
+
+  You should have received a copy of the GNU General Public License with
+  the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
+  if not, write to the Free Software Foundation, Inc., 51 Franklin St, 
+  Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+  On Debian systems, the complete text of the GNU General Public
+  License, version 3, can be found in /usr/share/common-licenses/GPL-3.
+
+The Files:
+
+        twofish.c
+	twofish.h
+
+    Copyright (C) 1997-2000 The Cryptix Foundation Limited.
+    Copyright (C) 2000 Farm9.
+    Copyright (C) 2001 Frank Knobbe.
+    All rights reserved.
+
+For Cryptix code:
+ Use, modification, copying and distribution of this software is subject
+ the terms and conditions of the Cryptix General Licence.
+
+	              Cryptix General License
+
+Copyright (c) 1995 -2005 The Cryptix Foundation Limited.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+  1. Redistributions of source code must retain the copyright notice,
+     this list of conditions and the following disclaimer.
+  2. 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.
+
+THIS SOFTWARE IS PROVIDED BY THE CRYPTIX FOUNDATION LIMITED 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 CRYPTIX FOUNDATION LIMITED 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.
+
+The Files:
+
+	minilzo.c
+	minilzo.h
+	lzodefs.h
+
+Copyright (C) 1996 - 2005 Markus Franz Xaver Johannes Oberhumer
+
+These files are part of the LZO real-time data compression library.
+
+   All Rights Reserved.
+
+   The LZO library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2 of
+   the License, or (at your option) any later version.
+
+   The LZO library 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 General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with the LZO library; see the file COPYING.
+   If not, write to the Free Software Foundation, Inc.,
+   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
--- n2n-1.3.1~svn3789.orig/debian/rules
+++ n2n-1.3.1~svn3789/debian/rules
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+include /usr/share/quilt/quilt.make
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: patch build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#docbook-to-man debian/n2n.sgml > n2n.1
+
+	touch $@
+
+clean:  unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) clean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/n2n.
+	$(MAKE) DESTDIR=$(CURDIR)/debian/n2n install
+
+
+# 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 
+	dh_installdocs
+	dh_installexamples
+	dh_installman supernode.1 edge.8
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	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
--- n2n-1.3.1~svn3789.orig/debian/patches/01-edge.8.diff
+++ n2n-1.3.1~svn3789/debian/patches/01-edge.8.diff
@@ -0,0 +1,8 @@
+--- a/edge.8.old	2008-12-02 20:33:54.000000000 -0500
++++ b/edge.8	2008-12-02 20:34:13.000000000 -0500
+@@ -1,4 +1,4 @@
+-.TH edge 1  "Jan 3, 2009" "revision 3679" "SUPERUSER COMMANDS"
++.TH edge 8  "Jan 3, 2009" "revision 3679" "SUPERUSER COMMANDS"
+ .SH NAME
+ edge \- n2n edge node daemon
+ .SH SYNOPSIS
--- n2n-1.3.1~svn3789.orig/debian/patches/series
+++ n2n-1.3.1~svn3789/debian/patches/series
@@ -0,0 +1 @@
+01-edge.8.diff
