libpcap/libpcap.spec

changeset 489
0348d09236d3
parent 488
0bcf858a6152
child 499
a5345734c62c
equal deleted inserted replaced
3:eb1f9ecb6a88 4:eebd5f3793d5
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: BASE 35 Class: BASE
36 Group: Capturing 36 Group: Capturing
37 License: GPL 37 License: GPL
38 Version: %{V_tarball} 38 Version: %{V_tarball}
39 Release: 20120613 39 Release: 20120800
40 40
41 # list of sources 41 # list of sources
42 Source0: http://www.tcpdump.org/release/libpcap-%{V_tarball}.tar.gz 42 Source0: http://www.tcpdump.org/release/libpcap-%{V_tarball}.tar.gz
43 Patch0: libpcap.patch 43 Patch0: libpcap.patch
44 44
45 # build information 45 # build information
46 BuildPreReq: OpenPKG, openpkg >= 20100101, bison, flex 46 BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison, flex
47 PreReq: OpenPKG, openpkg >= 20100101 47 PreReq: OpenPKG, openpkg >= 20100101
48 48
49 %description 49 %description
50 libpcap provides a portable framework for low-level network monitoring and 50 libpcap provides a portable framework for low-level network monitoring and
51 system-independent interface for user-level packet capture. The libpcap 51 system-independent interface for user-level packet capture. The libpcap
61 } 61 }
62 62
63 %prep 63 %prep
64 %setup -q -n libpcap-%{V_subdir} 64 %setup -q -n libpcap-%{V_subdir}
65 %patch -p0 65 %patch -p0
66 %{l_shtool} subst \
67 -e 's;\(#if defined(PF_PACKET) && defined(SO_ATTACH_FILTER)\)$;\1 \&\& defined(__linux__);g' \
68 gencode.c
66 69
67 %build 70 %build
68 CC="%{l_cc}" \ 71 CC="%{l_cc}" \
69 CFLAGS="%{l_cflags -O}" \ 72 CFLAGS="%{l_cflags -O}" \
70 GREP="grep" \ 73 GREP="grep" \

mercurial