libpcap/libpcap.spec

changeset 29
cc49f73ee7de
parent 27
302190459977
child 85
e6a1cd7ed6ba
equal deleted inserted replaced
0:f27fdb9eaa2b 1:f957a0e2b06e
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: BASE 31 Class: BASE
32 Group: Capturing 32 Group: Capturing
33 License: GPL 33 License: GPL
34 Version: 1.0.0 34 Version: 1.0.0
35 Release: 20081028 35 Release: 20090106
36 36
37 # list of sources 37 # list of sources
38 Source0: http://www.tcpdump.org/release/libpcap-%{version}.tar.gz 38 Source0: http://www.tcpdump.org/release/libpcap-%{version}.tar.gz
39 Patch0: libpcap.patch 39 Patch0: libpcap.patch
40 40
61 } 61 }
62 62
63 %prep 63 %prep
64 %setup -q 64 %setup -q
65 %patch -p0 65 %patch -p0
66 %{l_shtool} subst \
67 -e 's;for ac_header in$;for ac_header in broken;' \
68 configure
66 69
67 %build 70 %build
71 case "%{l_platform -t}" in
72 *-sunos* )
73 ( echo "ac_cv_lib_dlpi_dlpi_walk=no"
74 ) >config.cache
75 ;;
76 esac
68 CC="%{l_cc}" \ 77 CC="%{l_cc}" \
69 CFLAGS="%{l_cflags -O}" \ 78 CFLAGS="%{l_cflags -O}" \
70 ./configure \ 79 ./configure \
80 --cache-file=./config.cache \
71 --prefix=%{l_prefix} \ 81 --prefix=%{l_prefix} \
72 --mandir=%{l_prefix}/man 82 --mandir=%{l_prefix}/man
73 %{l_make} %{l_mflags -O} 83 %{l_make} %{l_mflags -O}
74 84
75 %install 85 %install

mercurial