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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web          Date:   17-Nov-2003 21:10:50
  Branch: HEAD                             Handle: 2003111720104802

  Modified files:
    openpkg-src/snort       snort.spec
    openpkg-web             news.txt

  Log:
    add optional MySQL and PostgreSQL support

  Summary:
    Revision    Changes     Path
    1.10        +26 -1      openpkg-src/snort/snort.spec
    1.7447      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/snort/snort.spec
  ============================================================================
  $ cvs diff -u -r1.9 -r1.10 snort.spec
  --- openpkg-src/snort/snort.spec      6 Nov 2003 19:55:39 -0000       1.9
  +++ openpkg-src/snort/snort.spec      17 Nov 2003 20:10:50 -0000      1.10
  @@ -33,7 +33,11 @@
   Group:        Network
   License:      GPL
   Version:      2.0.4
  -Release:      20031106
  +Release:      20031117
  +
  +#   package options
  +%option       with_mysql  no
  +%option       with_pgsql  no
   
   #   list of sources
   Source0:      http://www.snort.org/dl/snort-%{version}.tar.gz
  @@ -45,6 +49,14 @@
   PreReq:       OpenPKG, openpkg >= 20030103
   BuildPreReq:  libpcap, libnet
   PreReq:       libpcap, libnet
  +%if "%{with_mysql}" == "yes"
  +BuildPreReq:  mysql
  +PreReq:       mysql
  +%endif
  +%if "%{with_pgsql}" == "yes"
  +BuildPreReq:  postgresql
  +PreReq:       postgresql
  +%endif
   AutoReq:      no
   AutoReqProv:  no
   
  @@ -69,9 +81,22 @@
       CFLAGS="%{l_cflags -O}" \
       CPPFLAGS="%{l_cppflags}" \
       LDFLAGS="%{l_ldflags}" \
  +%if "%{with_pgsql}" == "yes"
  +    LIBS="-lpq -lcrypt -lssl -lcrypto" \
  +%endif
       ./configure \
           --prefix=%{l_prefix} \
           --sysconfdir=%{l_prefix}/etc/snort \
  +%if "%{with_mysql}" == "yes"
  +        --with-mysql=%{l_prefix} \
  +%else
  +        --without-mysql \
  +%endif
  +%if "%{with_pgsql}" == "yes"
  +        --with-postgresql=%{l_prefix} \
  +%else
  +        --without-postgresql \
  +%endif
           --with-libpcap-includes=%{l_prefix}/include \
           --with-libpcap-libraries=%{l_prefix}/lib \
           --with-libnet-includes=%{l_prefix}/include \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.7446 -r1.7447 news.txt
  --- openpkg-web/news.txt      17 Nov 2003 19:51:53 -0000      1.7446
  +++ openpkg-web/news.txt      17 Nov 2003 20:10:48 -0000      1.7447
  @@ -1,3 +1,4 @@
  +17-Nov-2003: Upgraded package: P<snort-2.0.4-20031117>
   17-Nov-2003: Upgraded package: P<mysql-4.0.16-20031117>
   17-Nov-2003: Upgraded package: P<abiword-2.0.1.2-20031117>
   17-Nov-2003: Upgraded package: P<xscreensaver-4.14-20031117>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to