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                      Date:   15-Dec-2004 17:23:23
  Branch: HEAD                             Handle: 2004121516232300

  Added files:
    openpkg-src/softflowd   softflowd.spec

  Log:
    new package: softflowd 0.9.6 (NetFlow-capable Network Traffic
    Analyser)

  Summary:
    Revision    Changes     Path
    1.1         +129 -0     openpkg-src/softflowd/softflowd.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/softflowd/softflowd.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 softflowd.spec
  --- /dev/null 2004-12-15 17:23:23 +0100
  +++ softflowd.spec    2004-12-15 17:23:23 +0100
  @@ -0,0 +1,129 @@
  +##
  +##  softflowd.spec -- OpenPKG RPM Specification
  +##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  +##  Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
  +##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package information
  +Name:         softflowd
  +Summary:      NetFlow-capable Network Traffic Analyser
  +URL:          http://www.mindrot.org/softflowd.html
  +Vendor:       Damien Miller
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Network
  +License:      BSD
  +Version:      0.9.6
  +Release:      20041215
  +
  +#   package options
  +%option       with_fsl  yes
  +
  +#   list of sources
  +Source0:      
http://www.mindrot.org/files/softflowd/softflowd-%{version}.tar.gz
  +Source1:      rc.softflowd
  +Source2:      fsl.softflowd
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130
  +PreReq:       OpenPKG, openpkg >= 20040130
  +%if "%{with_fsl}" == "yes"
  +BuildPreReq:  fsl >= 1.2.0
  +PreReq:       fsl >= 1.2.0
  +%endif
  +BuildPreReq:  libpcap
  +PreReq:       libpcap
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Softflowd is flow-based network traffic analyser capable of Cisco
  +    NetFlow data export. softflowd supports data export using versions
  +    1, 5 or 9 of the NetFlow protocol. Softflowd semi-statefully tracks
  +    traffic flows recorded by listening on a network interface or by
  +    reading a packet capture file. These flows may be reported via
  +    NetFlow to a collecting host or summarised within Softflowd itself.
  +
  +%track
  +    prog softflowd = {
  +        version   = %{version}
  +        url       = http://www.mindrot.org/softflowd.html
  +        regex     = softflowd-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q
  +
  +%build
  +    #   configure program
  +    %{l_shtool} subst \
  +        -e 's;/var/run/;%{l_prefix}/var/softflowd/;g' \
  +        common.h
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
  +    LIBS="%{l_fsl_libs}" \
  +    ./configure \
  +        --prefix=%{l_prefix}
  +
  +    #   build program
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    #   create installation hierarchy
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl \
  +        $RPM_BUILD_ROOT%{l_prefix}/sbin \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/softflowd
  +
  +    #   install program and manual pages
  +    %{l_shtool} install -c -s -m 755 \
  +        softflowd softflowctl $RPM_BUILD_ROOT%{l_prefix}/sbin/
  +    %{l_shtool} install -c -m 644 \
  +        softflowd.8 softflowctl.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
  +
  +    #   install run-command script
  +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        %{SOURCE rc.softflowd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +
  +    #   install OSSP fsl configuration
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        %{SOURCE fsl.softflowd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%not %dir %{l_prefix}/etc/fsl' \
  +        '%config %{l_prefix}/etc/fsl/fsl.softflowd'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to