mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
net/py-libdnet: Fix build with both python 2 and 3
I have reviewed the code of net/libdnet. And created a fork as the evelopment seems stalled by the original author. - Removed all the codes not related to FreeBSD - Fix configure script to find related header files and now it builds relevant source files instead of *-none.c files - Modernized all build tools configuration file and removed unnecessary files - Works at least with PF. Still not working with ipfw2/ipfilter. - Python package now supports both Python 2 and 3 The repo location is: https://github.com/5u623l20/libdnet/ PR: 236643 Submitted by: bofh Approved by: maintainer-timeout
This commit is contained in:
parent
77404df765
commit
d6072e7333
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497997
@ -8,17 +8,18 @@ COMMENT= Python module for libdnet
|
||||
|
||||
LIB_DEPENDS= libdnet.so:net/libdnet
|
||||
|
||||
USES= autoreconf libtool python
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../libdnet
|
||||
INSTALL_WRKSRC= ${WRKSRC}/python
|
||||
DESCR= ${.CURDIR}/pkg-descr
|
||||
PLIST= ${NONEXISTENT}
|
||||
PLIST_FILES= %%PYTHON_SITELIBDIR%%/dnet.so \
|
||||
%%PYTHON_SITELIBDIR%%/dnet-${PORTVERSION}-py${PYTHON_VER}.egg-info
|
||||
PLIST_FILES= ${PYTHON_SITELIBDIR}/dnet.so \
|
||||
${PYTHON_SITELIBDIR}/dnet-${PORTVERSION}-py${PYTHON_VER}.egg-info
|
||||
|
||||
LIBDNET_SLAVE= yes
|
||||
|
||||
USES= python:2.7
|
||||
USE_PYTHON= flavors
|
||||
USE_PYTHON= cython flavors
|
||||
CONFIGURE_ARGS= --with-python=${PYTHON_CMD}
|
||||
|
||||
.if defined(MAINTAINER_MODE)
|
||||
@ -26,4 +27,11 @@ regression-test: install
|
||||
${PYTHON_CMD} ${INSTALL_WRKSRC}/test.py
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's|%%CYTHON%%|cython-${PYTHON_VER}|g' \
|
||||
${WRKSRC}/python/Makefile.am
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/dnet.so
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
@ -5,4 +5,4 @@ manipulation, network firewalling, network interface lookup and
|
||||
manipulation, and raw IP packet and Ethernet frame transmission. It is
|
||||
intended to complement the functionality provided by pcap(3).
|
||||
|
||||
WWW: https://code.google.com/p/libdnet/
|
||||
WWW: https://github.com/5u623l20/libdnet/
|
||||
|
Loading…
Reference in New Issue
Block a user