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
|
Section: admin
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Laurent Bigonville <bigon@debian.org>
|
Maintainer: Laurent Bigonville <bigon@debian.org>
|
||||||
Build-Depends: debhelper (>= 12),
|
Build-Depends: asciidoc <!nodoc>,
|
||||||
|
debhelper (>= 12),
|
||||||
dh-python,
|
dh-python,
|
||||||
|
docbook-xml <!nodoc>,
|
||||||
libavahi-client-dev,
|
libavahi-client-dev,
|
||||||
libavahi-core-dev,
|
libavahi-core-dev,
|
||||||
libfreeipmi-dev [!hurd-i386],
|
libfreeipmi-dev [!hurd-i386],
|
||||||
libgd-dev | libgd2-xpm-dev | libgd2-noxpm-dev,
|
libgd-dev | libgd2-xpm-dev | libgd2-noxpm-dev,
|
||||||
libipmimonitoring-dev [!hurd-i386],
|
|
||||||
libi2c-dev [linux-any],
|
libi2c-dev [linux-any],
|
||||||
|
libipmimonitoring-dev [!hurd-i386],
|
||||||
libltdl-dev,
|
libltdl-dev,
|
||||||
libmodbus-dev,
|
libmodbus-dev,
|
||||||
libneon27-gnutls-dev | libneon27-dev,
|
libneon27-gnutls-dev | libneon27-dev,
|
||||||
|
@ -18,12 +20,12 @@ Build-Depends: debhelper (>= 12),
|
||||||
libsnmp-dev | libsnmp9-dev,
|
libsnmp-dev | libsnmp9-dev,
|
||||||
libusb-1.0-0-dev,
|
libusb-1.0-0-dev,
|
||||||
libwrap0-dev,
|
libwrap0-dev,
|
||||||
python3:any
|
libxml2-utils <!nodoc>,
|
||||||
Build-Depends-Indep: asciidoc <!nodoc>,
|
python3:any,
|
||||||
asciidoc-dblatex <!nodoc>,
|
xsltproc <!nodoc>
|
||||||
|
Build-Depends-Indep: asciidoc-dblatex <!nodoc>,
|
||||||
dblatex <!nodoc>,
|
dblatex <!nodoc>,
|
||||||
docbook-xsl <!nodoc>,
|
docbook-xsl <!nodoc>
|
||||||
libxml2-utils <!nodoc>
|
|
||||||
Standards-Version: 4.6.0
|
Standards-Version: 4.6.0
|
||||||
Homepage: https://networkupstools.org/
|
Homepage: https://networkupstools.org/
|
||||||
Vcs-Browser: https://salsa.debian.org/debian/nut
|
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
|
--with-systemdtmpfilesdir=/usr/lib/tmpfiles.d
|
||||||
|
|
||||||
|
|
||||||
# only build documentation if asciidoc is installed
|
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
|
||||||
ifneq ($(shell which asciidoc),)
|
# 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
|
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
|
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
|
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:
|
override_dh_auto_install-indep:
|
||||||
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
|
ifneq ($(filter nut-doc,$(shell dh_listpackages)),)
|
||||||
#install documentation
|
#install documentation
|
||||||
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf
|
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf
|
||||||
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html
|
mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/html
|
||||||
|
|
Loading…
Reference in New Issue
Block a user