aboutsummaryrefslogtreecommitdiff
path: root/net/py-pcapy
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2009-04-21 08:25:09 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2009-04-21 08:25:09 +0000
commite20c6f669f9c5f69c366b54a8cf357329fb8cd44 (patch)
tree9cedffbafe823f1c3e8d0e7fb0e3176715890df9 /net/py-pcapy
parentf21bb3c12e3c20d5fcaa7945b8320638ce33d09e (diff)
downloadports-e20c6f669f9c5f69c366b54a8cf357329fb8cd44.tar.gz
ports-e20c6f669f9c5f69c366b54a8cf357329fb8cd44.zip
Notes
Diffstat (limited to 'net/py-pcapy')
-rw-r--r--net/py-pcapy/Makefile8
-rw-r--r--net/py-pcapy/files/patch-setup.py10
2 files changed, 18 insertions, 0 deletions
diff --git a/net/py-pcapy/Makefile b/net/py-pcapy/Makefile
index b1b1a7d3305b..b9420bb01133 100644
--- a/net/py-pcapy/Makefile
+++ b/net/py-pcapy/Makefile
@@ -16,7 +16,15 @@ COMMENT= Python extension module to capture packets on the network
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+
PLIST_FILES= %%PYTHON_SITELIBDIR%%/pcapy.so
PORTDOCS= README LICENSE pcapy.html
+.if !defined(NOPORTDOCS)
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+.endif
+
.include <bsd.port.mk>
diff --git a/net/py-pcapy/files/patch-setup.py b/net/py-pcapy/files/patch-setup.py
new file mode 100644
index 000000000000..a12859a8987b
--- /dev/null
+++ b/net/py-pcapy/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig 2009-04-19 02:22:16.549958526 +0800
++++ setup.py 2009-04-19 02:24:10.837075743 +0800
+@@ -60,7 +60,5 @@
+ include_dirs = include_dirs,
+ library_dirs = library_dirs,
+ libraries = libraries)],
+- data_files = [(os.path.join('share', 'doc', PACKAGE_NAME),
+- ['README', 'LICENSE', 'pcapy.html'])],
+ )
+