45a0048d64
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] 67cd7b8417
Reviewed by: loader, sbz
Approved by: sbz (maintainer)
Tested by: loader (armv6, armv7, aarch64, mips64)
MFH: 2019Q3 (blanket(s): bugfix releases, bugfixes)
Differential Revision: D20754
35 lines
769 B
Makefile
35 lines
769 B
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libnet
|
|
DISTVERSION= 3.0rc1
|
|
CATEGORIES= net python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= pylibnet-${DISTVERSION}
|
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
|
COMMENT= Python extension for the Libnet packet injection library
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libnet.so:net/libnet
|
|
|
|
USES= python:-2.7
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/setup.py
|
|
|
|
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>
|