1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- set -e
- program=tcpdump
- version=4.9.3
- release=1
- pkgcategory=networking
- tarname=${program}-${version}.tar.gz
- fetch=https://www.tcpdump.org/release/$tarname
- description="
- Dump traffic on a network.
- tcpdump is a utility to dump the traffic on a network.
- For more information, type \`man tcpdump'.
- "
- homepage=https://www.tcpdump.org
- license=BSD
- docs="CHANGES CONTRIBUTING CREDITS LICENSE README.md VERSION"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --infodir=$infodir \
- --mandir=$mandir \
- --docdir=$docsdir \
- --with-crypto=yes \
- --with-cap-ng=yes \
- --with-system-libpcap \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
-
- if test -e "${destdir}/usr/sbin/tcpdump.${version}"
- then
- rm -f "${destdir}/usr/sbin/tcpdump"
- ln -s tcpdump.${version} "${destdir}/usr/sbin/tcpdump"
- fi
-
- lzip -9 "${destdir}/${mandir}/man1/tcpdump.1"
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|