![Gerald Combs](/assets/img/avatar_default.png)
Make sure the Qt UI is named "Wireshark" and its executable is named "wireshark" or "wireshark.exe". Make sure the GTK+ UI is named "Wireshark 1" or "Wireshark (GTK+)" depending on how much the target audience is likely to care about UI toolkits. Make sure the GTK+ executable is named "wireshark-gtk" or "wireshark-gtk.exe". It looks like moving to Qt 5.3 (g978faf3) broke the PortableApps package. It's likely even more broken now. Autotools out-of-tree builds also broke on Ubuntu 12.02 (automake 1.11.3) at some point. The first attempt to compile in ui/qt returns "error: source_file.cpp: No such file or directory". The second attempt works. Out-of-tree builds work fine on Ubuntu 14.04 (automake 1.14.1). Tested: - Nmake builds - NSIS packaging - CMake builds (Windows, OS X) - Autotools build and distcheck - RPM packaging To do: - Test Debian packaging - Fix PortableApps Change-Id: I66429870e05fd2d6fc901942477959ed6164fce2 Reviewed-on: https://code.wireshark.org/review/3919 Reviewed-by: Gerald Combs <gerald@wireshark.org>
61 lines
2.4 KiB
Makefile
Executable file
61 lines
2.4 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
# Originally made with the aid of dh_make, by Craig Small
|
|
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
|
|
# Some lines taken from debmake, by Cristoph Lameter.
|
|
# Rewritten to use dh, by Balint Reczey
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
# This has to be exported to make some magic below work.
|
|
export DH_OPTIONS
|
|
|
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-.*/\1/p')
|
|
export docdir = /usr/share/doc/wireshark-doc
|
|
%:
|
|
dh $@ --with python2 --buildsystem cmake --with quilt # --parallel
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- -DENABLE_GUIDES=ON -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
|
|
-DENABLE_QT5=OFF
|
|
|
|
override_dh_auto_build:
|
|
dh_auto_build
|
|
# create menu icon
|
|
convert image/wsicon32.png image/wsicon32.xpm
|
|
# fix links in documentation
|
|
sed -i "s|$(CURDIR)/docbook|..|" obj-*/docbook/ws*g_html_chunked/*.html
|
|
|
|
override_dh_strip:
|
|
dh_strip --dbg-package=wireshark-dbg
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install
|
|
rm -f debian/*.shlibs
|
|
rm -rf $(CURDIR)/debian/tmp/usr/share/wireshark/COPYING
|
|
cp debian/license-text-about-dialog $(CURDIR)/debian/tmp/usr/share/wireshark/ABOUT.GPL
|
|
# icons conforming to freedesktop.org standards
|
|
mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/scalable/apps/ \
|
|
$(CURDIR)/debian/tmp/usr/share/mime/packages/
|
|
install -m 644 image/wsicon.svg $(CURDIR)/debian/tmp/usr/share/icons/hicolor/scalable/apps/wireshark.svg
|
|
install -m 644 wireshark-mime-package.xml $(CURDIR)/debian/tmp/usr/share/mime/packages/wireshark.xml
|
|
# upstream uses wireshark for binary's name
|
|
# mv $(CURDIR)/debian/tmp/usr/bin/wireshark $(CURDIR)/debian/tmp/usr/bin/wireshark-qt
|
|
mkdir -p $(CURDIR)/debian/tmp/etc/wireshark/
|
|
mv $(CURDIR)/debian/tmp/usr/share/wireshark/init.lua \
|
|
$(CURDIR)/debian/tmp/etc/wireshark/
|
|
ln -s /etc/wireshark/init.lua \
|
|
$(CURDIR)/debian/tmp/usr/share/wireshark/init.lua
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
# check all necessary headers are included
|
|
$(CC) -c debian/headers-check.c `pkg-config --cflags glib-2.0` -Idebian/libwireshark-dev/usr/include -Idebian/libwireshark-dev/usr/include/wireshark -Idebian/libwiretap-dev/usr/include/wireshark -Idebian/libwsutil-dev/usr/include/wireshark -o /dev/null
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms
|
|
chmod 644 debian/wireshark-dev/usr/share/pyshared/wireshark_be.py \
|
|
debian/wireshark-dev/usr/share/pyshared/wireshark_gen.py
|
|
|