![Balint Reczey](/assets/img/avatar_default.png)
The sync makes CMake the build system for the .deb package and starts providing wireshark-qt in the wireshark-qt package. The package structure, i.e. the libraries are shipped in separate packages is also sync-ed. Wireshark-qt uses the Qt 4 libraries, but it is easy to switch it to Qt 5. Change-Id: I849d18bdb8ca6ebf4072cf1d73d749080ac5dac2 Reviewed-on: https://code.wireshark.org/review/1986 Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Balint Reczey <balint@balintreczey.hu> Tested-by: Balint Reczey <balint@balintreczey.hu>
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
. /usr/share/debconf/confmodule
|
|
PROGRAM=/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
|
|
echo "Executing \"addgroup --quiet --system $GROUP\" failed."
|
|
echo "Most probably the $GROUP group exists, but is not a system group."
|
|
echo "Please delete the existing group or re-create it as a system group and try configuring wireshark-common again."
|
|
exit 1
|
|
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
|
|
echo "Setting capabilities for dumpcap using Linux Capabilities failed."
|
|
echo "Falling back to setting set-user-id bit."
|
|
chmod u=rwxs,g=rx,o=r $PROGRAM
|
|
fi
|
|
else
|
|
chmod u=rwxs,g=rx,o=r $PROGRAM
|
|
fi
|
|
fi
|
|
fi
|
|
else
|
|
echo "Preserving owner and mode for $PROGRAM set by dpkg-statoverride:"
|
|
dpkg-statoverride --list $PROGRAM
|
|
fi
|
|
|
|
#DEBHELPER#
|