aboutsummaryrefslogtreecommitdiffstats
path: root/debian/wireshark-common.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/wireshark-common.postinst')
-rw-r--r--debian/wireshark-common.postinst43
1 files changed, 0 insertions, 43 deletions
diff --git a/debian/wireshark-common.postinst b/debian/wireshark-common.postinst
deleted file mode 100644
index 8e6df32f1f..0000000000
--- a/debian/wireshark-common.postinst
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-set -e
-
-. /usr/share/debconf/confmodule
-PROGRAM=$(dpkg-divert --truename /usr/bin/dumpcap)
-GROUP=wireshark
-
-if ! dpkg-statoverride --list $PROGRAM > /dev/null; then
- db_get wireshark-common/install-setuid
- if [ -e "$PROGRAM" ]; then
- if [ "$RET" = "false" ] ; then
- chown root:root $PROGRAM
- chmod u=rwx,go=rx $PROGRAM
- else
- if ! addgroup --quiet --system $GROUP; then
- if ! getent group wireshark > /dev/null; then
- db_input high wireshark-common/addgroup-failed || true
- db_go
- exit 1
- else
- db_input high wireshark-common/group-is-user-group || true
- db_go
- fi
- fi
- chown root:$GROUP $PROGRAM
- if which setcap > /dev/null ; then
- chmod u=rwx,g=rx,o=r $PROGRAM
- if ! setcap cap_net_raw,cap_net_admin=eip $PROGRAM; then
- db_input high wireshark-common/setcap-failed || true
- db_go
- chmod u=rwxs,g=rx,o=r $PROGRAM
- fi
- else
- chmod u=rwxs,g=rx,o=r $PROGRAM
- fi
- fi
- fi
-else
- dpkg-statoverride --list $PROGRAM
-fi
-
-#DEBHELPER#