aboutsummaryrefslogtreecommitdiff
path: root/net/py-libnet
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-08-25 11:14:08 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-08-25 11:14:08 +0000
commitd71bef9775342f4d54e4136e492ce2f73dd091aa (patch)
tree0dce9c9fda6ea40ef2d0e81eb0b38f88b1fd8b9a /net/py-libnet
parentd8bf0ca72f399a032a89ba86ff9d3ec2a45f498a (diff)
downloadports-d71bef9775342f4d54e4136e492ce2f73dd091aa.tar.gz
ports-d71bef9775342f4d54e4136e492ce2f73dd091aa.zip
Notes
Diffstat (limited to 'net/py-libnet')
-rw-r--r--net/py-libnet/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/py-libnet/Makefile b/net/py-libnet/Makefile
index f0cd84802c77..91dfcaa3f65a 100644
--- a/net/py-libnet/Makefile
+++ b/net/py-libnet/Makefile
@@ -3,7 +3,7 @@
PORTNAME= libnet
PORTVERSION= 1.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,6 +11,7 @@ MAINTAINER= sbz@FreeBSD.org
COMMENT= Python module for the libnet packet construction library
LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet
@@ -27,16 +28,14 @@ EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_DEFINE= EXAMPLES
OSVER= uname -r
-.include <bsd.port.options.mk>
-
do-install:
- ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
- ${INSTALL_DATA} \
+ ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+ ${INSTALL_LIB} \
${WRKSRC}/build/lib.${OPSYS:tl}-$$(${OSVER})-${ARCH}-${PYTHON_VER}/${PORTNAME}.so \
- ${STAGEDIR}${PYTHON_SITELIBDIR}
-.if ${PORT_OPTIONS:MEXAMPLES}
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
-.endif
.include <bsd.port.mk>