diff --git a/debian/control b/debian/control index 6fb34c084..8e0e07906 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,8 @@ Build-Depends: debhelper (>=9), pkg-config, autotools-dev, libosmocore-dev, - libosmo-netif-dev + libosmo-netif-dev, + osmo-gsm-manuals-dev Standards-Version: 3.9.8 Vcs-Git: git://git.osmocom.org/osmo-mgw.git Vcs-Browser: https://git.osmocom.org/osmo-mgw/ @@ -33,3 +34,12 @@ Architecture: any Multi-Arch: same Depends: libosmo-mgcp-client5 (= ${binary:Version}), ${misc:Depends} Description: libosmo-mgcp-client: Osmocom's Media Gateway Control Protocol client utilities + +Package: osmo-mgw-doc +Architecture: all +Section: doc +Priority: optional +Depends: ${misc:Depends} +Description: ${misc:Package} PDF documentation + Various manuals: user manual, VTY reference manual and/or + protocol/interface manuals. diff --git a/debian/osmo-mgw-doc.install b/debian/osmo-mgw-doc.install new file mode 100644 index 000000000..7cb07ada7 --- /dev/null +++ b/debian/osmo-mgw-doc.install @@ -0,0 +1 @@ +usr/share/doc/osmo-mgw-doc/*.pdf diff --git a/debian/rules b/debian/rules index d67243c43..d38898d81 100755 --- a/debian/rules +++ b/debian/rules @@ -30,6 +30,10 @@ override_dh_auto_test: dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) override_dh_auto_configure: - dh_auto_configure -- --with-systemdsystemunitdir=/lib/systemd/system + dh_auto_configure -- --with-systemdsystemunitdir=/lib/systemd/system --enable-manuals + +# Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers) +override_dh_compress: + dh_compress -X.pdf # See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg diff --git a/doc/manuals/Makefile.am b/doc/manuals/Makefile.am index 901cffac3..0faebf3f4 100644 --- a/doc/manuals/Makefile.am +++ b/doc/manuals/Makefile.am @@ -12,5 +12,6 @@ if BUILD_MANUALS VTY_REFERENCE = osmomgw-vty-reference.xml include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.vty-reference.inc + OSMO_REPOSITORY = osmo-mgw include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.common.inc endif