Browse Source

add a -dbg package

Praveen Arimbrathodiyil 10 years ago
parent
commit
c576955bac
3 changed files with 24 additions and 1 deletions
  1. 17 1
      debian/control
  2. 2 0
      debian/libhttp-parser2.1-dbg.lintian-overrides
  3. 5 0
      debian/rules

+ 17 - 1
debian/control

@@ -19,7 +19,7 @@ Description: parser for HTTP messages: development libraries and header files
  architecture, it only requires about 40 bytes of data per message stream (in
  a web server that is per connection).
  .
- This package contains development libraries and header files
+ This package contains development libraries and header files.
 
 Package: libhttp-parser2.1
 Architecture: any
@@ -32,3 +32,19 @@ Description: parser for HTTP messages written in C
  it does not buffer data, it can be interrupted at anytime. Depending on your
  architecture, it only requires about 40 bytes of data per message stream (in
  a web server that is per connection).
+
+Package: libhttp-parser2.1-dbg
+Architecture: any
+Multi-Arch: same
+Section: debug
+Depends:
+    libhttp-parser2.1 (= ${binary:Version}),
+    ${misc:Depends}
+Description: debugging symbols for libhttp-parser2.1
+ It parses both requests and responses. The parser is designed to be used in
+ performance HTTP applications. It does not make any syscalls nor allocations,
+ it does not buffer data, it can be interrupted at anytime. Depending on your
+ architecture, it only requires about 40 bytes of data per message stream (in
+ a web server that is per connection).
+ .
+ This package contains the debugging symbols for libhttp-parser2.1.

+ 2 - 0
debian/libhttp-parser2.1-dbg.lintian-overrides

@@ -0,0 +1,2 @@
+# Upstread does not provide a changelog
+libhttp-parser2.1-dbg: no-upstream-changelog

+ 5 - 0
debian/rules

@@ -23,3 +23,8 @@ override_dh_auto_build:
 
 override_dh_makeshlibs:
 	dh_makeshlibs -V 'libhttp-parser2.1 (>=2.1)'
+
+override_dh_strip:
+	dh_strip --dbg-package=libhttp-parser2.1-dbg
+
+.PHONY: override_dh_strip override_dh_makeshlibs override_dh_auto_build