--- python-nids-0.6.1.orig/debian/copyright +++ python-nids-0.6.1/debian/copyright @@ -0,0 +1,43 @@ +This work was packaged for Debian by: + + Luciano Bello on Thu, 22 Apr 2010 20:07:40 -0300 + +It was downloaded from: + + http://jon.oberheide.org/pynids/ + +Upstream Author(s): + + Jon Oberheide + +Copyright: + + Copyright (C) 2003, 2004, 2005 Michael J. Pomraning + +License: + + This package 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. + + 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +The Debian packaging is: + + Copyright (C) 2010 Luciano Bello + +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. + --- python-nids-0.6.1.orig/debian/control +++ python-nids-0.6.1/debian/control @@ -0,0 +1,18 @@ +Source: python-nids +Section: python +Priority: extra +Maintainer: Luciano Bello +Build-Depends: dpatch, debhelper (>= 7), python-support, python-all-dev, libpcap0.8-dev, libnids-dev, libnet1-dev, libglib2.0-dev +Standards-Version: 3.8.4 +Homepage: http://jon.oberheide.org/pynids/ +XS-Python-Version: all + +Package: python-nids +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} +XB-Python-Version: ${python:Versions} +Description: Python binding for libnids (aka pynids) + This package is commonly known as pynids. It is a Python wrapper for the + libnids packet capture analysis library, a Network Intrusion Detection + System library offering sniffing, IP defragmentation, TCP stream + reassembly and TCP port scan detection. --- python-nids-0.6.1.orig/debian/README.Debian +++ python-nids-0.6.1/debian/README.Debian @@ -0,0 +1,10 @@ +pynids for Debian +----------------- + +This pynids distribution is an updated version of Michael Pomraning's 0.5 +series. This new serie brings updates to the bundled version of libnids +(from 1.19 to 1.23), checksum disabling support, and a variety of fixes. + +original pynids homepage: http://pilcrow.madison.wi.us/pynids/ + + -- Luciano Bello Thu, 22 Apr 2010 20:07:40 -0300 --- python-nids-0.6.1.orig/debian/docs +++ python-nids-0.6.1/debian/docs @@ -0,0 +1 @@ +README --- python-nids-0.6.1.orig/debian/changelog +++ python-nids-0.6.1/debian/changelog @@ -0,0 +1,22 @@ +python-nids (0.6.1-1build1) natty; urgency=low + + * Rebuild to add support for python 2.7. + + -- Matthias Klose Fri, 03 Dec 2010 00:11:29 +0000 + +python-nids (0.6.1-1) unstable; urgency=low + + * New upstream version: + - bump bundled libnids to 1.24 + - support for packet timestamps + - support for pcap stats (JF) + * Linking with the shared library insted of the static one (closes: + #580723). + + -- Luciano Bello Mon, 31 May 2010 12:56:54 -0300 + +python-nids (0.6-1) unstable; urgency=low + + * Initial release (Closes: #507718) + + -- Luciano Bello Thu, 22 Apr 2010 20:07:40 -0300 --- python-nids-0.6.1.orig/debian/README.source +++ python-nids-0.6.1/debian/README.source @@ -0,0 +1,14 @@ +pynids for Debian +----------------- + +This package uses dpatch to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. Please see: + + /usr/share/doc/dpatch/README.source + +for more information on how to apply the patches, modify patches, or +remove a patch. + + + --- python-nids-0.6.1.orig/debian/rules +++ python-nids-0.6.1/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +include /usr/share/dpatch/dpatch.make + +PYVERS=$(shell pyversions -r) + +PACKAGE = python-nids +PREFIX := debian/$(PACKAGE)/usr + +CFLAGS+= -lnids + +build: patch-stamp + for python in $(PYVERS); do \ + CFLAGS="$(CFLAGS)" $$python setup.py build; \ + done + +clean: unpatch + dh_testdir + + # Add here commands to clean up after the build process. + for python in $(PYVERS); do \ + $$python setup.py clean; \ + done + + rm -f build-stamp + rm -rf build + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_installdirs + + for python in $(PYVERS); do \ + $$python setup.py install --prefix=/usr --skip-build --root=$(CURDIR)/debian/$(PACKAGE); \ + done + +get-orig-source: + cd ..; wget http://jon.oberheide.org/pynids/downloads/pynids-0.6.1.tar.gz + tar zxf ../pynids-0.6.1.tar.gz + rm ../pynids-0.6.1.tar.gz + rm pynids-0.6.1/libnids*.tar.gz + mv pynids-0.6.1 pynids-0.6.1.orig + tar -czf ../python-nids_0.6.1.orig.tar.gz pynids-0.6.1.orig + rm -fr pynids-0.6.1.orig + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs README + dh_installexamples Example + dh_strip + dh_pysupport + 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 --- python-nids-0.6.1.orig/debian/compat +++ python-nids-0.6.1/debian/compat @@ -0,0 +1 @@ +7 --- python-nids-0.6.1.orig/debian/source/format +++ python-nids-0.6.1/debian/source/format @@ -0,0 +1 @@ +1.0 --- python-nids-0.6.1.orig/debian/patches/00list +++ python-nids-0.6.1/debian/patches/00list @@ -0,0 +1 @@ +01_libnids.dpatch --- python-nids-0.6.1.orig/debian/patches/01_libnids.dpatch +++ python-nids-0.6.1/debian/patches/01_libnids.dpatch @@ -0,0 +1,27 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_libnids.dpatch by Luciano Bello +## +## DP: Use the libnids included in Debian and compile it dynamically + +@DPATCH@ +diff -urNad trunk~/setup.py trunk/setup.py +--- trunk~/setup.py 2009-10-09 04:16:59.000000000 -0300 ++++ trunk/setup.py 2010-05-31 12:48:36.000000000 -0300 +@@ -25,7 +25,7 @@ + NIDSDIR = BUILDDIR + include_dirs = [ pathjoin(NIDSDIR, 'src') ] + library_dirs = [] +- extra_objects = [ pathjoin(NIDSDIR, 'src', 'libnids.a') ] ++ extra_objects = [] + + def buildNids(self): + # extremely crude package builder +@@ -42,7 +42,7 @@ + os.chdir('..') + + def run(self): +- self.buildNids() ++ # self.buildNids() + build.run(self) + + INCLUDE_DIRS = nidsMaker.include_dirs + INCLUDE_DIRS