2013-09-21 00:10:23 +02:00
|
|
|
# Created by: ijliao
|
2002-01-30 04:32:10 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libnet
|
2009-07-03 17:17:42 +02:00
|
|
|
PORTVERSION= 1.1
|
2015-08-25 13:14:08 +02:00
|
|
|
PORTREVISION= 3
|
2002-01-30 04:32:10 +01:00
|
|
|
CATEGORIES= net python
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2011-03-18 11:04:54 +01:00
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Python module for the libnet packet construction library
|
2002-01-30 04:32:10 +01:00
|
|
|
|
2014-05-30 16:08:43 +02:00
|
|
|
LICENSE= GPLv3
|
2015-08-25 13:14:08 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2002-01-30 04:32:10 +01:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libnet.so:net/libnet
|
2002-01-30 04:32:10 +01:00
|
|
|
|
2014-10-24 18:21:26 +02:00
|
|
|
USES= python
|
|
|
|
USE_PYTHON= distutils pythonprefix
|
2004-12-16 13:22:26 +01:00
|
|
|
|
2014-05-30 16:08:43 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= allfro
|
|
|
|
GH_PROJECT= pylibnet
|
2015-05-07 19:26:05 +02:00
|
|
|
GH_TAGNAME= b2fa552
|
2007-01-31 15:09:55 +01:00
|
|
|
|
2009-07-03 17:17:42 +02:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
|
2014-05-30 16:08:43 +02:00
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
OSVER= uname -r
|
2008-05-01 15:49:40 +02:00
|
|
|
|
2016-11-16 01:35:05 +01:00
|
|
|
BROKEN_aarch64= Fails to install: lib.freebsd-11.0-RELEASE-p1-aarch64-2.7/libnet.so: No such file or directory
|
|
|
|
BROKEN_powerpc64= Does not build
|
|
|
|
|
2016-03-20 11:53:08 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/setup.py
|
|
|
|
|
2002-01-30 04:32:10 +01:00
|
|
|
do-install:
|
2015-08-25 13:14:08 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
${INSTALL_LIB} \
|
2014-05-30 16:08:43 +02:00
|
|
|
${WRKSRC}/build/lib.${OPSYS:tl}-$$(${OSVER})-${ARCH}-${PYTHON_VER}/${PORTNAME}.so \
|
2015-08-25 13:14:08 +02:00
|
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
|
|
|
|
do-install-EXAMPLES-on:
|
2014-05-30 16:08:43 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
2002-01-30 04:32:10 +01:00
|
|
|
|
2014-05-30 16:08:43 +02:00
|
|
|
.include <bsd.port.mk>
|