netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add --with-kernel-includes configure option to libnetfilter_queue
@ 2009-01-20 16:30 Bart De Schuymer
  2009-01-20 16:49 ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Bart De Schuymer @ 2009-01-20 16:30 UTC (permalink / raw)
  To: netfilter-devel

Hi,

This adds the --with-kernel-includes configure option to
libnetfilter_queue and creates a README. This option allows compiling
with kernel headers not located at /usr/include.

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>


--- libnetfilter_queue_snapshot/configure.in.old	2009-01-20 15:30:31.000000000 +0100
+++ libnetfilter_queue_snapshot/configure.in	2009-01-20 15:30:46.000000000 +0100
@@ -19,14 +19,37 @@ esac
 
 dnl Dependencies
 LIBNFNETLINK_REQUIRED=0.0.38
- 
+
 PKG_CHECK_MODULES(LIBNFNETLINK, libnfnetlink >= $LIBNFNETLINK_REQUIRED,,
 	AC_MSG_ERROR(Cannot find libnfnetlink >= $LIBNFNETLINK_REQUIRED))
- 
-CFLAGS="$CFLAGS $LIBNFNETLINK_CFLAGS"
+
 LIBNFQUEUE_LIBS="$LIBNFNETLINK_LIBS"
- 
+
 AC_SUBST(LIBNFQUEUE_LIBS)
 
+dnl Allows compiling the library with kernel include headers not located
+dnl at /usr/include
+AC_ARG_WITH([kernel-includes],
+    [AS_HELP_STRING([--with-kernel-includes=PATH],
+    [Path to kernel source include files @<:@default=/usr/include@:>@])],
+    [
+    if test x$withval = xyes -o x$withval = x ; then
+	AC_MSG_ERROR(--with-kernel-includes must be given the path to your kernel source include files.)
+    fi
+    if ! test -d $withval ; then
+	AC_MSG_ERROR(The --with-kernel-includes path $withval is not a directory.)
+    fi
+    if ! test -d $withval/linux ; then
+	AC_MSG_ERROR(The --with-kernel-includes directory $withval must contain the directory 'linux'.)
+    fi
+    if ! test -r $withval/linux ; then
+	AC_MSG_ERROR(You must have read permissions for the kernel source include files.)
+    fi
+    KERNEL_INCLUDES=`(cd $withval; /bin/pwd)`
+    TMP_CFLAGS_OTHER=`$PKG_CONFIG libnfnetlink --cflags-only-other`
+    TMP_CFLAGS_I=`$PKG_CONFIG libnfnetlink --cflags-only-I`
+    CFLAGS="$CFLAGS $TMP_CFLAGS_OTHER -I$KERNEL_INCLUDES $TMP_CFLAGS_I"],
+    CFLAGS="$CFLAGS $LIBNFNETLINK_CFLAGS")
+
 dnl Output the makefiles
 AC_OUTPUT(Makefile include/Makefile include/libnetfilter_queue/Makefile src/Makefile utils/Makefile libnetfilter_queue.pc doxygen.cfg)
--- libnetfilter_queue_snapshot/README.old	2009-01-20 15:30:40.000000000 +0100
+++ libnetfilter_queue_snapshot/README	2009-01-20 15:31:11.000000000 +0100
@@ -0,0 +1,45 @@
+libnetfilter_queue - userspace library for handling queued network packets
+(C) 2005-2009 Netfilter Core Team <coreteam@netfilter.org>
+===========================================================================
+
+What is netfilter_queue?
+
+netfilter_queue enables the kernel packet filter to queue network packets
+to userspace, using the nfnetlink transport layer. These packets can then be
+inspected and/or altered by a userspace program and reinjected in the kernel
+network stack.
+
+
+What is libnetfilter_queue?
+
+libnetfilter_queue is a userspace library providing an API to packets that
+have been queued by the kernel packet filter. It is part of a system that
+deprecates the old ip_queue / libipq mechanism. libnetfilter_queue has been
+previously known as libnfnetlink_queue.
+
+
+Prerequisites for libnetfilter_queue
+
+libnetfilter_queue requires libnfnetlink and a kernel that includes the
+nfnetlink_queue subsystem (i.e. 2.6.14 or later).
+You can specify the location of your kernel sources using the
+"--with-kernel-includes" configure option.
+
+
+Where can I find documentation?
+
+At the moment, you will have to RTFS.  Sorry, but we have barely enough
+manpower to keep development ongoing.  If you want to contribute documentation,
+please contact us.
+
+
+It has bugs.  Where do I report them?
+
+Please report all libnetfilter_queue bugs to https://bugzilla.netfilter.org/,
+using the "libnetfilter_queue" Product.
+
+
+Where do I get support?
+
+The netfilter@vger.kernel.org and netfilter-devel@vger.kernel.org
+mailinglists serve as support forum.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] add --with-kernel-includes configure option to libnetfilter_queue
@ 2009-01-20 16:33 Bart De Schuymer
  0 siblings, 0 replies; 5+ messages in thread
From: Bart De Schuymer @ 2009-01-20 16:33 UTC (permalink / raw)
  To: netfilter-devel

Hi,

This adds the --with-kernel-includes configure option to
libnetfilter_log and creates a README. This option allows compiling
with kernel headers not located at /usr/include.

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>


--- libnetfilter_log-0.0.15/configure.in.old	2009-01-19 17:31:47.000000000 +0100
+++ libnetfilter_log-0.0.15/configure.in	2009-01-19 17:41:15.000000000 +0100
@@ -20,15 +20,38 @@ esac
 
 dnl Dependencies
 LIBNFNETLINK_REQUIRED=0.0.39
- 
+
 PKG_CHECK_MODULES(LIBNFNETLINK, libnfnetlink >= $LIBNFNETLINK_REQUIRED,,
 	AC_MSG_ERROR(Cannot find libnfnetlink >= $LIBNFNETLINK_REQUIRED))
 
-CFLAGS="$CFLAGS $LIBNFNETLINK_CFLAGS"
 LIBNFLOG_LIBS="$LIBNFNETLINK_LIBS"
- 
+
 AC_SUBST(LIBNFLOG_LIBS)
 
+dnl Allows compiling the library with kernel include headers not located
+dnl at /usr/include
+AC_ARG_WITH([kernel-includes],
+    [AS_HELP_STRING([--with-kernel-includes=PATH],
+    [Path to kernel source include files @<:@default=/usr/include@:>@])],
+    [
+    if test x$withval = xyes -o x$withval = x ; then
+	AC_MSG_ERROR(--with-kernel-includes must be given the path to your kernel source include files.)
+    fi
+    if ! test -d $withval ; then
+	AC_MSG_ERROR(The --with-kernel-includes path $withval is not a directory.)
+    fi
+    if ! test -d $withval/linux ; then
+	AC_MSG_ERROR(The --with-kernel-includes directory $withval must contain the directory 'linux'.)
+    fi
+    if ! test -r $withval/linux ; then
+	AC_MSG_ERROR(You must have read permissions for the kernel source include files.)
+    fi
+    KERNEL_INCLUDES=`(cd $withval; /bin/pwd)`
+    TMP_CFLAGS_OTHER=`$PKG_CONFIG libnfnetlink --cflags-only-other`
+    TMP_CFLAGS_I=`$PKG_CONFIG libnfnetlink --cflags-only-I`
+    CFLAGS="$CFLAGS $TMP_CFLAGS_OTHER -I$KERNEL_INCLUDES $TMP_CFLAGS_I"],
+    CFLAGS="$CFLAGS $LIBNFNETLINK_CFLAGS")
+
 dnl Output the makefile
 AC_OUTPUT(Makefile src/Makefile include/Makefile include/libnetfilter_log/Makefile utils/Makefile libnetfilter_log.pc)
 
--- libnetfilter_log-0.0.15/README.old	2009-01-19 17:58:57.000000000 +0100
+++ libnetfilter_log-0.0.15/README	2009-01-20 14:59:14.000000000 +0100
@@ -0,0 +1,44 @@
+libnetfilter_log - userspace library for logging network packets
+(C) 2005-2009 Netfilter Core Team <coreteam@netfilter.org>
+===========================================================================
+
+What is netfilter_log?
+
+netfilter_log enables the kernel packet filter to queue copies of network
+packets to userspace for inspection, using the nfnetlink transport layer.
+
+
+What is libnetfilter_log?
+
+libnetfilter_log is a userspace library providing an interface to packets
+that have been logged by the kernel packet filter. It is part of a system
+that deprecates the old syslog/dmesg based packet logging. This library has
+been previously known as libnfnetlink_log.
+libnetfilter_log is used by ulogd2.
+
+
+Prerequisites for libnetfilter_log
+
+libnetfilter_log requires libnfnetlink and a kernel that includes the
+nfnetlink_log subsystem (i.e. 2.6.14 or later).
+You can specify the location of your kernel sources using the
+"--with-kernel-includes" configure option.
+
+
+Where can I find documentation?
+
+At the moment, you will have to RTFS.  Sorry, but we have barely enough
+manpower to keep development ongoing.  If you want to contribute documentation,
+please contact us.
+
+
+It has bugs.  Where do I report them?
+
+Please report all libnetfilter_log bugs to https://bugzilla.netfilter.org/,
+using the "libnetfilter_log" Product.
+
+
+Where do I get support?
+
+The netfilter@vger.kernel.org and netfilter-devel@vger.kernel.org
+mailinglists serve as support forum.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add --with-kernel-includes configure option to libnetfilter_queue
  2009-01-20 16:30 [PATCH] add --with-kernel-includes configure option to libnetfilter_queue Bart De Schuymer
@ 2009-01-20 16:49 ` Jan Engelhardt
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Engelhardt @ 2009-01-20 16:49 UTC (permalink / raw)
  To: Bart De Schuymer; +Cc: netfilter-devel


On Tuesday 2009-01-20 17:30, Bart De Schuymer wrote:
>
> +dnl Allows compiling the library with kernel include headers not located
> +dnl at /usr/include
> +AC_ARG_WITH([kernel-includes],
> +    [AS_HELP_STRING([--with-kernel-includes=PATH],
> +    [Path to kernel source include files @<:@default=/usr/include@:>@])],
> +    [
> +    if test x$withval = xyes -o x$withval = x ; then
> +	AC_MSG_ERROR(--with-kernel-includes must be given the path to your
> kernel source include files.)
> +    fi
> +    if ! test -d $withval ; then

I would say this should be
	if test ! -d "$withval"

similarly below and for the other patches.

> +    if ! test -d $withval/linux ; then
> +    if ! test -r $withval/linux ; then

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] add --with-kernel-includes configure option to libnetfilter_queue
@ 2009-01-24 11:17 Bart De Schuymer
  2009-01-26 15:35 ` Patrick McHardy
  0 siblings, 1 reply; 5+ messages in thread
From: Bart De Schuymer @ 2009-01-24 11:17 UTC (permalink / raw)
  To: netfilter-devel

Hi,

[This is a rediff which includes support for directories with
spaces.]


This adds the --with-kernel-includes configure option to
libnetfilter_queue and adds a README. This option allows compiling
with kernel headers not located at /usr/include.

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>


--- libnetfilter_queue_snapshot/configure.in.old	2009-01-24 11:54:41.000000000 +0100
+++ libnetfilter_queue_snapshot/configure.in	2009-01-24 12:00:40.000000000 +0100
@@ -19,14 +19,37 @@ esac
 
 dnl Dependencies
 LIBNFNETLINK_REQUIRED=0.0.38
- 
+
 PKG_CHECK_MODULES(LIBNFNETLINK, libnfnetlink >= $LIBNFNETLINK_REQUIRED,,
 	AC_MSG_ERROR(Cannot find libnfnetlink >= $LIBNFNETLINK_REQUIRED))
- 
-CFLAGS="$CFLAGS $LIBNFNETLINK_CFLAGS"
+
 LIBNFQUEUE_LIBS="$LIBNFNETLINK_LIBS"
- 
+
 AC_SUBST(LIBNFQUEUE_LIBS)
 
+dnl Allows compiling the library with kernel include headers not located
+dnl at /usr/include
+AC_ARG_WITH([kernel-includes],
+    [AS_HELP_STRING([--with-kernel-includes=PATH],
+    [Path to kernel source include files @<:@default=/usr/include@:>@])],
+    [
+    if test "x$withval" = xyes -o "x$withval" = x ; then
+	AC_MSG_ERROR(--with-kernel-includes must be given the path to your kernel source include files.)
+    fi
+    if ! test -d "$withval" ; then
+	AC_MSG_ERROR(The --with-kernel-includes path $withval is not a directory.)
+    fi
+    if ! test -d "$withval/linux" ; then
+	AC_MSG_ERROR(The --with-kernel-includes directory $withval must contain the directory 'linux'.)
+    fi
+    if ! test -r "$withval/linux" ; then
+	AC_MSG_ERROR(You must have read permissions for the kernel source include files.)
+    fi
+    KERNEL_INCLUDES=`(cd "$withval"; /bin/pwd)`
+    TMP_CFLAGS_OTHER=`$PKG_CONFIG libnfnetlink --cflags-only-other`
+    TMP_CFLAGS_I=`$PKG_CONFIG libnfnetlink --cflags-only-I`
+    CFLAGS="$CFLAGS $TMP_CFLAGS_OTHER -I\"$KERNEL_INCLUDES\" $TMP_CFLAGS_I"],
+    CFLAGS="$CFLAGS $LIBNFNETLINK_CFLAGS")
+
 dnl Output the makefiles
 AC_OUTPUT(Makefile include/Makefile include/libnetfilter_queue/Makefile src/Makefile utils/Makefile libnetfilter_queue.pc doxygen.cfg)
--- libnetfilter_queue_snapshot/README.old	2009-01-24 11:54:59.000000000 +0100
+++ libnetfilter_queue_snapshot/README	2009-01-24 11:55:07.000000000 +0100
@@ -0,0 +1,45 @@
+libnetfilter_queue - userspace library for handling queued network packets
+(C) 2005-2009 Netfilter Core Team <coreteam@netfilter.org>
+===========================================================================
+
+What is netfilter_queue?
+
+netfilter_queue enables the kernel packet filter to queue network packets
+to userspace, using the nfnetlink transport layer. These packets can then be
+inspected and/or altered by a userspace program and reinjected in the kernel
+network stack.
+
+
+What is libnetfilter_queue?
+
+libnetfilter_queue is a userspace library providing an API to packets that
+have been queued by the kernel packet filter. It is part of a system that
+deprecates the old ip_queue / libipq mechanism. libnetfilter_queue has been
+previously known as libnfnetlink_queue.
+
+
+Prerequisites for libnetfilter_queue
+
+libnetfilter_queue requires libnfnetlink and a kernel that includes the
+nfnetlink_queue subsystem (i.e. 2.6.14 or later).
+You can specify the location of your kernel sources using the
+"--with-kernel-includes" configure option.
+
+
+Where can I find documentation?
+
+At the moment, you will have to RTFS.  Sorry, but we have barely enough
+manpower to keep development ongoing.  If you want to contribute documentation,
+please contact us.
+
+
+It has bugs.  Where do I report them?
+
+Please report all libnetfilter_queue bugs to https://bugzilla.netfilter.org/,
+using the "libnetfilter_queue" Product.
+
+
+Where do I get support?
+
+The netfilter@vger.kernel.org and netfilter-devel@vger.kernel.org
+mailinglists serve as support forum.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add --with-kernel-includes configure option to libnetfilter_queue
  2009-01-24 11:17 Bart De Schuymer
@ 2009-01-26 15:35 ` Patrick McHardy
  0 siblings, 0 replies; 5+ messages in thread
From: Patrick McHardy @ 2009-01-26 15:35 UTC (permalink / raw)
  To: Bart De Schuymer; +Cc: netfilter-devel

Bart De Schuymer wrote:
> This adds the --with-kernel-includes configure option to
> libnetfilter_queue and adds a README. This option allows compiling
> with kernel headers not located at /usr/include.

Since my autoconf knowledge is very limited, I'll wait for Jan
to state an opinion on these patches.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-26 15:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20 16:30 [PATCH] add --with-kernel-includes configure option to libnetfilter_queue Bart De Schuymer
2009-01-20 16:49 ` Jan Engelhardt
  -- strict thread matches above, loose matches on Subject: below --
2009-01-20 16:33 Bart De Schuymer
2009-01-24 11:17 Bart De Schuymer
2009-01-26 15:35 ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).