Skip to content

Commit

Permalink
iptables: Properly link against ip6tc
Browse files Browse the repository at this point in the history
Adding missing && in BUILD or it doesn't abort properly if
something fail.
  • Loading branch information
Ratler committed Jan 3, 2013
1 parent 25e34fc commit b446e79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions security/iptables/BUILD
@@ -1,5 +1,7 @@
(

patch_it $SOURCE2 1 &&

# save tables
if module_installed iptables ; then
iptables-save -c > /etc/config.d/iptables.sav
Expand All @@ -18,12 +20,12 @@
if [ -f /etc/config.d/iptables.sav ] ; then
cat /etc/config.d/iptables.sav | iptables-restore -c &&
rm /etc/config.d/iptables.sav
fi
fi &&

# add empty iptables file for flushing
if [ ! -f /etc/config.d/iptables-empty ]; then
cp $SCRIPT_DIRECTORY/files/iptables-empty /etc/config.d/iptables-empty
fi
fi &&
# little wrapper for systemd's usage
# todo: should be detected by our package-management (installwatch?)
# tho i guess nobody uses lunar without installed iptables..
Expand Down
7 changes: 5 additions & 2 deletions security/iptables/DETAILS
@@ -1,13 +1,16 @@
MODULE=iptables
VERSION=1.4.17
SOURCE=$MODULE-$VERSION.tar.bz2
SOURCE2=iptables-1.4.17-link_properly_with_ip6tc.patch
SOURCE_URL=ftp://ftp.netfilter.org/pub/$MODULE
SOURCE2_URL=$PATCH_URL
SOURCE_VFY=sha1:441cc487f1c92db17dbf496b4821246d032c84a8
SOURCE2_VFY=sha1:7ad0ebf9198151fc907c8f4213a74034bc0dd99b
WEB_SITE=http://www.netfilter.org
ENTERED=20010922
UPDATED=20121229
UPDATED=20130103
SHORT="Tool to create netfilter rules"
PSAFE=no
PSAFE=no

cat << EOF
iptables is built on top of netfilter: the new packet alteration
Expand Down

0 comments on commit b446e79

Please sign in to comment.