Import package vendor original specs for necessary manipulations.

Wed, 07 Jan 2009 17:20:34 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 07 Jan 2009 17:20:34 +0100
changeset 27
302190459977
parent 26
89094e16ef70
child 28
beaae89a4a45

Import package vendor original specs for necessary manipulations.

libpcap/libpcap.patch file | annotate | diff | comparison | revisions
libpcap/libpcap.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libpcap/libpcap.patch	Wed Jan 07 17:20:34 2009 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +Index: scanner.l
     1.5 +--- scanner.l.orig	2007-06-11 21:34:28 +0200
     1.6 ++++ scanner.l	2007-12-19 10:56:36 +0100
     1.7 +@@ -81,13 +81,6 @@
     1.8 + B		([0-9A-Fa-f][0-9A-Fa-f]?)
     1.9 + W		([0-9A-Fa-f][0-9A-Fa-f]?[0-9A-Fa-f]?[0-9A-Fa-f]?)
    1.10 + 
    1.11 +-%a 18400
    1.12 +-%o 21500
    1.13 +-%e 7600
    1.14 +-%k 4550
    1.15 +-%p 27600
    1.16 +-%n 2000
    1.17 +-
    1.18 + V680		{W}:{W}:{W}:{W}:{W}:{W}:{W}:{W}
    1.19 + 
    1.20 + V670		::{W}:{W}:{W}:{W}:{W}:{W}:{W}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libpcap/libpcap.spec	Wed Jan 07 17:20:34 2009 +0100
     2.3 @@ -0,0 +1,90 @@
     2.4 +##
     2.5 +##  libpcap.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package information
    2.28 +Name:         libpcap
    2.29 +Summary:      Network Packet Capture Library
    2.30 +URL:          http://www.tcpdump.org/
    2.31 +Vendor:       The Tcpdump Group
    2.32 +Packager:     OpenPKG Foundation e.V.
    2.33 +Distribution: OpenPKG Community
    2.34 +Class:        BASE
    2.35 +Group:        Capturing
    2.36 +License:      GPL
    2.37 +Version:      1.0.0
    2.38 +Release:      20081028
    2.39 +
    2.40 +#   list of sources
    2.41 +Source0:      http://www.tcpdump.org/release/libpcap-%{version}.tar.gz
    2.42 +Patch0:       libpcap.patch
    2.43 +
    2.44 +#   build information
    2.45 +Prefix:       %{l_prefix}
    2.46 +BuildRoot:    %{l_buildroot}
    2.47 +BuildPreReq:  OpenPKG, openpkg >= 20040130, bison, flex
    2.48 +PreReq:       OpenPKG, openpkg >= 20040130
    2.49 +AutoReq:      no
    2.50 +AutoReqProv:  no
    2.51 +
    2.52 +%description
    2.53 +    libpcap provides a portable framework for low-level network monitoring and
    2.54 +    system-independent interface for user-level packet capture. The libpcap
    2.55 +    interface supports a filtering mechanism based on the architecture in the
    2.56 +    BSD packet filter. On systems that don't have BPF, all packets are read
    2.57 +    into user-space and the BPF filters are evaluated in the libpcap library.
    2.58 +
    2.59 +%track
    2.60 +    prog libpcap = {
    2.61 +        version   = %{version}
    2.62 +        url       = http://www.tcpdump.org/release/
    2.63 +        regex     = libpcap-(__VER__)\.tar\.gz
    2.64 +    }
    2.65 +
    2.66 +%prep
    2.67 +    %setup -q
    2.68 +    %patch -p0
    2.69 +
    2.70 +%build
    2.71 +    CC="%{l_cc}" \
    2.72 +    CFLAGS="%{l_cflags -O}" \
    2.73 +    ./configure \
    2.74 +        --prefix=%{l_prefix} \
    2.75 +        --mandir=%{l_prefix}/man
    2.76 +    %{l_make} %{l_mflags -O}
    2.77 +
    2.78 +%install
    2.79 +    rm -rf $RPM_BUILD_ROOT
    2.80 +    %{l_shtool} mkdir -f -p -m 755 \
    2.81 +        $RPM_BUILD_ROOT%{l_prefix}/bin \
    2.82 +        $RPM_BUILD_ROOT%{l_prefix}/man/man3
    2.83 +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    2.84 +    ( cd $RPM_BUILD_ROOT%{l_prefix}/man/man3
    2.85 +      %{l_shtool} move -e '*.3pcap' '%1.3'
    2.86 +    ) || exit $?
    2.87 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    2.88 +
    2.89 +%files -f files
    2.90 +
    2.91 +%clean
    2.92 +    rm -rf $RPM_BUILD_ROOT
    2.93 +

mercurial