Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

firestarter; add patch to fix path to conntrack table in /proc

  • Loading branch information...
commit 10c48daec07b1a54f352145bef5dad665b3980e3 1 parent d28b81d
@fukawi2 authored
Showing with 18 additions and 2 deletions.
  1. +11 −0 firestarter/30-conntrack-proc-path.patch
  2. +7 −2 firestarter/PKGBUILD
View
11 firestarter/30-conntrack-proc-path.patch
@@ -0,0 +1,11 @@
+--- firestarter-1.0.3/src/statusview.c.ORIG 2012-05-29 16:58:05.204114870 +1000
++++ firestarter-1.0.3/src/statusview.c 2012-05-29 16:59:01.914116450 +1000
+@@ -32,7 +32,7 @@
+
+ #define DEV_FILE "/proc/net/dev"
+ #define TCP_FILE "/proc/net/tcp"
+-#define CONNTRACK_FILE "/proc/net/ip_conntrack"
++#define CONNTRACK_FILE "/proc/net/nf_conntrack" /* http://www.kernelhardware.org/firestarter-on-centos-6/ */
+ #define CONNTRACK_TTL 10 /* Number of refresh cycles a non-established connection is kept in the GUI */
+ #define REFRESH_RATE 1 /* Time in seconds between updates */
+ #define HISTORY_LENGTH 5 /* Number of samples to use when averaging the traffic rate */
View
9 firestarter/PKGBUILD
@@ -13,7 +13,7 @@
pkgname=firestarter
pkgver=1.0.3
-pkgrel=12
+pkgrel=13
pkgdesc="GUI fron-end for iptables"
arch=('i686' 'x86_64')
license=('GPL2')
@@ -27,6 +27,7 @@ source=("http://downloads.sourceforge.net/firestarter/$pkgname-$pkgver.tar.gz"
'12_firestarter_transparent_icon.patch'
'18_fix_memleak.patch'
'20-net-tools-ifconfig-format-change.patch'
+ '30-conntrack-proc-path.patch'
'events-log-fix.patch'
'menu-toolbar-icons-fix.patch')
md5sums=('f46860a9e16dac4b693bd05f16370b03'
@@ -34,6 +35,7 @@ md5sums=('f46860a9e16dac4b693bd05f16370b03'
'b657c53280b30f1b4976ec01eff085e8'
'b31efd1caf430d979e26abb2618a3659'
'7bcd40b3690e3833078ea31a8a9935f1'
+ '56d77ceb2a6b249c01922ccc46b12eb6'
'acd91fefe00edb41dd38fcc91567707f'
'ea9cd9b92939c554b26ccdfe735a2d90')
@@ -53,7 +55,10 @@ build() {
# menu-toolbar-icons-fix.patch: fixed a couple menu and toolbar icons to follow GTK theme
patch -Np1 -i ../menu-toolbar-icons-fix.patch
-
+
+ # path to the conn track table in /proc has changed
+ patch -Np1 -i "$srcdir/30-conntrack-proc-path.patch"
+
# Configure, Build and Install to $pkgdir
export LDFLAGS='-lX11'
./configure \

0 comments on commit 10c48da

Please sign in to comment.
Something went wrong with that request. Please try again.