]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
nftables: Build manpages.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 20 Apr 2014 11:03:50 +0000 (13:03 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 20 Apr 2014 11:03:50 +0000 (13:03 +0200)
Add docbook2X and docbook-xsl as build dependencies to allow
generation of the manpages.

nftables/nftables.nm
nftables/patches/nftables-20140118-db2x_docbook2man.patch [new file with mode: 0644]

index 82eabcff17cb1feb4322d17c240a7cf144a6ca15..03030952fe63984c1463939ea8abfd0eb1582897 100644 (file)
@@ -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 (file)
index 0000000..efec20d
--- /dev/null
@@ -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$@"