mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
790db0d992
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
35 lines
826 B
Text
Executable file
35 lines
826 B
Text
Executable file
VERSION="1.9.0"
|
|
SRCDIR="libpcap-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
URL="http://www.tcpdump.org/release/"
|
|
SHA256SUM="2edb88808e5913fdaa8e9c1fcaf272e19b2485338742b5074b9fe44d68f37019"
|
|
DEPENDS="toolchain libnl3"
|
|
|
|
prepare() {
|
|
apply_patches
|
|
}
|
|
|
|
build() {
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
|
sed -i "s#/usr/include/libnl3#$TCDIR/$TARGET/include/libnl3#g" configure
|
|
|
|
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
|
--libexecdir=/lib/libexec --with-pcap=linux \
|
|
--enable-ipv6
|
|
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
make DESTDIR="$DEPLOY" install
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L "$URL" | grep -o ">libpcap-[0-9.]*tar.gz<" | \
|
|
sed 's/>libpcap-//g' | sed 's/.tar.gz<//g' | \
|
|
verson_find_greatest "$VERSION"
|
|
}
|