Make sure that the installed manpages are built from the sources
This commit is contained in:
parent
b89e968183
commit
982994a323
16
debian/control
vendored
16
debian/control
vendored
|
@ -2,14 +2,16 @@ Source: nut
|
|||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: Laurent Bigonville <bigon@debian.org>
|
||||
Build-Depends: debhelper (>= 12),
|
||||
Build-Depends: asciidoc <!nodoc>,
|
||||
debhelper (>= 12),
|
||||
dh-python,
|
||||
docbook-xml <!nodoc>,
|
||||
libavahi-client-dev,
|
||||
libavahi-core-dev,
|
||||
libfreeipmi-dev [!hurd-i386],
|
||||
libgd-dev | libgd2-xpm-dev | libgd2-noxpm-dev,
|
||||
libipmimonitoring-dev [!hurd-i386],
|
||||
libi2c-dev [linux-any],
|
||||
libipmimonitoring-dev [!hurd-i386],
|
||||
libltdl-dev,
|
||||
libmodbus-dev,
|
||||
libneon27-gnutls-dev | libneon27-dev,
|
||||
|
@ -18,12 +20,12 @@ Build-Depends: debhelper (>= 12),
|
|||
libsnmp-dev | libsnmp9-dev,
|
||||
libusb-1.0-0-dev,
|
||||
libwrap0-dev,
|
||||
python3:any
|
||||
Build-Depends-Indep: asciidoc <!nodoc>,
|
||||
asciidoc-dblatex <!nodoc>,
|
||||
libxml2-utils <!nodoc>,
|
||||
python3:any,
|
||||
xsltproc <!nodoc>
|
||||
Build-Depends-Indep: asciidoc-dblatex <!nodoc>,
|
||||
dblatex <!nodoc>,
|
||||
docbook-xsl <!nodoc>,
|
||||
libxml2-utils <!nodoc>
|
||||
docbook-xsl <!nodoc>
|
||||
Standards-Version: 4.6.0
|
||||
Homepage: https://networkupstools.org/
|
||||
Vcs-Browser: https://salsa.debian.org/debian/nut
|
||||
|
|
12
debian/rules
vendored
12
debian/rules
vendored
|
@ -32,9 +32,15 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix= \
|
|||
--with-systemdtmpfilesdir=/usr/lib/tmpfiles.d
|
||||
|
||||
|
||||
# only build documentation if asciidoc is installed
|
||||
ifneq ($(shell which asciidoc),)
|
||||
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
|
||||
# only build the full documentation if nut-doc is built
|
||||
ifneq ($(filter nut-doc,$(shell dh_listpackages)),)
|
||||
DEB_CONFIGURE_EXTRA_FLAGS+=--with-doc=man,html-single,html-chunked,pdf
|
||||
else
|
||||
DEB_CONFIGURE_EXTRA_FLAGS+=--with-doc=man
|
||||
endif
|
||||
else
|
||||
DEB_CONFIGURE_EXTRA_FLAGS+=--with-doc=no
|
||||
endif
|
||||
|
||||
%:
|
||||
|
@ -108,7 +114,7 @@ override_dh_auto_install-arch:
|
|||
install -D -m 644 debian/source_nut.py $(CURDIR)/debian/tmp/usr/share/apport/package-hooks/source_nut-client.py
|
||||
|
||||
override_dh_auto_install-indep:
|
||||
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
|
||||
ifneq ($(filter nut-doc,$(shell dh_listpackages)),)
|
||||
#install documentation
|
||||
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf
|
||||
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html
|
||||
|
|
Loading…
Reference in New Issue
Block a user