Browse Source

add option to match default port number with that of corresponding server package (ripe-dbase 43001)

Michael Schloh von Bennewitz 21 years ago
parent
commit
1890aa7c4c
1 changed files with 9 additions and 1 deletions
  1. 9 1
      ripe-whois/ripe-whois.spec

+ 9 - 1
ripe-whois/ripe-whois.spec

@@ -34,7 +34,10 @@ Class:        EVAL
 Group:        Network
 License:      RIPE NCC
 Version:      3.1.1
-Release:      20040207
+Release:      20040429
+
+#   package options
+%option       with_altport yes
 
 #   list of sources
 Source0:      ftp://ftp.ripe.net/tools/ripe-whois-%{version}v6.tar.gz
@@ -60,6 +63,11 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n whois-%{version}v6
+%if "%{with_altport}" == "yes"
+    %{l_shtool} subst \
+        -e 's;\(DEFAULT_WHOIS_PORT \)"43";\1"43001";' \
+        whois3.c
+%endif
 
 %build
     CC="%{l_cc}" \