diff options
Diffstat (limited to 'net/pynids/files/patch-setup.py')
-rw-r--r-- | net/pynids/files/patch-setup.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/net/pynids/files/patch-setup.py b/net/pynids/files/patch-setup.py index e8db653b4cce..c72e1e256e8f 100644 --- a/net/pynids/files/patch-setup.py +++ b/net/pynids/files/patch-setup.py @@ -1,5 +1,5 @@ ---- setup.py.orig Tue Feb 1 06:50:11 2005 -+++ setup.py Sun Aug 7 00:08:43 2005 +--- ./setup.py.orig Tue Feb 1 02:50:11 2005 ++++ ./setup.py Sat Sep 30 17:49:08 2006 @@ -9,7 +9,7 @@ from distutils.core import setup, Extension from distutils.command.build import build # nidsMaker @@ -9,10 +9,19 @@ pathjoin = os.path.join -@@ -38,6 +38,8 @@ +@@ -32,12 +32,15 @@ + def buildNids(self): + # extremely crude package builder + try: +- os.stat(self.NIDSDIR) ++ os.stat(self.NIDSDIR + '/.done') + return None # assume already built + except OSError: pass - spawn(['tar', '-xf', self.NIDSTAR], search_path = 1) +- spawn(['tar', '-xf', self.NIDSTAR], search_path = 1) ++ spawn(['touch', self.NIDSDIR + '/.done'], 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) |