🔧 Added custom wireshark hook to pacman
This commit is contained in:
parent
7810f1070b
commit
89446d7805
4 changed files with 47 additions and 9 deletions
34
custom_hooks/install.md
Normal file
34
custom_hooks/install.md
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
This is a simple pacman hook that will update the mandb (the database of man
|
||||||
|
pages) whenever you update.
|
||||||
|
|
||||||
|
It was taken from this Artix form post:
|
||||||
|
|
||||||
|
https://forum.artixlinux.org/index.php/topic,1080.0.html
|
||||||
|
|
||||||
|
very simply:
|
||||||
|
|
||||||
|
doas cp mandb-update.hook /usr/share/libalpm/hooks
|
||||||
|
|
||||||
|
You can also uncomment this line in /etc/pacman.conf:
|
||||||
|
|
||||||
|
HookDir = /etc/pacman.d/hooks/
|
||||||
|
|
||||||
|
You may need to create this directory. Inside of it you can create a .hook file:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
touch wireshark-dumpcap.hook
|
||||||
|
```
|
||||||
|
|
||||||
|
Here is a sample hook:
|
||||||
|
|
||||||
|
```
|
||||||
|
[Trigger]
|
||||||
|
Operation = Upgrade
|
||||||
|
Type = Package
|
||||||
|
Target = wireshark-cli
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Fixing permissions for dumpcap...
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /bin/sh -c 'chgrp wireshark /usr/bin/dumpcap && setcap cap_net_raw,cap_net_admin=ep /usr/bin/dumpcap'
|
||||||
|
```
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
This is a simple pacman hook that will update the mandb (the database of man pages) whenever you update.
|
|
||||||
|
|
||||||
It was taken from this Artix form post:
|
|
||||||
|
|
||||||
https://forum.artixlinux.org/index.php/topic,1080.0.html
|
|
||||||
|
|
||||||
very simply:
|
|
||||||
|
|
||||||
doas cp mandb-update.hook /usr/share/libalpm/hooks
|
|
||||||
9
custom_hooks/wireshark-dumpcap.hook
Normal file
9
custom_hooks/wireshark-dumpcap.hook
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Trigger]
|
||||||
|
Operation = Upgrade
|
||||||
|
Type = Package
|
||||||
|
Target = wireshark-cli
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Fixing permissions for dumpcap...
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /bin/sh -c 'chgrp wireshark /usr/bin/dumpcap && setcap cap_net_raw,cap_net_admin=ep /usr/bin/dumpcap'
|
||||||
|
|
@ -721,3 +721,7 @@ doas pacman -S pacman-static
|
||||||
02/23/2025
|
02/23/2025
|
||||||
Install audacity
|
Install audacity
|
||||||
doas pacman -S audacity
|
doas pacman -S audacity
|
||||||
|
|
||||||
|
02/26/2025
|
||||||
|
install wireshark-dumpcap.hook
|
||||||
|
(See ./custom_hooks/)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue