From: Ludwig Nussel <ludwig.nussel@suse.de>
To: netfilter-devel@vger.kernel.org
Subject: Re: [ANNOUNCE] ipset-2.3.2
Date: Thu, 3 Jul 2008 10:44:37 +0200 [thread overview]
Message-ID: <200807031044.37410.ludwig.nussel@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0807021449020.32444@blackhole.kfki.hu>
Jozsef Kadlecsik wrote:
> I'm happy to announce ipset-2.3.2. Besides cosmetic changes and cleanups,
> this release includes the sources of both the userspace tool and the
> kernel modules: you can install ipset wihtout patch-o-matic-ng. Please
> read the README file for the instructions on how to install ipset without
> pom-ng.
Ah, nice. I'd like to suggest to add the following patch. It
separates building the kernel modules and the user space parts. That
eases packaging for distributions as the kernel part has to be
compiled several times for different kernel flavors so the
integrated way is not really useful there :-)
Additionally IP_NF_SET_MAX and IP_NF_SET_HASHSIZE should be moved to
kernel/Kbuild for that purpose. Atm one has to extract them from the
Makefile and define them manually for the kernel module build pass.
btw is there a reason why the tarball has a date appended to the
release number? I just wonder whether the package version should be
2.3.2_20080702 or whether 2.3.2 suffices.
Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
---
Makefile | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 253498e..3b4abe1 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
######################################################################
ifndef KERNEL_DIR
-KERNEL_DIR=/usr/src/linux
+KERNEL_DIR=KERNEL_DIR=/lib/modules/$(shell uname -r)/build
endif
ifndef IP_NF_SET_MAX
IP_NF_SET_MAX=256
@@ -36,7 +36,11 @@ SHARED_LIBS=$(foreach T, $(SETTYPES),libipset_$(T).so)
INSTALL=$(DESTDIR)$(BINDIR)/ipset $(DESTDIR)$(MANDIR)/man8/ipset.8
INSTALL+=$(foreach T, $(SETTYPES), $(DESTDIR)$(LIBDIR)/ipset/libipset_$(T).so)
-all: $(PROGRAMS) $(SHARED_LIBS)
+all: ipset modules
+
+ipset: $(PROGRAMS) $(SHARED_LIBS)
+
+modules:
cd kernel; make -C $(KERNEL_DIR) M=`pwd` IP_NF_SET_MAX=$(IP_NF_SET_MAX) IP_NF_SET_HASHSIZE=$(IP_NF_SET_HASHSIZE) modules
.PHONY: tests
@@ -44,9 +48,9 @@ all: $(PROGRAMS) $(SHARED_LIBS)
tests:
cd tests; ./runtest.sh
-ipset_install: all $(INSTALL)
+ipset_install: ipset $(INSTALL)
-modules_install:
+modules_install: modules
cd kernel; make -C $(KERNEL_DIR) M=`pwd` modules_install
install: ipset_install modules_install
--
1.5.6
cu
Ludwig
--
(o_ Ludwig Nussel
//\
V_/_ http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
next prev parent reply other threads:[~2008-07-03 12:52 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 12:56 [ANNOUNCE] ipset-2.3.2 Jozsef Kadlecsik
2008-07-02 13:37 ` Krzysztof Oledzki
2008-07-02 13:46 ` Jozsef Kadlecsik
2008-07-02 13:57 ` Krzysztof Oledzki
2008-07-02 14:01 ` Jozsef Kadlecsik
2008-07-03 9:54 ` Jozsef Kadlecsik
2008-07-03 15:49 ` Krzysztof Oledzki
2008-07-03 18:17 ` G.W. Haywood
2008-07-03 21:38 ` Jozsef Kadlecsik
2008-07-02 13:52 ` Jan Engelhardt
2008-07-03 8:44 ` Ludwig Nussel [this message]
2008-07-03 9:09 ` Ludwig Nussel
2008-07-03 13:15 ` Jozsef Kadlecsik
2008-07-04 13:53 ` Ludwig Nussel
2008-07-04 14:01 ` Jan Engelhardt
2008-07-04 14:14 ` Ludwig Nussel
2008-07-04 17:01 ` Jan Engelhardt
2008-07-04 23:09 ` Jozsef Kadlecsik
2008-07-07 9:28 ` Jan Engelhardt
2008-07-07 9:28 ` Jan Engelhardt
2008-07-04 20:49 ` Jozsef Kadlecsik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200807031044.37410.ludwig.nussel@suse.de \
--to=ludwig.nussel@suse.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.