summaryrefslogtreecommitdiff
path: root/network/ipset/ipset.SlackBuild
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 /network/ipset/ipset.SlackBuild
parenta9210e3ce64d65980d48068292e93943545dcfa2 (diff)
downloadslackbuilds-68e925bef14149fa7c1804483651b3b7786753ae.tar.gz
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>
Diffstat (limited to 'network/ipset/ipset.SlackBuild')
-rw-r--r--network/ipset/ipset.SlackBuild35
1 files changed, 22 insertions, 13 deletions
diff --git a/network/ipset/ipset.SlackBuild b/network/ipset/ipset.SlackBuild
index f4e4fda601..277134e50e 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