aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-18 15:21:51 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-18 19:33:39 -0500
commit68e925bef14149fa7c1804483651b3b7786753ae (patch)
tree7c2ef399735969de5719c0ddb949a7c852aae94b
parenta9210e3ce64d65980d48068292e93943545dcfa2 (diff)
network/ipset: Updated for version 6.13.
Changed build procedure and kernel modules installation, added a note about it in the README Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--network/ipset/README5
-rw-r--r--network/ipset/ipset.SlackBuild35
-rw-r--r--network/ipset/ipset.info8
3 files changed, 31 insertions, 17 deletions
diff --git a/network/ipset/README b/network/ipset/README
index a1d3332d483d0..360bafb722c02 100644
--- a/network/ipset/README
+++ b/network/ipset/README
@@ -17,3 +17,8 @@ then ipset may be the proper tool for you.
IP sets was written by Jozsef Kadlecsik and it is based on ippool
by Joakim Axelsson, Patrick Schaaf and Martin Josefsson.
+
+IMPORTANT: This package creates some kernel modules, and in
+particular net/netfilter/xt_set.ko that's already included in the
+Slackware stock kernel: if you remove this, reinstall your kernel
+modules.
diff --git a/network/ipset/ipset.SlackBuild b/network/ipset/ipset.SlackBuild
index f4e4fda601b49..277134e50e1c4 100644
--- a/network/ipset/ipset.SlackBuild
+++ b/network/ipset/ipset.SlackBuild
@@ -4,7 +4,7 @@
# Written by Michal Bialozor <bialyy@o2.pl>
PRGNAM=ipset
-VERSION=4.5
+VERSION=6.13
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,25 +46,34 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-#Fix prefix and libdir
-sed \
- -e "/^PREFIX/s|/usr/local|/usr|" \
- -e "/^LIBDIR/s|/lib|/lib$LIBDIRSUFFIX|" \
- -i Makefile
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
make
-make binaries_install DESTDIR=$PKG
+make install DESTDIR=$PKG
+
+make modules
+mkdir -p $PKG/lib/modules/$(uname -r)/net/netfilter/ipset
+install -m 0644 -D kernel/net/netfilter/ipset/*.ko \
+ $PKG/lib/modules/$(uname -r)/net/netfilter/ipset
+install -m 0644 kernel/net/netfilter/xt_set.ko \
+ $PKG/lib/modules/$(uname -r)/net/netfilter/
+
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-mkdir -p $PKG/lib/modules/$(uname -r)/extra/ipset
-cp -a kernel/{ip_set*.ko,ipt_SET.ko,ipt_set.ko} \
- $PKG/lib/modules/$(uname -r)/extra/ipset
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- COPYING ChangeLog ChangeLog.ippool README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING ChangeLog* README UPGRADE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/ipset/ipset.info b/network/ipset/ipset.info
index 4ef297e7f49d0..e80d510d9d400 100644
--- a/network/ipset/ipset.info
+++ b/network/ipset/ipset.info
@@ -1,10 +1,10 @@
PRGNAM="ipset"
-VERSION="4.5"
+VERSION="6.13"
HOMEPAGE="http://ipset.netfilter.org"
-DOWNLOAD="http://ipset.netfilter.org/ipset-4.5.tar.bz2"
-MD5SUM="fafc5954083c877d3cedaff38b02754b"
+DOWNLOAD="http://ipset.netfilter.org/ipset-6.13.tar.bz2"
+MD5SUM="0b7f5db12a1852d9c31b1ec13d31ade1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="libmnl"
MAINTAINER="Michal Bialozor"
EMAIL="bialyy@o2.pl"