aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsis Atteka <aatteka@nicira.com>2013-10-25 15:42:10 -0700
committerMartin Willi <martin@revosec.ch>2013-10-30 09:29:28 +0100
commit588099f772de250c04b933c57829390c8d4966fc (patch)
tree2dc5ab4f08de15d36a0b413862accb524772f64d
parent19046552b634cec03191f9b7a51802658e757dfd (diff)
downloadstrongswan-588099f772de250c04b933c57829390c8d4966fc.tar.bz2
strongswan-588099f772de250c04b933c57829390c8d4966fc.tar.xz
debian: build debug symbol package
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>
-rw-r--r--packages/strongswan/debian/control12
-rwxr-xr-xpackages/strongswan/debian/rules2
2 files changed, 13 insertions, 1 deletions
diff --git a/packages/strongswan/debian/control b/packages/strongswan/debian/control
index 7457b11b3..831381d23 100644
--- a/packages/strongswan/debian/control
+++ b/packages/strongswan/debian/control
@@ -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.
diff --git a/packages/strongswan/debian/rules b/packages/strongswan/debian/rules
index be1cc637e..3f49080fa 100755
--- a/packages/strongswan/debian/rules
+++ b/packages/strongswan/debian/rules
@@ -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