ports/131463: New port: security/py-PF: A pure-Python module for managing OpenBSD Packet Filter
Sofian Brabez
sbrabez at gmail.com
Sat Feb 7 14:10:02 UTC 2009
>Number: 131463
>Category: ports
>Synopsis: New port: security/py-PF: A pure-Python module for managing OpenBSD Packet Filter
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 07 14:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Sofian Brabez
>Release: FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
FreeBSD atemi 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
>Description:
Here the .shar file as attachement to add py-PF to the port tree (security category)
py-PF is a pure-Python module for managing OpenBSD's Packet Filter. It aims
to combine the flexibility of PF's C API and the power of Python, making it
easier to manage PF data and to integrate firewalling capabilities in more
complex applications.
Features:
===========
* Stateful filtering of TCP/IP traffic
* Network Address translation
* packets normalization and reassembly
* bandwidth control and packet prioritization
* traffic filtering based on OS fingerprint
Requirements:
===============
* Python 2.2 and later
Author:
=========
Daniele Mazzocchio
WWW: http://www.kernel-panic.it/software/py-pf/
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# py-PF
# py-PF/pkg-descr
# py-PF/Makefile
# py-PF/pkg-plist
# py-PF/files
# py-PF/files/pkg-message.in
# py-PF/distinfo
#
echo c - py-PF
mkdir -p py-PF > /dev/null 2>&1
echo x - py-PF/pkg-descr
sed 's/^X//' >py-PF/pkg-descr << 'END-of-py-PF/pkg-descr'
Xpy-PF is a pure-Python module for managing OpenBSD's Packet Filter. It aims
Xto combine the flexibility of PF's C API and the power of Python, making it
Xeasier to manage PF data and to integrate firewalling capabilities in more
Xcomplex applications.
X
XWWW: http://www.kernel-panic.it/software/py-pf/
END-of-py-PF/pkg-descr
echo x - py-PF/Makefile
sed 's/^X//' >py-PF/Makefile << 'END-of-py-PF/Makefile'
X# New ports collection makefile for: py-PF
X# Date created: 2009-02-07
X# Whom: Sofian Brabez <sbrabez at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= PF
XPORTVERSION= 0.0.2
XCATEGORIES= security python
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= ${PYTHON_PKGNAMEPREFIX:C/[0-9]+//}${PORTNAME:L}
XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
XDISTNAME= ${PYTHON_PKGNAMEPREFIX:C/[0-9]+//}${PORTNAME}-${PORTVERSION}
X
XMAINTAINER= sbrabez at gmail.com
XCOMMENT= A pure-Python module for managing OpenBSD Packet Filter
X
XUSE_PYTHON= 2.2+
XUSE_PYDISTUTILS= yes
XPYDISTUTILS_PKGNAME= ${PYTHON_PKGNAMEPREFIX:C/[0-9]+//}_${PORTNAME}
X
XPKGMESSAGE= ${WRKDIR}/pkg-message
XSUB_FILES= pkg-message
X
Xpost-install:
X.if !defined(BATCH)
X @${CAT} ${PKGMESSAGE}
X.endif
X
X.include <bsd.port.mk>
END-of-py-PF/Makefile
echo x - py-PF/pkg-plist
sed 's/^X//' >py-PF/pkg-plist << 'END-of-py-PF/pkg-plist'
X%%PYTHON_SITELIBDIR%%/PF/PFConstants.py
X%%PYTHON_SITELIBDIR%%/PF/PFConstants.pyc
X%%PYTHON_SITELIBDIR%%/PF/PFConstants.pyo
X%%PYTHON_SITELIBDIR%%/PF/PFRule.py
X%%PYTHON_SITELIBDIR%%/PF/PFRule.pyc
X%%PYTHON_SITELIBDIR%%/PF/PFRule.pyo
X%%PYTHON_SITELIBDIR%%/PF/PFState.py
X%%PYTHON_SITELIBDIR%%/PF/PFState.pyc
X%%PYTHON_SITELIBDIR%%/PF/PFState.pyo
X%%PYTHON_SITELIBDIR%%/PF/PFStatus.py
X%%PYTHON_SITELIBDIR%%/PF/PFStatus.pyc
X%%PYTHON_SITELIBDIR%%/PF/PFStatus.pyo
X%%PYTHON_SITELIBDIR%%/PF/PFUtils.py
X%%PYTHON_SITELIBDIR%%/PF/PFUtils.pyc
X%%PYTHON_SITELIBDIR%%/PF/PFUtils.pyo
X%%PYTHON_SITELIBDIR%%/PF/PacketFilter.py
X%%PYTHON_SITELIBDIR%%/PF/PacketFilter.pyc
X%%PYTHON_SITELIBDIR%%/PF/PacketFilter.pyo
X%%PYTHON_SITELIBDIR%%/PF/_PFStruct.py
X%%PYTHON_SITELIBDIR%%/PF/_PFStruct.pyc
X%%PYTHON_SITELIBDIR%%/PF/_PFStruct.pyo
X%%PYTHON_SITELIBDIR%%/PF/__init__.py
X%%PYTHON_SITELIBDIR%%/PF/__init__.pyc
X%%PYTHON_SITELIBDIR%%/PF/__init__.pyo
X at dirrm %%PYTHON_SITELIBDIR%%/PF
END-of-py-PF/pkg-plist
echo c - py-PF/files
mkdir -p py-PF/files > /dev/null 2>&1
echo x - py-PF/files/pkg-message.in
sed 's/^X//' >py-PF/files/pkg-message.in << 'END-of-py-PF/files/pkg-message.in'
X-------------------------------------------------------------
Xpy-pF is installed.
X
XFor a quick start:
X - import PF for using this module
X - read http://www.kernel-panic.it/programming/py-pf/
X - you need to be root for using this module
X-------------------------------------------------------------
END-of-py-PF/files/pkg-message.in
echo x - py-PF/distinfo
sed 's/^X//' >py-PF/distinfo << 'END-of-py-PF/distinfo'
XMD5 (py-PF-0.0.2.tar.gz) = e595b0783180efb1c72ab87d9e5d0d16
XSHA256 (py-PF-0.0.2.tar.gz) = 978a2da9000985eb154c1e62efd7f864564514780cb0a55fe2ca0d798a7c5af1
XSIZE (py-PF-0.0.2.tar.gz) = 24066
END-of-py-PF/distinfo
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list