debian: Add libosmoctrl-doc sub-package

This fixes the debian package builds for libosmocore.git

Change-Id: I454e3c0175ab5a89e8925e036a3644299367df0f
diff --git a/debian/control b/debian/control
index 912582b..1de0ceb 100644
--- a/debian/control
+++ b/debian/control
@@ -261,6 +261,21 @@
  .
  The libosmoctrl library in particular contains an SNMP-like status interface.
 
+Package: libosmoctrl-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         libosmoctrl0,
+         libjs-jquery
+Description: Documentation for the Osmocom CTRL library
+ This is part of the libosmocore "meta"-library. The libosmocore library
+ contains various utility functions that were originally developed as part of
+ the OpenBSC project, but which are of a more generic nature and thus useful to
+ (at least) other programs that are developed in the sphere of Free Software /
+ Open Source mobile communication.
+ .
+ This package contains the documentation for the libosmoctrl library.
+
 Package: libosmosim0
 Section: libs
 Architecture: any
diff --git a/debian/libosmoctrl-doc.doc-base b/debian/libosmoctrl-doc.doc-base
new file mode 100644
index 0000000..173d157
--- /dev/null
+++ b/debian/libosmoctrl-doc.doc-base
@@ -0,0 +1,7 @@
+Document: libosmoctrl-doc
+Title: Documentation for the libosmoctrl library
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libosmocore/ctrl/html/index.html
+Files: /usr/share/doc/libosmocore/ctrl/html/*.html
diff --git a/debian/libosmoctrl-doc.install b/debian/libosmoctrl-doc.install
new file mode 100644
index 0000000..c7afaf1
--- /dev/null
+++ b/debian/libosmoctrl-doc.install
@@ -0,0 +1 @@
+usr/share/doc/libosmocore/ctrl/
diff --git a/debian/rules b/debian/rules
index 2399b01..6eb7346 100755
--- a/debian/rules
+++ b/debian/rules
@@ -52,6 +52,7 @@
 	$(RM) tests/testsuite
 	$(RM) -r doc/codec/
 	$(RM) -r doc/core/
+	$(RM) -r doc/ctrl/
 	$(RM) -r doc/gsm/
 	$(RM) -r doc/gb/
 	$(RM) -r doc/vty/html/