From f8943ea856d1ea77408e5cb1e347c09fe3e213fa Mon Sep 17 00:00:00 2001 From: liulihong Date: Tue, 9 May 2023 19:27:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9libpcap=E5=BA=93=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liulihong --- thirdparty/libpcap/HPKBUILD | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/thirdparty/libpcap/HPKBUILD b/thirdparty/libpcap/HPKBUILD index 05e9a42c..a8b89133 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(){ -- Gitee From dc349b9c72c0cf279ef5def562b357a11deef541 Mon Sep 17 00:00:00 2001 From: liulihong Date: Wed, 10 May 2023 11:01:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9libpcap=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=BE=9D=E8=B5=96=E6=94=BE=E5=88=B0makedepen?= =?UTF-8?q?s=E9=87=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liulihong --- thirdparty/libpcap/HPKBUILD | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/thirdparty/libpcap/HPKBUILD b/thirdparty/libpcap/HPKBUILD index 05e9a42c..a8b89133 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(){ -- Gitee