All pastes #249934 Raw Edit

charkler

public text v1 · immutable
#249934 ·published 2006-11-16 11:41 UTC
rendered paste body
%define name pynetfilter_conntrack
%define version 0.2
%define release 1

Summary: pynetfilter_conntrack is a Python binding of libnetfilter_conntrack
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: GNU GPL
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Vendor: Damien Boucard, Victor Stinner <victor.stinner AT inl.fr>
Url: http://software.inl.fr/trac/trac.cgi/wiki/pynetfilter_conntrack

%description
libnetfilter_conntrack is a library to manage Linux firewall NetFilter.
pynetfilter_conntrack is a Python binding of this library.  The binding is the
file pynetfilter_conntrack.py and you have also a clone of conntrack program:
conntrack.py.

Website: http://software.inl.fr/trac/trac.cgi/wiki/pynetfilter_conntrack

conntrack.py
============

conntrack.py is a clone of conntrack C program. Features:

 * List connections ;
 * Export connections to XML document ;
 * Delete connection.

For all commands, you can filter connections with:

 * source/destination address from original/reply destination ;
 * layer 3 and 4 protocols ;
 * source/destination port from original/reply destination (protocols tcp,
   udp and sctp).

Dependencies
============

Python module depends on:
 * IPy: http://software.inl.fr/trac/trac.cgi/wiki/IPy
   Debian package: python-ipy
 * ctypes: http://starship.python.net/crew/theller/ctypes/
   Debian package: python-ctypes
 * ElementTree: http://effbot.org/zone/element-index.htm
   Debian package: python-elementtree (integrated to Python 2.5+)

But you also need C library with Linux kernel 2.6.14+:
http://www.netfilter.org/projects/libnetfilter_conntrack/index.html

Changelog
=========

Release 0.2
-----------

 * Python 2.3 compliant
 * Use ElementTree (or cElementTree) to generate XML output
 * nfct_address: add getIP(), returns a IPy.IP() object
 * Fix minor bugs in ConntrackTable.filter()
 * setup.py: add requires (used by setuptools)



%prep
%setup

%build
python setup.py build

%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)