PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/gui/wireshark/PAGBUILD.yaml main

83 lines Raw ← Back
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
pkgname: wireshark
pkgver: '4.7.4'
pkgrel: '1'
pkgdesc: Network Sniffer with nice GUI
url: 'https://www.wireshark.org'
arch: x86_64
depends:
- shared-mime-info
- hicolor-icon-theme
- glib
- gnutls
- libcap
- libgcrypt
- libnl
- libpcap
- libssh
- libxml2
- lz4
- minizip
- opencore-amr
- opus
- pcre2
- qt6-base
- qt6-multimedia
- qt6-svg
- sbc
- speexdsp
- systemd
- zstd
- c-ares
- libnghttp3
- speex
makedepends:
- cmake
- c-ares
- ninja
- shared-mime-info
- gtk3
- libpcap
- pcre
- hicolor-icon-theme
- qt6-tools
- qt6-multimedia
- qt6-svg
- qt6-5compat
source:
- 'https://www.wireshark.org/download/src/all-versions/wireshark-${pkgver}.tar.xz'
sha256sums:
- f3a2f5bcca31dd2f8fe92444441402a6d27861b3a4023b68cb42c0563daaf186
hooks:
  post-install: "name=wireshark\nversion=4.7.2\nrelease=1\n#!/bin/sh\n#\n# Add your users to the wireshark group and allow\
    \ them to capture network data\n# as non-root users.\n#\n\n# ugly hack to test for support for capabilities\nINFO=\"\\\
    033[1;36m\"\nNORMAL=\"\\033[0;39m\"\nif ! (getent group wireshark > /dev/null); then\n    printf \"${INFO}Creating wireshark\
    \ group${NORMAL}\\n\"\n    groupadd -g 62 wireshark\nfi\nif ! setfattr -n user.xattr_test usr/bin/dumpcap 2> /dev/null;\
    \ then\n  echo capabilities not supported on this system\n  echo capturing with wireshark will require root privileges\n\
    \  exit 0\nfi\n\nsetfattr -x user.xattr_test usr/bin/dumpcap \n\nchgrp wireshark usr/bin/dumpcap\nchmod 754 usr/bin/dumpcap\n\
    usr/bin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap\n"
build: |
  getent group wireshark ||groupadd -g 62 wireshark
  cd ${pkgname}-${pkgver}

  mkdir build
  cd    build
  cmake  -DCMAKE_INSTALL_PREFIX=/usr \
         -DCMAKE_BUILD_TYPE=Release \
         -DMAKE_INSTALL_DOCDIR=/usr/share/doc/${pkgname} \
         -G Ninja ..

  ninja
  DESTDIR=${PKGDIR} ninja install

  install -v -m755 -d ${PKGDIR}/usr/share/doc/${pkgname}
  install -v -m644    ../README.linux ../doc/README.* ../doc/randpkt.txt \
                      ${PKGDIR}/usr/share/doc/${pkgname}

  pushd ${PKGDIR}/usr/share/doc/${pkgname}
     for FILENAME in ../../wireshark/*.html; do
         ln -s -v -f $FILENAME .
     done
  popd
  unset FILENAME
package: |
  true