Package Details: cnping-git r172.50efba0-2

Git Clone URL: https://aur.archlinux.org/cnping-git.git (read-only, click to copy)
Package Base: cnping-git
Description: Minimal Graphical IPV4 Ping Tool by CNLohr
Upstream URL: https://github.com/cntools/cnping
Keywords: gui ping
Licenses: custom
Submitter: sh1213
Maintainer: dack
Last Packager: dack
Votes: 5
Popularity: 0.000000
First Submitted: 2016-12-11 15:37 (UTC)
Last Updated: 2023-01-15 00:23 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

dack commented on 2022-12-27 15:40 (UTC)

Here's a patch that includes both the dependency fix as well as the setcap fix. Can we get this applied to the PKGBUILD? If you don't want to maintain this package anymore, I'm willing to take it over.

--- a/PKGBUILD   2022-12-27 07:30:04.070468316 -0800
+++ b/PKGBUILD   2022-12-27 07:36:34.421054160 -0800
@@ -7,7 +7,7 @@
 arch=('i686' 'x86_64')
 url="https://github.com/cntools/cnping"
 license=('custom')
-depends=('libxinerama')
+depends=('libxinerama' 'libgl')
 makedepends=('git')
 source=('git+https://github.com/cntools/cnping.git')
 md5sums=('SKIP')
@@ -34,6 +34,7 @@

 package() {
   cd "$srcdir/$_gitname"
-  install -D -m4755 cnping "$pkgdir/usr/bin/cnping"
+  install -D -m755 cnping "$pkgdir/usr/bin/cnping"
+  setcap cap_net_raw+ep "$pkgdir/usr/bin/cnping"
   install -D -m644 LICENSE "$pkgdir/usr/share/licenses/cnping-git/LICENSE"

dack commented on 2022-07-21 06:20 (UTC)

It's missing a dependency on libgl

AlexBMJ commented on 2022-02-18 03:32 (UTC)

Hey, could you change the setuid bit to use a setcap for cap_net_raw? This would fix cnping on Wayland: github issue. Thanks!

Here is a patch:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -34,6 +34,7 @@ build() {

 package() {
   cd "$srcdir/$_gitname"
-  install -D -m4755 cnping "$pkgdir/usr/bin/cnping"
+  install -D -m755 cnping "$pkgdir/usr/bin/cnping"
+  setcap cap_net_raw+ep "$pkgdir/usr/bin/cnping"
   install -D -m644 LICENSE "$pkgdir/usr/share/licenses/cnping-git/LICENSE"
 }