Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2019 03:29:47 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r507128 - in branches/2019Q3/net/py-libnet: . files
Message-ID:  <201907220329.x6M3TlZ0096753@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Mon Jul 22 03:29:47 2019
New Revision: 507128
URL: https://svnweb.freebsd.org/changeset/ports/507128

Log:
  MFH: r507127 net/py-libnet: Update to 3.0rc1, Remove/fix BROKEN_*
  
  Switch port to use autoplist to preclude having to manually
  construct shared library names based on ARCH/uname manipulations.
  
  While I'm here:
  
   - Switch to latest upstream release: 3.0rc1, via CHEESESHOP
   - Remove patch that was fixed upstream [1]
   - Match COMMENT to setup.py:description
   - Strip shared library
  
  [1] https://github.com/allfro/pylibnet/commit/67cd7b84179def8b7d88ce1456dec3984aa9ea59
  
  Reviewed by:		loader, sbz
  Approved by:		sbz (maintainer)
  Tested by:		loader (armv6, armv7, aarch64, mips64)
  Differential Revision:	D20754
  
  Approved by:	ports-secteam (blanket(s): bugfix release, bugfixes)

Deleted:
  branches/2019Q3/net/py-libnet/files/
Modified:
  branches/2019Q3/net/py-libnet/Makefile
  branches/2019Q3/net/py-libnet/distinfo
  branches/2019Q3/net/py-libnet/pkg-descr
  branches/2019Q3/net/py-libnet/pkg-plist
Directory Properties:
  branches/2019Q3/   (props changed)

Modified: branches/2019Q3/net/py-libnet/Makefile
==============================================================================
--- branches/2019Q3/net/py-libnet/Makefile	Mon Jul 22 03:26:34 2019	(r507127)
+++ branches/2019Q3/net/py-libnet/Makefile	Mon Jul 22 03:29:47 2019	(r507128)
@@ -2,49 +2,33 @@
 # $FreeBSD$
 
 PORTNAME=	libnet
-PORTVERSION=	1.1
-PORTREVISION=	3
+DISTVERSION=	3.0rc1
 CATEGORIES=	net python
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	pylibnet-${DISTVERSION}
 
 MAINTAINER=	sbz@FreeBSD.org
-COMMENT=	Python module for the libnet packet construction library
+COMMENT=	Python extension for the Libnet packet injection library
 
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libnet.so:net/libnet
 
-BROKEN_aarch64=		fails to package: lib.freebsd-11.0-RELEASE-p1-aarch64-2.7/libnet.so: No such file or directory
-BROKEN_armv6=		fails to package: lib.freebsd-11.0-RELEASE-p1-armv6-2.7/libnet.so: No such file or directory
-BROKEN_armv7=		fails to package: lib.freebsd-11.0-RELEASE-p1-armv7-2.7/libnet.so: No such file or directory
-BROKEN_mips64=		fails to package: lib.freebsd-11.0-RELEASE-p1-mips64-2.7/libnet.so: No such file or directory
-
 USES=		python:-2.7
-USE_PYTHON=	distutils pythonprefix
+USE_PYTHON=	autoplist concurrent distutils
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	allfro
-GH_PROJECT=	pylibnet
-GH_TAGNAME=	b2fa552
-
-EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
-
 OPTIONS_DEFINE=	EXAMPLES
-LIBNET_ARCH=	${ARCH:S/powerpc64/powerpc/}
-OSVER=		uname -r
 
 post-patch:
 	@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/setup.py
 
-do-install:
-	${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-	${INSTALL_LIB} \
-	${WRKSRC}/build/lib.${OPSYS:tl}-$$(${OSVER})-${LIBNET_ARCH}-${PYTHON_VER}/${PORTNAME}.so \
-	${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-
 do-install-EXAMPLES-on:
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/libnet.so
 
 .include <bsd.port.mk>

Modified: branches/2019Q3/net/py-libnet/distinfo
==============================================================================
--- branches/2019Q3/net/py-libnet/distinfo	Mon Jul 22 03:26:34 2019	(r507127)
+++ branches/2019Q3/net/py-libnet/distinfo	Mon Jul 22 03:29:47 2019	(r507128)
@@ -1,2 +1,3 @@
-SHA256 (allfro-pylibnet-1.1-b2fa552_GH0.tar.gz) = a9cc100ea911edcc45144df41c7a7783db64e03cb2cb664b06258657b418aed9
-SIZE (allfro-pylibnet-1.1-b2fa552_GH0.tar.gz) = 73736
+TIMESTAMP = 1561462994
+SHA256 (pylibnet-3.0rc1.tar.gz) = 9fc2b9190bce2ce42ab6569debe41f4ff94824fa2447da8044b1a8097ba9cc5a
+SIZE (pylibnet-3.0rc1.tar.gz) = 75395

Modified: branches/2019Q3/net/py-libnet/pkg-descr
==============================================================================
--- branches/2019Q3/net/py-libnet/pkg-descr	Mon Jul 22 03:26:34 2019	(r507127)
+++ branches/2019Q3/net/py-libnet/pkg-descr	Mon Jul 22 03:29:47 2019	(r507128)
@@ -1,3 +1,3 @@
 Python module for the libnet packet construction library
 
-WWW: http://pylibnet.sourceforge.net/
+WWW: https://pylibnet.sourceforge.net/

Modified: branches/2019Q3/net/py-libnet/pkg-plist
==============================================================================
--- branches/2019Q3/net/py-libnet/pkg-plist	Mon Jul 22 03:26:34 2019	(r507127)
+++ branches/2019Q3/net/py-libnet/pkg-plist	Mon Jul 22 03:29:47 2019	(r507128)
@@ -1,4 +1,3 @@
-%%PYTHON_SITELIBDIR%%/libnet.so
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dnsv4.py
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/icmp4echo.py



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907220329.x6M3TlZ0096753>