From owner-svn-ports-head@freebsd.org Fri Apr 5 22:33:17 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72BBC1562076; Fri, 5 Apr 2019 22:33:17 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 166E6803FA; Fri, 5 Apr 2019 22:33:17 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CCC231B992; Fri, 5 Apr 2019 22:33:16 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x35MXGkI088081; Fri, 5 Apr 2019 22:33:16 GMT (envelope-from bofh@FreeBSD.org) Received: (from bofh@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x35MXGTG088080; Fri, 5 Apr 2019 22:33:16 GMT (envelope-from bofh@FreeBSD.org) Message-Id: <201904052233.x35MXGTG088080@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bofh set sender to bofh@FreeBSD.org using -f From: Muhammad Moinur Rahman Date: Fri, 5 Apr 2019 22:33:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r497997 - head/net/py-libdnet X-SVN-Group: ports-head X-SVN-Commit-Author: bofh X-SVN-Commit-Paths: head/net/py-libdnet X-SVN-Commit-Revision: 497997 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 166E6803FA X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2019 22:33:17 -0000 Author: bofh Date: Fri Apr 5 22:33:16 2019 New Revision: 497997 URL: https://svnweb.freebsd.org/changeset/ports/497997 Log: 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 Modified: head/net/py-libdnet/Makefile head/net/py-libdnet/pkg-descr Modified: head/net/py-libdnet/Makefile ============================================================================== --- head/net/py-libdnet/Makefile Fri Apr 5 22:22:15 2019 (r497996) +++ head/net/py-libdnet/Makefile Fri Apr 5 22:33:16 2019 (r497997) @@ -8,22 +8,30 @@ 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) 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" Modified: head/net/py-libdnet/pkg-descr ============================================================================== --- head/net/py-libdnet/pkg-descr Fri Apr 5 22:22:15 2019 (r497996) +++ head/net/py-libdnet/pkg-descr Fri Apr 5 22:33:16 2019 (r497997) @@ -5,4 +5,4 @@ manipulation, network firewalling, network interface l 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/