forked from ports/contrib
wireshark: moved from opt
This commit is contained in:
parent
c7b656a66e
commit
82f1558c0c
1040
wireshark/.footprint
Normal file
1040
wireshark/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
5
wireshark/.signature
Normal file
5
wireshark/.signature
Normal file
@ -0,0 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF37yl7U1cMBj4xvMvmKtocOL/uqhIQ4QQUvTuA/XW7uLgPGMLNQXoj1dVeqa9Fw1Zs8KHFw5Ze66255YvF0GGQQc=
|
||||
SHA256 (Pkgfile) = c03cf004c0b4f783eeee0c177ecd202cac0d1114120cbcab83930df97a1514e4
|
||||
SHA256 (.footprint) = f92fe2334b78ebb7ff0996c98189c2c9a0f452ec9c37a69f85695c0f073620a8
|
||||
SHA256 (wireshark-4.0.4.tar.xz) = a4a09f6564f00639036ffe5064ac4dc2176adfa3e484c539c9c73f835436e74b
|
39
wireshark/Pkgfile
Normal file
39
wireshark/Pkgfile
Normal file
@ -0,0 +1,39 @@
|
||||
# Description: Network Sniffer
|
||||
# URL: https://www.wireshark.org
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: c-ares hicolor-icon-theme libgcrypt libpcap qt6-5compat qt6-multimedia qt6-translations
|
||||
|
||||
name=wireshark
|
||||
version=4.0.4
|
||||
release=1
|
||||
source=(https://www.wireshark.org/download/src/$name-$version.tar.xz)
|
||||
|
||||
build() {
|
||||
prt-get isinst ccache && PKGMK_WIRESHARK+=' -D ENABLE_CCACHE=ON' && \
|
||||
PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
||||
|
||||
# lto only works well with lld due to a ld bug
|
||||
prt-get isinst clang lld && \
|
||||
export CC='clang' && \
|
||||
export CXX='clang++' && \
|
||||
export AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib && \
|
||||
export LDFLAGS+=' -fuse-ld=lld -flto=thin'
|
||||
prt-get isinst clang lld && PKGMK_WIRESHARK+=' -D ENABLE_LTO=ON '
|
||||
|
||||
cmake -S $name-$version -B build -G Ninja $PKGMK_WIRESHARK \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||
-D USE_qt6=ON
|
||||
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
||||
chown root:wireshark $PKG/usr/bin/dumpcap
|
||||
chmod u+s $PKG/usr/bin/dumpcap
|
||||
|
||||
# Don't remove these files, they are read by wiresharks about box.
|
||||
#rm -f $PKG/usr/share/$name/{AUTHORS-SHORT,COPYING}
|
||||
}
|
5
wireshark/pre-install
Executable file
5
wireshark/pre-install
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
_GROUP=wireshark
|
||||
|
||||
/usr/bin/getent group $_GROUP > /dev/null 2>&1 || /usr/sbin/groupadd $_GROUP
|
Loading…
x
Reference in New Issue
Block a user