aboutsummaryrefslogtreecommitdiff
path: root/net/py-libnet
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2016-03-20 10:53:08 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2016-03-20 10:53:08 +0000
commit654ccc6aac9c7681ed39c2cd2d10d8360ec7a9bc (patch)
treec30aa05ffe4be67ca3bb38317073b7e6603daa7c /net/py-libnet
parent3dc362ac88ab73d6f0b3635628a59d9597e6da4e (diff)
downloadports-654ccc6aac9c7681ed39c2cd2d10d8360ec7a9bc.tar.gz
ports-654ccc6aac9c7681ed39c2cd2d10d8360ec7a9bc.zip
Notes
Diffstat (limited to 'net/py-libnet')
-rw-r--r--net/py-libnet/Makefile3
-rw-r--r--net/py-libnet/files/patch-setup.py13
2 files changed, 3 insertions, 13 deletions
diff --git a/net/py-libnet/Makefile b/net/py-libnet/Makefile
index 91dfcaa3f65a..33787320f076 100644
--- a/net/py-libnet/Makefile
+++ b/net/py-libnet/Makefile
@@ -28,6 +28,9 @@ EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_DEFINE= EXAMPLES
OSVER= uname -r
+post-patch:
+ @${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/setup.py
+
do-install:
${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
${INSTALL_LIB} \
diff --git a/net/py-libnet/files/patch-setup.py b/net/py-libnet/files/patch-setup.py
deleted file mode 100644
index e4d8d0fc4963..000000000000
--- a/net/py-libnet/files/patch-setup.py
+++ /dev/null
@@ -1,13 +0,0 @@
---- ./setup.py.orig 2011-08-02 17:53:25.000000000 +0200
-+++ ./setup.py 2014-05-30 12:55:01.000000000 +0200
-@@ -5,8 +5,8 @@
- import os
- import sys
-
--include_dir = None
--lib_dir = None
-+include_dir = '/usr/local/include/libnet11/'
-+lib_dir = '/usr/local/lib/libnet11'
-
-
- package_version = '3.0-beta-rc1'