diff --git a/thirdparty/libpcap/HPKBUILD b/thirdparty/libpcap/HPKBUILD index 05e9a42c905eb7ebe4d0beb0f316d3a56f550cab..a8b891336275d5b28c6a8686f534d9e7e14c9013 100644 --- a/thirdparty/libpcap/HPKBUILD +++ b/thirdparty/libpcap/HPKBUILD @@ -9,7 +9,7 @@ url="" archs=("armeabi-v7a" "arm64-v8a") license=("BSD") depends=() -makedepends=() +makedepends=("flex" "bison") install= source="https://github.com/the-tcpdump-group/$pkgname/archive/refs/tags/$pkgver.tar.gz" builddir=$pkgname-$pkgver @@ -30,17 +30,6 @@ prepare() { setarm64ENV host=aarch64-linux fi - bison --version >> /dev/null - if [ "$?" != "0" ];then - echo "please sudo apt-get install bison" - exit 1 - fi - - flex --version >> /dev/null - if [ "$?" != "0" ];then - echo "please sudo apt-get install flex" - exit 1 - fi cd $builddir cd $OLDPWD } @@ -75,6 +64,8 @@ check() { make testprogs >> `pwd`/build.log 2>&1 cd $OLDPWD echo "The test must be on an OpenHarmony device!" + # 保证设备联网 + # 在构建目录的testprogs目录下,执行./capturetest 进行抓包测试即可 } cleanbuild(){