diff --git a/custom_hooks/install.md b/custom_hooks/install.md new file mode 100644 index 00000000..ab8b4022 --- /dev/null +++ b/custom_hooks/install.md @@ -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' +``` diff --git a/custom_hooks/install.txt b/custom_hooks/install.txt deleted file mode 100644 index 2e6905a8..00000000 --- a/custom_hooks/install.txt +++ /dev/null @@ -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 diff --git a/custom_hooks/wireshark-dumpcap.hook b/custom_hooks/wireshark-dumpcap.hook new file mode 100644 index 00000000..9f4dd654 --- /dev/null +++ b/custom_hooks/wireshark-dumpcap.hook @@ -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' diff --git a/updates.txt b/updates.txt index 5902210c..b7d77e76 100755 --- a/updates.txt +++ b/updates.txt @@ -721,3 +721,7 @@ doas pacman -S pacman-static 02/23/2025 Install audacity doas pacman -S audacity + +02/26/2025 +install wireshark-dumpcap.hook +(See ./custom_hooks/)