OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   11-Feb-2004 12:33:15
  Branch: HEAD                             Handle: 2004021111331500

  Modified files:
    openpkg-src/snort       snort.spec

  Log:
    inet_aton() is available on Solaris but requires libresolv; create
    LIBS through multiple shell commands as modification within a single
    large command line does not work but is required by conditional
    constructs; also set LIBS within the single lage command line to pass
    it into configure (previous export would have been an alternative)

  Summary:
    Revision    Changes     Path
    1.17        +9  -4      openpkg-src/snort/snort.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/snort/snort.spec
  ============================================================================
  $ cvs diff -u -r1.16 -r1.17 snort.spec
  --- openpkg-src/snort/snort.spec      7 Feb 2004 17:58:52 -0000       1.16
  +++ openpkg-src/snort/snort.spec      11 Feb 2004 11:33:15 -0000      1.17
  @@ -34,7 +34,7 @@
   Group:        Network
   License:      GPL
   Version:      2.1.0
  -Release:      20040207
  +Release:      20040211
   
   #   package options
   %option       with_mysql  no
  @@ -87,13 +87,18 @@
       %patch -p0
   
   %build
  +    LIBS=""
  +%if "%{with_pgsql}" == "yes"
  +    LIBS="$LIBS -lpq -lcrypt -lssl -lcrypto"
  +%endif
  +    case "%{l_platform -t}" in
  +        *-sunos* ) LIBS="$LIBS -lresolv" ;;
  +    esac
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
       CPPFLAGS="%{l_cppflags}" \
       LDFLAGS="%{l_ldflags}" \
  -%if "%{with_pgsql}" == "yes"
  -    LIBS="-lpq -lcrypt -lssl -lcrypto" \
  -%endif
  +    LIBS="$LIBS" \
       ./configure \
           --prefix=%{l_prefix} \
           --sysconfdir=%{l_prefix}/etc/snort \
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to