summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Haber <zugschlus@debian.org>2006-07-29 08:59:16 +0000
committerMarc Haber <zugschlus@debian.org>2006-07-29 08:59:16 +0000
commit200b9315655772776eca2e5416610fd293498b21 (patch)
treefb6f71f920828b4eccd31d7d594b5834065ec9ca
parentd75c48095f7093e5d3c45d0fa62ab6bc528ef76d (diff)
downloadexim4-200b9315655772776eca2e5416610fd293498b21.tar.gz
* Build -dbg packages.
svn path=/exim/trunk/; revision=1529
-rw-r--r--debian/changelog3
-rw-r--r--debian/compat2
-rw-r--r--debian/control115
-rwxr-xr-xdebian/rules54
4 files changed, 158 insertions, 16 deletions
diff --git a/debian/changelog b/debian/changelog
index e6c9a2b..dd5f012 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -47,8 +47,9 @@ exim4 (4.62-2.0) UNRELEASED; urgency=low
log rotation strategy
* Add code to generate warnings if paniclog non-empty.
Thanks to Andrew Ferrier. Closes: #379898
+ * Build -dbg packages.
- -- Marc Haber <mh+debian-packages@zugschlus.de> Fri, 28 Jul 2006 15:10:21 +0000
+ -- Marc Haber <mh+debian-packages@zugschlus.de> Sat, 29 Jul 2006 08:58:14 +0000
exim4 (4.62-2) unstable; urgency=low
diff --git a/debian/compat b/debian/compat
index b8626c4..7ed6ff8 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-4
+5
diff --git a/debian/control b/debian/control
index 84fd1f2..3b74d6e 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: standard
Maintainer: Exim4 Maintainers <pkg-exim4-maintainers@lists.alioth.debian.org>
Uploaders: Andreas Metzler <ametzler@debian.org>,Marc Haber <mh+debian-packages@zugschlus.de>
Standards-Version: 3.7.2
-Build-Depends: dpatch (>=2.0.10), libpcre3-dev, libldap2-dev, libpam0g-dev, libident-dev, libdb4.3-dev, libxmu-dev, libxt-dev, libxext-dev, libx11-dev, libxaw7-dev, libpq-dev, libmysqlclient15-dev, debhelper (>= 4.1.68), libperl-dev, libgnutls-dev, libsasl2-dev, docbook-xsl, xsltproc, lynx, docbook-xml
+Build-Depends: dpatch (>=2.0.10), libpcre3-dev, libldap2-dev, libpam0g-dev, libident-dev, libdb4.3-dev, libxmu-dev, libxt-dev, libxext-dev, libx11-dev, libxaw7-dev, libpq-dev, libmysqlclient15-dev, debhelper (>= 5), libperl-dev, libgnutls-dev, libsasl2-dev, docbook-xsl, xsltproc, lynx, docbook-xml
Package: exim4-base
Architecture: any
@@ -222,3 +222,116 @@ Description: monitor application for the exim MTA (v4) (X11 interface)
messages.
.
Upstream URL: http://www.exim.org/
+
+Package: exim4-dbg
+Architecture: any
+Priority: extra
+Depends: exim4-base, exim4-config, eximon4
+Description: debugging symbols for the exim MTA (v4) packages
+ Exim (v4) is a mail transport agent. This package contains dbg
+ debugging symbols for the binaries contained in the exim4
+ packages. The daemon packages have their own debug package.
+ .
+ The Debian exim4 packages have their own web page,
+ http://pkg-exim4.alioth.debian.org/. There is also a FAQ list. Local
+ information about the way the Debian packages can be configured is
+ can be found in /usr/share/doc/exim4-base/README.Debian.gz. This file
+ has also information about the way the Debian binary packages are
+ built. The very extensive upstream documentation is shipped in
+ /usr/share/doc/exim4-base/spec.txt.gz. To repeat the debconf-driven
+ configuration process in a standard setup, invoke dpkg-reconfigure
+ exim4-config. There is a Debian-centered mailing list,
+ pkg-exim4-users@lists.alioth.debian.org. Please ask Debian-specific
+ questions there, and only write to the upstream exim-users mailing
+ list if you are sure that your question is not Debian-specific. You
+ can find the subscription web page on
+ http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
+ .
+ exim is a drop-in replacement for sendmail/mailq/rsmtp.
+ .
+ Upstream URL: http://www.exim.org/
+
+Package: exim4-daemon-light-dbg
+Architecture: any
+Priority: extra
+Depends: exim4-daemon-light
+Description: debugging symbols for the exim MTA (v4) packages
+ Exim (v4) is a mail transport agent. This package contains dbg
+ debugging symbols for the binaries contained in the
+ exim4-daemon-light package.
+ .
+ The Debian exim4 packages have their own web page,
+ http://pkg-exim4.alioth.debian.org/. There is also a FAQ list. Local
+ information about the way the Debian packages can be configured is
+ can be found in /usr/share/doc/exim4-base/README.Debian.gz. This file
+ has also information about the way the Debian binary packages are
+ built. The very extensive upstream documentation is shipped in
+ /usr/share/doc/exim4-base/spec.txt.gz. To repeat the debconf-driven
+ configuration process in a standard setup, invoke dpkg-reconfigure
+ exim4-config. There is a Debian-centered mailing list,
+ pkg-exim4-users@lists.alioth.debian.org. Please ask Debian-specific
+ questions there, and only write to the upstream exim-users mailing
+ list if you are sure that your question is not Debian-specific. You
+ can find the subscription web page on
+ http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
+ .
+ exim is a drop-in replacement for sendmail/mailq/rsmtp.
+ .
+ Upstream URL: http://www.exim.org/
+
+Package: exim4-daemon-heavy-dbg
+Architecture: any
+Priority: extra
+Depends: exim4-daemon-heavy
+Description: debugging symbols for the exim MTA (v4) packages
+ Exim (v4) is a mail transport agent. This package contains dbg
+ debugging symbols for the binaries contained in the
+ exim4-daemon-heavy package.
+ .
+ The Debian exim4 packages have their own web page,
+ http://pkg-exim4.alioth.debian.org/. There is also a FAQ list. Local
+ information about the way the Debian packages can be configured is
+ can be found in /usr/share/doc/exim4-base/README.Debian.gz. This file
+ has also information about the way the Debian binary packages are
+ built. The very extensive upstream documentation is shipped in
+ /usr/share/doc/exim4-base/spec.txt.gz. To repeat the debconf-driven
+ configuration process in a standard setup, invoke dpkg-reconfigure
+ exim4-config. There is a Debian-centered mailing list,
+ pkg-exim4-users@lists.alioth.debian.org. Please ask Debian-specific
+ questions there, and only write to the upstream exim-users mailing
+ list if you are sure that your question is not Debian-specific. You
+ can find the subscription web page on
+ http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
+ .
+ exim is a drop-in replacement for sendmail/mailq/rsmtp.
+ .
+ Upstream URL: http://www.exim.org/
+
+Package: exim4-daemon-custom-dbg
+Architecture: any
+Priority: extra
+Depends: exim4-daemon-custom
+Description: debugging symbols for the exim MTA (v4) packages
+ Exim (v4) is a mail transport agent. This package contains dbg
+ debugging symbols for the binaries contained in the
+ exim4-daemon-custom package.
+ .
+ The Debian exim4 packages have their own web page,
+ http://pkg-exim4.alioth.debian.org/. There is also a FAQ list. Local
+ information about the way the Debian packages can be configured is
+ can be found in /usr/share/doc/exim4-base/README.Debian.gz. This file
+ has also information about the way the Debian binary packages are
+ built. The very extensive upstream documentation is shipped in
+ /usr/share/doc/exim4-base/spec.txt.gz. To repeat the debconf-driven
+ configuration process in a standard setup, invoke dpkg-reconfigure
+ exim4-config. There is a Debian-centered mailing list,
+ pkg-exim4-users@lists.alioth.debian.org. Please ask Debian-specific
+ questions there, and only write to the upstream exim-users mailing
+ list if you are sure that your question is not Debian-specific. You
+ can find the subscription web page on
+ http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
+ .
+ exim is a drop-in replacement for sendmail/mailq/rsmtp.
+ .
+ Upstream URL: http://www.exim.org/
+
diff --git a/debian/rules b/debian/rules
index 1c5d4e0..c542518 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,7 +29,7 @@ export CFLAGS
# Which packages should we build?
buildbasepackages=yes
-builddaemonpackages=exim4-daemon-heavy
+extradaemonpackages=exim4-daemon-heavy
# If you want to build a daemon with a configuration tailored to YOUR special
# needs, call "fakeroot debian/rules unpack-configs", copy EDITME.exim4-light
# to EDITME.exim4-custom and modify it.
@@ -37,25 +37,41 @@ builddaemonpackages=exim4-daemon-heavy
# If you want to create multiple custom packages with different names, use
# the script debian/create-custom-package [suffix].
#
-# Afterwards EITHER disable the definition of builddaemonpackages 4 lines above
+# Afterwards EITHER disable the definition of extradaemonpackages 4 lines above
# by adding a hash-mark (#) at the start of the line and enable the one
# below instead by removing the hash-mark OR simply call
-# "fakeroot debian/rules buildbasepackages=no builddaemonpackages=exim4-daemon-custom binary"
-#builddaemonpackages=exim4-daemon-custom
+# "fakeroot debian/rules buildbasepackages=no extradaemonpackages=exim4-daemon-custom binary"
+#extradaemonpackages=exim4-daemon-custom
# If you want to build a source-package that builds the custom daemon call
# "fakeroot debian/rules pack-configs" after customizing EDITME.exim4-custom
-# If you remove exim4-daemon-light from buildpackages to prevent
+# If you remove exim4-daemon-light from basedaemonpackages to prevent
# exim4-daemon-light from being built, you need to modify the build
# process to pull the helper binaries from the daemon package that you
# actually build. If you simply remove exim4-daemon-light here, you will
# end up with exim4-base sans binaries, which is most probably not what
# you intend to have.
+#
+# combined[ai]dbgpackage has a list of packages whose debug information
+# goes into the combined debug package exim4-dbg, separated as arch
+# independent and arch dependent list.
+# extraadbgpackage has a list of packages whose debug information
+# goes into one debug package foo-dbg per package. This is currently
+# only implemented and needed for arch dependent packages.
+
ifeq ($(buildbasepackages),yes)
-buildpackages=exim4-base exim4-daemon-light eximon4 $(builddaemonpackages)
+basedaemonpackages=exim4-daemon-light
+combinedadbgpackage=exim4-base eximon4
+combinedidbgpackage=exim4-config exim4
+exim4dbg=exim4-dbg
+extraadbgpackage=$(basedaemonpackages) $(extradaemonpackages)
else
-buildpackages=$(builddaemonpackages)
+basedaemonpackages=""
+combinedadbgpackage=""
+combinedidbgpackage=""
+exim4dbg=""
+extraadbgpackage=$(extradaemonpackages)
endif
# If you want to build with OpenSSL instead of GnuTLS, uncomment this
@@ -63,11 +79,16 @@ endif
# Please note that building exim4-daemon-heavy with OpenSSL is a GPL
# violation.
+
+# list of all arch dependent packages to be built
+buildpackages=$(combinedadbgpackage) $(extraadbgpackage) $(addsuffix -dbg,$(extraadbgpackage)) $(exim4dbg)
# generate -pexim4-base -peximon4 ... commandline for debhelper
dhbuildpackages=$(addprefix -p,$(buildpackages))
+dhcombinedadbgpackage=$(addprefix -p,$(combinedadbgpackage))
+dhcombinedidbgpackage=$(addprefix -p,$(combinedidbgpackage))
# exim4-daemon-light --> build-exim4-daemon-light/exim
-daemonbinaries=$(addprefix build-,$(addsuffix /exim,$(builddaemonpackages)))
-debiandaemonbinaries=$(addprefix $(DEBIAN)/,$(addsuffix /usr/sbin/exim4,$(builddaemonpackages)))
+daemonbinaries=$(addprefix build-,$(addsuffix /exim,$(extradaemonpackages)))
+debiandaemonbinaries=$(addprefix $(DEBIAN)/,$(addsuffix /usr/sbin/exim4,$(extradaemonpackages)))
# get upstream-version from debian/changelog, i.e. anything until the first -
UPSTREAMVERSION := $(shell dpkg-parsechangelog | sed -n '/^Version: /{s/^Version: \(.\+\)-[^-]\+/\1/;p;}')
@@ -321,7 +342,10 @@ ifeq ($(buildbasepackages),yes)
dh_installppp -i --name=exim4
dh_installman -i
dh_install -i
- dh_strip -i
+ dh_strip $(dhcombinedidbgpackage) --dbg-package=$(exim4dbg)
+ #for pkg in $(extraidbgpackage); do \
+ # dh_strip -p$$pkg --dbg-package=$${pkg}-dbg; \
+ #done
dh_compress -i
dh_fixperms -i -X/etc/exim4/passwd.client
# dh_makeshlibs -i
@@ -344,7 +368,7 @@ binary-arch: build $(install)
dh_testdir $(dhbuildpackages)
dh_testroot $(dhbuildpackages)
# symlink identical maintainerscripts
- @for i in $(builddaemonpackages) ; do \
+ @for i in $(extradaemonpackages) ; do \
ln -sfv exim4-daemon-light.prerm \
"$(DEBIAN)/$$i.prerm" ; \
ln -sfv exim4-daemon-light.postinst \
@@ -354,7 +378,7 @@ binary-arch: build $(install)
# a symlink
dh_installchangelogs -pexim4-base doc/ChangeLog
# remove "-pexim4-base" from "-pexim4-base -pexim4-daemon-light ..."
- dh_installchangelogs $(subst -pexim4-base,,$(dhbuildpackages))
+ dh_installchangelogs $(subst -pexim4-base ,,$(dhbuildpackages))
dh_installdocs $(dhbuildpackages)
dh_installexamples $(dhbuildpackages)
dh_installmenu $(dhbuildpackages)
@@ -371,7 +395,11 @@ binary-arch: build $(install)
# dh_undocumented $(dhbuildpackages)
dh_installman $(dhbuildpackages)
dh_install $(dhbuildpackages)
- dh_strip $(dhbuildpackages)
+ #dh_strip $(dhbuildpackages) --dbg-package=exim4-dbg
+ dh_strip $(dhcombinedadbgpackage) --dbg-package=$(exim4dbg)
+ for pkg in $(extraadbgpackage); do \
+ dh_strip -p$$pkg --dbg-package=$${pkg}-dbg; \
+ done
dh_link $(dhbuildpackages)
dh_compress $(dhbuildpackages)
dh_fixperms $(dhbuildpackages) -Xusr/sbin/exim4