2 # MAde with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
6 # Uncomment this to turn on verbose mode.
11 include /usr/share/dpatch/dpatch.make
12 DB2MAN=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
15 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18 PYTHON_VERSION=python2.3
20 # Enable IEEE-conformant floating point math on alphas (not the default)
21 ifeq (alpha-linux,$(DEB_HOST_GNU_TYPE))
25 idl2deb.1: idl2deb.dbk
26 xsltproc --nonet --novalid $(DB2MAN) $<
28 asn2deb.1: asn2deb.dbk
29 xsltproc --nonet --novalid $(DB2MAN) $<
31 configure: configure-stamp
32 configure-stamp: patch
35 cp /usr/share/misc/config.guess /usr/share/misc/config.sub .
36 libtoolize --force --copy
38 -mkdir aclocal-missing
39 (if [ ! -x ./configure ]; then \
40 ./autogen.sh --prefix=/usr --sysconfdir=/usr/share/ethereal --disable-static --disable-ssl --without-ucdsnmp --enable-gtk2 --libdir=/usr/lib/ethereal CFLAGS="$(CFLAGS)"; \
43 ./configure --prefix=/usr --sysconfdir=/usr/share/ethereal --disable-static --disable-ssl --without-ucdsnmp --enable-gtk2 --libdir=/usr/lib/ethereal CFLAGS="$(CFLAGS)"
47 build: build-stamp idl2deb.1 asn2deb.1
48 build-stamp: configure-stamp
61 rm -f build-stamp configure-stamp
63 cp /usr/share/misc/config.guess /usr/share/misc/config.sub .
65 rm -f rdps ethereal.1 tshark.1 idl2deb.1 wireshark-filter.4 asn2deb.1
66 rm -f conftest conftest.c
67 rm -f config.guess config.sub config.log
71 unpatch: unpatch-stamp
74 rm -rf patch-stamp debian/patched
76 # Build architecture-independent files here.
78 # We have nothing to do by default.
80 # Build architecture-dependent files here.
87 # Add here commands to install the files into debian/tmp
88 $(MAKE) install DESTDIR=`pwd`/debian/tmp
89 mkdir -p `pwd`/debian/tmp/usr/share/applications/
90 cp ethereal.desktop `pwd`/debian/tmp/usr/share/applications/
91 cp debian/wireshark-root.desktop `pwd`/debian/tmp/usr/share/applications/
92 mkdir -p `pwd`/debian/tmp/usr/share/pixmaps/
93 cp image/hi48-app-ethereal.png `pwd`/debian/tmp/usr/share/pixmaps/
94 cp image/eicon3d32.xpm `pwd`/debian/tmp/usr/share/pixmaps/
95 mkdir -p `pwd`/debian/tmp/usr/lib/$(PYTHON_VERSION)/site-packages/
96 install -m 755 `pwd`/idl2deb `pwd`/debian/tmp/usr/bin/
97 install -m 755 `pwd`/asn2deb `pwd`/debian/tmp/usr/bin/
98 cp `pwd`/ethereal_be.py `pwd`/ethereal_gen.py \
99 `pwd`/debian/tmp/usr/lib/$(PYTHON_VERSION)/site-packages/
100 mkdir -p `pwd`/debian/tmp/usr/include/ethereal/
101 for F in `cat debian/wireshark-dev.header-files`; do \
102 cp --parents $$F `pwd`/debian/tmp/usr/include/ethereal; \
104 # .a is no longer built; why was is used ?
105 #cp `pwd`/wiretap/libwiretap.a `pwd`/debian/tmp/usr/lib/
106 -rm -rf `pwd`/debian/tmp/usr/man
111 -rm debian/menu # from upstream debian/ package
113 dh_installchangelogs NEWS
125 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
127 binary: binary-indep binary-arch
128 .PHONY: build clean binary-indep binary-arch binary