Difference between revisions of "Libpcap"
From CBLFS
Jump to navigationJump to searchLine 3: | Line 3: | ||
!Download Source: | !Download Source: | ||
|http://www.tcpdump.org/release/libpcap-{{Libpcap-Version}}.tar.gz | |http://www.tcpdump.org/release/libpcap-{{Libpcap-Version}}.tar.gz | ||
+ | |- | ||
+ | !Download Patch: | ||
+ | |http://svn.cross-lfs.org/svn/repos/patches/libpcap/libpcap-{{Libpcap-Version}}-flex_fix-1.patch | ||
|} | |} | ||
Line 9: | Line 12: | ||
{{Package-Introduction|Libpcap provides a system-independent interface for user-level packet capture. It includes a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.|http://www.tcpdump.org/}} | {{Package-Introduction|Libpcap provides a system-independent interface for user-level packet capture. It includes a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.|http://www.tcpdump.org/}} | ||
− | {{Note|Currently, compiling with Flex 2.5.34 results in a broken libpcap. | + | {{Note|Currently, compiling with Flex 2.5.34 results in a broken libpcap. A Patch is available!}} |
== Dependencies == | == Dependencies == | ||
Line 24: | Line 27: | ||
Compile the package: | Compile the package: | ||
+ | patch -Np1 -i ../libpcap-{{Libpcap-Version}}-flex_fix-1.patch && | ||
./configure --prefix=/usr && | ./configure --prefix=/usr && | ||
make | make | ||
Line 39: | Line 43: | ||
Compile the package: | Compile the package: | ||
+ | patch -Np1 -i ../libpcap-{{Libpcap-Version}}-flex_fix-1.patch && | ||
CC="gcc ${BUILD32}" ./configure --prefix=/usr && | CC="gcc ${BUILD32}" ./configure --prefix=/usr && | ||
make | make | ||
Line 50: | Line 55: | ||
Compile the package: | Compile the package: | ||
+ | patch -Np1 -i ../libpcap-{{Libpcap-Version}}-flex_fix-1.patch && | ||
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && | CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && | ||
make | make | ||
Line 61: | Line 67: | ||
Compile the package: | Compile the package: | ||
+ | patch -Np1 -i ../libpcap-{{Libpcap-Version}}-flex_fix-1.patch && | ||
CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && | CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && | ||
make | make |
Revision as of 02:27, 23 February 2008
Download Source: | http://www.tcpdump.org/release/libpcap-1.0.0.tar.gz |
---|---|
Download Patch: | http://svn.cross-lfs.org/svn/repos/patches/libpcap/libpcap-1.0.0-flex_fix-1.patch |
Contents
Introduction to Libpcap
Libpcap provides a system-independent interface for user-level packet capture. It includes a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.
Project Homepage: http://www.tcpdump.org/
Dependencies
Configuration Information
--enable-ipv6: enables full IPv6 support (e.g. capture filters) |
Non-Multilib
Compile the package:
patch -Np1 -i ../libpcap-1.0.0-flex_fix-1.patch && ./configure --prefix=/usr && make
Install the package
make install && install -v -m755 -d /usr/share/doc/libpcap-1.0.0 && install -v -m644 doc/*{html,txt} /usr/share/doc/libpcap-1.0.0
Multilib
32Bit
Compile the package:
patch -Np1 -i ../libpcap-1.0.0-flex_fix-1.patch && CC="gcc ${BUILD32}" ./configure --prefix=/usr && make
Install the package
make install
N32
Compile the package:
patch -Np1 -i ../libpcap-1.0.0-flex_fix-1.patch && CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && make
Install the package
make install
64Bit
Compile the package:
patch -Np1 -i ../libpcap-1.0.0-flex_fix-1.patch && CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && make
Install the package
make install && install -v -m755 -d /usr/share/doc/libpcap-1.0.0 && install -v -m644 doc/*{html,txt} /usr/share/doc/libpcap-1.0.0