]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
debian: build debug symbol package
authorAnsis Atteka <aatteka@nicira.com>
Fri, 25 Oct 2013 22:42:10 +0000 (15:42 -0700)
committerMartin Willi <martin@revosec.ch>
Wed, 30 Oct 2013 08:29:28 +0000 (09:29 +0100)
Before this patch all debug symbols were stripped off and simply
discarded.  GDB without debug symbols is barely usable, but at
the same time distributing binaries with debug symbols would
drastically increase strongswan/libstrongswan package size.

Instead of discarding debug symbols, it would be better to strip
them off into a dedicated debian package.  So that, if needed, one
could still install them and use GDB.

Signed-off-by: Ansis Atteka <aatteka@nicira.com>
packages/strongswan/debian/control
packages/strongswan/debian/rules

index 7457b11b3763d668902ded60ac1e406bde183c90..831381d238a92822b0b7935591ba6491b73b9d98 100644 (file)
@@ -47,3 +47,15 @@ Depends: ${misc:Depends}, libstrongswan (=${binary:Version})
 Section: devel
 Description: strongSwan development headers
  C header files to develop with libstrongswan.
+
+Package: strongswan-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends}, strongswan, libstrongswan
+Description: strongSwan library and binaries - debugging symbols
+ StrongSwan is an IPsec-based VPN solution for the Linux kernel. It uses the
+ native IPsec stack and runs on any recent 2.6 kernel (no patching required).
+ It supports both IKEv1 and the newer IKEv2 protocols.
+ .
+ This package provides the symbols needed for debugging of strongswan.
index be1cc637eba0f2571729791c0e659c81f1123e3a..3f49080fa8c09cc6e099650da6f04c1d16ed9046 100755 (executable)
@@ -56,7 +56,7 @@ binary-arch: build install
        dh_installinit --name=ipsec
        dh_install -s
        dh_link
-       dh_strip
+       dh_strip --dbg=strongswan-dbg
        dh_compress
        dh_fixperms -Xetc/ipsec.secrets -Xetc/ipsec.d
        dh_makeshlibs