Maintainer: Russ Allbery <rra@debian.org>
Uploaders: Sam Hartman <hartmans@debian.org>
Build-Depends: debhelper (>= 7), autoconf, automake, bison, comerr-dev,
- cpio, flex, libkrb5-dev, libncurses5-dev, libpam0g-dev, perl
+ cpio, dblatex, docbook-xsl, flex, libkrb5-dev, libncurses5-dev,
+ libpam0g-dev, libxml2-utils, perl, xsltproc
Standards-Version: 3.8.1
Homepage: http://www.openafs.org/
Vcs-Git: git://git.debian.org/git/pkg-k5-afs/openafs.git
package = openafs
srcpkg = openafs-modules-source
dkmspkg = openafs-modules-dkms
+DOCS = $(CURDIR)/debian/openafs-doc/usr/share/doc/openafs-doc
+
+# The path to the XSLT used to generate HTML from the DocBook source files.
+# This path is specific to different Linux distributions, so we have to pass
+# it into configure.
+HTML_XSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl
# The /usr/share/doc directory for these packages should be a symlink to
# /usr/share/doc/openafs-client. Any package on this list must depend on
--sysconfdir=/etc --libexecdir=/usr/lib \
--localstatedir=/var/lib --with-krb5-conf=/usr/bin/krb5-config \
--enable-supergroups --enable-largefile-fileserver \
- --enable-bos-new-config \
- --enable-debug --enable-lwp-debug \
+ --enable-bos-new-config --with-xslt-processor=xsltproc \
+ --with-html-xsl=$(HTML_XSL) --enable-debug --enable-lwp-debug \
$(DEBIAN_OPT_FLAGS) $(SYSTEM)
chmod a+x config.sub src/libafs/make_kbuild_makefile.pl \
src/config/make_vnode.pl
dh build --after configure
$(MAKE) libafs_tree
+ set -e; for d in AdminGuide QuickStartUnix UserGuide ; do \
+ $(MAKE) -C doc/xml/$$d all ; \
+ done
touch $@
clean:
[ ! -f doc/man-pages/pod1/afs-up.pod ] \
|| mv doc/man-pages/pod1/afs-up.pod doc/man-pages/pod1/up.pod
+ set -e; for d in AdminGuide QuickStartUnix UserGuide ; do \
+ [ ! -f doc/xml/$$d/Makefile ] || $(MAKE) -C doc/xml/$$d clean ; \
+ done
dh clean
install: install-stamp
dh_installinit -popenafs-client -r -- defaults 25 20
dh_installinit -popenafs-fileserver -r
+ mkdir -p $(DOCS)/html
+ cp doc/xml/*.gif doc/xml/*.html $(DOCS)/html/
+ set -e; for d in AdminGuide QuickStartUnix UserGuide ; do \
+ mkdir $(DOCS)/html/$$d ; \
+ cp doc/xml/$$d/*.html doc/xml/$$d/*.png $(DOCS)/html/$$d/ ; \
+ cp doc/xml/$$d/*.pdf $(DOCS)/ ; \
+ done
+
install -d debian/$(srcpkg)/usr/src/modules/$(package)
cd libafs_tree && find . -print | \
cpio -admp $(CURDIR)/debian/$(srcpkg)/usr/src/modules/$(package)