Browse Source

Build Debian debug package for libmodbus

Alexander Klauer 12 years ago
parent
commit
6952802102
2 changed files with 12 additions and 0 deletions
  1. 10 0
      debian/control
  2. 2 0
      debian/rules

+ 10 - 0
debian/control

@@ -16,6 +16,16 @@ Description: A Modbus library
  .
  This package contains the libmodbus shared library.
 
+Package: libmodbus-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: libmodbus5 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: A Modbus library (debugging symbols)
+ libmodbus is a C library designed to provide a fast and robust implementation
+ of the Modbus protocol. It runs on Linux, Mac OS X, FreeBSD, QNX and Windows.
+ .
+ This package contains debugging symbols for libmodbus.
 
 Package: libmodbus-dev
 Section: libdevel

+ 2 - 0
debian/rules

@@ -2,6 +2,8 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 
+DEB_DH_STRIP_ARGS := --dbg-package=libmodbus-dbg
+
 makebuilddir::
 	./autogen.sh