2000-01-26 07:00:26 +00:00
|
|
|
#!/usr/bin/make -f
|
2014-06-05 10:30:41 +00:00
|
|
|
# Originally made with the aid of dh_make, by Craig Small
|
2000-01-26 07:00:26 +00:00
|
|
|
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
|
|
|
|
# Some lines taken from debmake, by Cristoph Lameter.
|
2014-06-05 10:30:41 +00:00
|
|
|
# Rewritten to use dh, by Balint Reczey
|
2000-01-26 07:00:26 +00:00
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2015-12-17 22:30:40 +00:00
|
|
|
distrelease := $(shell lsb_release -cs)
|
|
|
|
ifeq ($(distrelease),n/a)
|
|
|
|
distrelease := sid
|
|
|
|
endif
|
|
|
|
|
2014-06-05 10:30:41 +00:00
|
|
|
# This has to be exported to make some magic below work.
|
|
|
|
export DH_OPTIONS
|
2005-03-14 20:46:46 +00:00
|
|
|
|
2015-09-25 07:53:25 +00:00
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
2016-01-11 00:06:42 +00:00
|
|
|
ifneq (,$(filter $(distrelease),wheezy))
|
2015-12-17 22:30:40 +00:00
|
|
|
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-Bsymbolic
|
|
|
|
endif
|
2015-09-25 07:53:25 +00:00
|
|
|
|
2014-06-05 10:30:41 +00:00
|
|
|
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
|
|
|
|
%:
|
2015-09-26 17:07:22 +00:00
|
|
|
dh $@ --with python2 --buildsystem cmake --with quilt --parallel
|
2005-03-14 20:46:46 +00:00
|
|
|
|
2014-06-05 10:30:41 +00:00
|
|
|
override_dh_auto_configure:
|
Switch from AsciiDoc to Asciidoctor.
Switch the markup text processor for files in the docbook directory from
AsciiDoc to Asciidoctor. Asciidoctor has several useful features (such
as direct PDF output) and is actively developed. It's written in Ruby
but that dependency can be sidestepped with AsciidoctorJ, a
self-contained bundle that only depends on the JRE.
The current toolchain targets require Python, AsciiDoc, DocBook XML,
DocBook XSL, Java, FOP, xsltproc, lynx, and the HTMLHelp compiler:
HTML: AsciiDoc → DocBook XML → xsltproc + DocBook XSL
Chunked HTML: AsciiDoc → DocBook XML → xsltproc + DocBook XSL
PDF: AsciiDoc → DocBook XML → xsltproc + DocBook XSL → FOP
HTMLHelp: AsciiDoc → DocBook XML → xsltproc + DocBook XSL → HHC
This change removes the AsciiDoc and FOP requirements and adds either
AsciidoctorJ or Asciidoctor + Ruby:
HTML: Asciidoctor → DocBook XML → xsltproc + DocBook XSL
Chunked HTML: Asciidoctor → DocBook XML → xsltproc + DocBook XSL
PDF: Asciidoctor
HTMLHelp: Asciidoctor → DocBook XML → xsltproc + DocBook XSL → HHC
Ideally we could generate all of these using AsciidoctorJ, Java, and
lynx. Unfortunately we're not there yet.
The release notes depend on several macros (ws-buglink, ws-salink,
cve-idlink, sort-and-group). Add Asciidoctor (Ruby) equivalents.
Remove the BUILD_xxx_GUIDES CMake options and add various output targets
automatically. This means that you have to build the various documentation
targets explicitly.
Change-Id: I31930677a656b99b1c6839bb6c33a13db951eb9a
Reviewed-on: https://code.wireshark.org/review/25668
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2017-10-19 22:03:55 +00:00
|
|
|
dh_auto_configure -- -DBUILD_xxx2deb=ON -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
|
2016-10-18 08:16:39 +00:00
|
|
|
-DBUILD_wireshark_gtk=ON \
|
2015-10-05 00:58:00 +00:00
|
|
|
# -DENABLE_QT5=OFF
|
2005-03-14 20:46:46 +00:00
|
|
|
|
2014-06-05 10:30:41 +00:00
|
|
|
override_dh_auto_build:
|
2016-04-29 08:21:44 +00:00
|
|
|
$(MAKE) -C $(CURDIR)/obj-* asn1
|
2014-06-05 10:30:41 +00:00
|
|
|
dh_auto_build
|
Switch from AsciiDoc to Asciidoctor.
Switch the markup text processor for files in the docbook directory from
AsciiDoc to Asciidoctor. Asciidoctor has several useful features (such
as direct PDF output) and is actively developed. It's written in Ruby
but that dependency can be sidestepped with AsciidoctorJ, a
self-contained bundle that only depends on the JRE.
The current toolchain targets require Python, AsciiDoc, DocBook XML,
DocBook XSL, Java, FOP, xsltproc, lynx, and the HTMLHelp compiler:
HTML: AsciiDoc → DocBook XML → xsltproc + DocBook XSL
Chunked HTML: AsciiDoc → DocBook XML → xsltproc + DocBook XSL
PDF: AsciiDoc → DocBook XML → xsltproc + DocBook XSL → FOP
HTMLHelp: AsciiDoc → DocBook XML → xsltproc + DocBook XSL → HHC
This change removes the AsciiDoc and FOP requirements and adds either
AsciidoctorJ or Asciidoctor + Ruby:
HTML: Asciidoctor → DocBook XML → xsltproc + DocBook XSL
Chunked HTML: Asciidoctor → DocBook XML → xsltproc + DocBook XSL
PDF: Asciidoctor
HTMLHelp: Asciidoctor → DocBook XML → xsltproc + DocBook XSL → HHC
Ideally we could generate all of these using AsciidoctorJ, Java, and
lynx. Unfortunately we're not there yet.
The release notes depend on several macros (ws-buglink, ws-salink,
cve-idlink, sort-and-group). Add Asciidoctor (Ruby) equivalents.
Remove the BUILD_xxx_GUIDES CMake options and add various output targets
automatically. This means that you have to build the various documentation
targets explicitly.
Change-Id: I31930677a656b99b1c6839bb6c33a13db951eb9a
Reviewed-on: https://code.wireshark.org/review/25668
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2017-10-19 22:03:55 +00:00
|
|
|
$(MAKE) -C $(CURDIR)/obj-* user_guide_html developer_guide_html
|
2014-06-05 10:30:41 +00:00
|
|
|
# fix links in documentation
|
2014-07-24 01:28:32 +00:00
|
|
|
sed -i "s|$(CURDIR)/docbook|..|" obj-*/docbook/ws*g_html_chunked/*.html
|
2014-06-05 10:30:41 +00:00
|
|
|
|
|
|
|
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
|
2008-05-31 16:44:02 +00:00
|
|
|
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
|
2000-01-26 07:00:26 +00:00
|
|
|
|
2014-06-05 10:30:41 +00:00
|
|
|
override_dh_install:
|
|
|
|
dh_install
|
2008-05-31 16:44:02 +00:00
|
|
|
# check all necessary headers are included
|
2014-06-05 10:30:41 +00:00
|
|
|
$(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
|
2000-01-26 07:00:26 +00:00
|
|
|
|
2014-06-05 10:30:41 +00:00
|
|
|
override_dh_fixperms:
|
|
|
|
dh_fixperms
|
2017-11-19 00:20:20 +00:00
|
|
|
chmod 644 debian/wireshark-dev/usr/share/pyshared/make-plugin-reg.py \
|
2014-11-16 15:07:45 +00:00
|
|
|
debian/wireshark-dev/usr/share/pyshared/wireshark_be.py \
|
2014-06-05 10:30:41 +00:00
|
|
|
debian/wireshark-dev/usr/share/pyshared/wireshark_gen.py
|
2000-01-26 07:00:26 +00:00
|
|
|
|