From 211185594e0ab9d2ff6e6d80b1c5b269578b8b8d Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 20 Apr 2014 13:03:50 +0200 Subject: [PATCH] nftables: Build manpages. Add docbook2X and docbook-xsl as build dependencies to allow generation of the manpages. --- nftables/nftables.nm | 5 +- .../nftables-20140118-db2x_docbook2man.patch | 53 +++++++++++++++++++ 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 nftables/patches/nftables-20140118-db2x_docbook2man.patch diff --git a/nftables/nftables.nm b/nftables/nftables.nm index 82eabcff1..03030952f 100644 --- a/nftables/nftables.nm +++ b/nftables/nftables.nm @@ -6,7 +6,7 @@ name = nftables version = 0.100 snapshot = 20140412 -release = 1.%{snapshot} +release = 2.%{snapshot} thisapp = %{name}-%{snapshot} groups = Networking/Tools @@ -27,7 +27,8 @@ build autogen automake bison - docbook-dtds + docbook2X + docbook-xsl flex gmp-devel libtool diff --git a/nftables/patches/nftables-20140118-db2x_docbook2man.patch b/nftables/patches/nftables-20140118-db2x_docbook2man.patch new file mode 100644 index 000000000..efec20da6 --- /dev/null +++ b/nftables/patches/nftables-20140118-db2x_docbook2man.patch @@ -0,0 +1,53 @@ +diff -Nur nftables-20140118.orig/configure nftables-20140118/configure +--- nftables-20140118.orig/configure 2014-01-17 22:28:04.000000000 -0700 ++++ nftables-20140118/configure 2014-01-18 15:42:10.427000000 -0700 +@@ -3310,8 +3310,8 @@ + rm -f conftest.sed + + +-# Extract the first word of "docbook2x-man", so it can be a program name with args. +-set dummy docbook2x-man; ac_word=$2 ++# Extract the first word of "db2x_docbook2man", so it can be a program name with args. ++set dummy db2x_docbook2man; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 + $as_echo_n "checking for $ac_word... " >&6; } + if test "${ac_cv_prog_CONFIG_MAN+set}" = set; then : +@@ -3350,8 +3350,8 @@ + + if test "$CONFIG_MAN" != "y" + then +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: docbookx2-man not found, no manpages will be built" >&5 +-$as_echo "$as_me: WARNING: docbookx2-man not found, no manpages will be built" >&2;} ++ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: db2x_docbook2man not found, no manpages will be built" >&5 ++$as_echo "$as_me: WARNING: db2x_docbook2man not found, no manpages will be built" >&2;} + fi + + # Extract the first word of "db2pdf", so it can be a program name with args. +diff -Nur nftables-20140118.orig/configure.ac nftables-20140118/configure.ac +--- nftables-20140118.orig/configure.ac 2014-01-17 22:28:00.000000000 -0700 ++++ nftables-20140118/configure.ac 2014-01-18 15:42:24.483000000 -0700 +@@ -25,10 +25,10 @@ + AC_PROG_INSTALL + AC_PROG_SED + +-AC_CHECK_PROG(CONFIG_MAN, docbook2x-man, y, n) ++AC_CHECK_PROG(CONFIG_MAN, db2x_docbook2man, y, n) + if test "$CONFIG_MAN" != "y" + then +- AC_MSG_WARN([docbookx2-man not found, no manpages will be built]) ++ AC_MSG_WARN([db2x_docbook2man not found, no manpages will be built]) + fi + + AC_CHECK_PROG(CONFIG_PDF, db2pdf, y, n) +diff -Nur nftables-20140118.orig/Makefile.rules.in nftables-20140118/Makefile.rules.in +--- nftables-20140118.orig/Makefile.rules.in 2014-01-17 22:28:00.000000000 -0700 ++++ nftables-20140118/Makefile.rules.in 2014-01-18 15:27:45.759000000 -0700 +@@ -37,7 +37,7 @@ + + %.8: %.xml $(makedeps) + @echo -e " MAN\t\t$@" +- (cd $(SUBDIR); docbook2x-man ../$<) ++ (cd $(SUBDIR); db2x_docbook2man ../$<) + + %.pdf: %.xml $(makedeps) + @echo -e " PDF\t\t$@" -- 2.39.5