Parcourir la source

use our getopt to avoid conflicts, ignore anything that might be found in /usr/local

Michael van Elst il y a 22 ans
Parent
commit
ce4f2f5ac3
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. 6 3
      nmap/nmap.spec

+ 6 - 3
nmap/nmap.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
 Group:        Network
 License:      GPL
 Version:      3.27
-Release:      20030429
+Release:      20030612
 
 #   list of sources
 Source0:      http://www.insecure.org/nmap/dist/nmap-%{version}.tgz
@@ -41,8 +41,8 @@ Source0:      http://www.insecure.org/nmap/dist/nmap-%{version}.tgz
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20030103, make, gcc, flex, bison
-PreReq:       OpenPKG, openpkg >= 20030103
+BuildPreReq:  OpenPKG, openpkg >= 20030103, make, gcc, flex, bison, getopt
+PreReq:       OpenPKG, openpkg >= 20030103, getopt
 AutoReq:      no
 AutoReqProv:  no
 
@@ -59,6 +59,9 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %{l_shtool} subst \
+        -e 's;/usr/local/;%{l_prefix}/;g' \
+        configure */configure
 
 %build
     CC="%{l_cc}" \