2018-08-11 22:50:19 +02:00
|
|
|
VERSION="1.9.0"
|
|
|
|
SRCDIR="libpcap-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="http://www.tcpdump.org/release/"
|
|
|
|
SHA256SUM="2edb88808e5913fdaa8e9c1fcaf272e19b2485338742b5074b9fe44d68f37019"
|
2019-03-30 23:28:30 +01:00
|
|
|
DEPENDS="libnl3-dev toolchain"
|
2019-02-27 14:22:03 +01:00
|
|
|
SUBPKG="libpcap libpcap-dev"
|
2018-08-11 22:50:19 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
apply_patches
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
|
|
|
sed -i "s#/usr/include/libnl3#$TCDIR/$TARGET/include/libnl3#g" configure
|
|
|
|
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "." --with-pcap=linux --enable-ipv6
|
2018-08-11 22:50:19 +02:00
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-06 10:03:12 +01:00
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
2018-08-11 22:50:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
check_update() {
|
2019-07-07 16:17:16 +02:00
|
|
|
check_update_simple "$URL" "libpcap" "tar.gz"
|
2018-08-11 22:50:19 +02:00
|
|
|
}
|