diff options
-rw-r--r-- | net/py-pcapy/Makefile | 8 | ||||
-rw-r--r-- | net/py-pcapy/files/patch-setup.py | 10 |
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'])],
+ )
+
|