diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-08-06 22:17:04 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-08-06 22:17:04 +0000 |
commit | 5983d1b71c1786136fcbd1fb6599be9f02bd4939 (patch) | |
tree | d7bd33696bdf0b5d37b1c1c7d5c7f167a8ab4083 /net/pynids | |
parent | 870498d2680b8b1858dbcc4c03075fac18fcb4d2 (diff) | |
download | ports-5983d1b71c1786136fcbd1fb6599be9f02bd4939.tar.gz ports-5983d1b71c1786136fcbd1fb6599be9f02bd4939.zip |
Notes
Diffstat (limited to 'net/pynids')
-rw-r--r-- | net/pynids/Makefile | 8 | ||||
-rw-r--r-- | net/pynids/files/patch-setup.py | 20 |
2 files changed, 28 insertions, 0 deletions
diff --git a/net/pynids/Makefile b/net/pynids/Makefile index d1c94182367a..91d505aa6fd1 100644 --- a/net/pynids/Makefile +++ b/net/pynids/Makefile @@ -22,6 +22,14 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes USE_PYTHON_PREFIX= yes +CFLAGS+= -fPIC + PLIST_FILES= %%PYTHON_SITELIBDIR%%/nidsmodule.so +post-patch: + ${CP} -f ${TEMPLATES}/config.guess ${WRKSRC} + ${CHMOD} a+rx ${WRKSRC}/config.guess + ${CP} -f ${TEMPLATES}/config.sub ${WRKSRC} + ${CHMOD} a+rx ${WRKSRC}/config.sub + .include <bsd.port.mk> diff --git a/net/pynids/files/patch-setup.py b/net/pynids/files/patch-setup.py new file mode 100644 index 000000000000..e8db653b4cce --- /dev/null +++ b/net/pynids/files/patch-setup.py @@ -0,0 +1,20 @@ +--- setup.py.orig Tue Feb 1 06:50:11 2005 ++++ setup.py Sun Aug 7 00:08:43 2005 +@@ -9,7 +9,7 @@ + from distutils.core import setup, Extension + from distutils.command.build import build # nidsMaker + from distutils.spawn import spawn # nidsMaker.run() +-import os, os.path ++import os, os.path, shutil + + pathjoin = os.path.join + +@@ -38,6 +38,8 @@ + pass + + spawn(['tar', '-xf', self.NIDSTAR], search_path = 1) ++ shutil.copyfile("config.guess",pathjoin(self.NIDSDIR,"config.guess")) ++ shutil.copyfile("config.sub",pathjoin(self.NIDSDIR,"config.sub")) + os.chdir(self.NIDSDIR) + for p in self.patches: + spawn(['patch', '-c', '-p1', '-i', pathjoin('..', p)], search_path = 1) |