Blame SOURCES/ebtables-2.0.10-lockdirfix.patch

6e3d83
diff -up ebtables-v2.0.10-4/ebtables.8.lockdirfix ebtables-v2.0.10-4/ebtables.8
6e3d83
--- ebtables-v2.0.10-4/ebtables.8.lockdirfix	2016-01-18 11:13:21.707069702 -0500
6e3d83
+++ ebtables-v2.0.10-4/ebtables.8	2016-01-18 11:13:40.554953365 -0500
6e3d83
@@ -1103,7 +1103,7 @@ arp message and the hardware address len
6e3d83
 .br
6e3d83
 .SH FILES
6e3d83
 .I /etc/ethertypes
6e3d83
-.I /var/lib/ebtables/lock
6e3d83
+.I /run/ebtables.lock
6e3d83
 .SH ENVIRONMENT VARIABLES
6e3d83
 .I EBTABLES_ATOMIC_FILE
6e3d83
 .SH MAILINGLISTS
6e3d83
diff -up ebtables-v2.0.10-4/INSTALL.lockdirfix ebtables-v2.0.10-4/INSTALL
6e3d83
--- ebtables-v2.0.10-4/INSTALL.lockdirfix	2016-01-18 11:15:31.458268826 -0500
6e3d83
+++ ebtables-v2.0.10-4/INSTALL	2016-01-18 11:15:53.890130367 -0500
6e3d83
@@ -31,7 +31,7 @@ WHAT GETS INSTALLED AND WHAT OPTIONS ARE
6e3d83
   copied to /etc/rc.d/init.d (change with option INITDIR)
6e3d83
 - The ebtables configuration file (ebtables-config) is copied to /etc/sysconfig
6e3d83
 - ebtables can use a lock file to enable concurrent execution of the ebtables
6e3d83
-  tool. The standard location of the lock file is /var/lib/ebtables/lock.
6e3d83
+  tool. The standard location of the lock file is /run/ebtables.lock.
6e3d83
   Include LOCKFILE=<<path-to-file>> if you want to use another file.
6e3d83
 
6e3d83
 That's all
6e3d83
diff -up ebtables-v2.0.10-4/libebtc.c.lockdirfix ebtables-v2.0.10-4/libebtc.c
6e3d83
--- ebtables-v2.0.10-4/libebtc.c.lockdirfix	2016-01-18 11:12:14.347485472 -0500
6e3d83
+++ ebtables-v2.0.10-4/libebtc.c	2016-01-18 11:13:06.515163472 -0500
6e3d83
@@ -134,8 +134,8 @@ void ebt_list_extensions()
6e3d83
 }
6e3d83
 
6e3d83
 #ifndef LOCKFILE
6e3d83
-#define LOCKDIR "/var/lib/ebtables"
6e3d83
-#define LOCKFILE LOCKDIR"/lock"
6e3d83
+#define LOCKDIR "/run"
6e3d83
+#define LOCKFILE LOCKDIR"/ebtables.lock"
6e3d83
 #endif
6e3d83
 static int lockfd = -1, locked;
6e3d83
 int use_lockfd;
6e3d83
diff -up ebtables-v2.0.10-4/Makefile.lockdirfix ebtables-v2.0.10-4/Makefile
6e3d83
--- ebtables-v2.0.10-4/Makefile.lockdirfix	2016-01-18 11:14:10.715767201 -0500
6e3d83
+++ ebtables-v2.0.10-4/Makefile	2016-01-18 11:15:20.506336425 -0500
6e3d83
@@ -5,7 +5,7 @@ PROGRELEASE:=4
6e3d83
 PROGVERSION_:=2.0.10
6e3d83
 PROGVERSION:=$(PROGVERSION_)-$(PROGRELEASE)
6e3d83
 PROGDATE:=December\ 2011
6e3d83
-LOCKFILE?=/var/lib/ebtables/lock
6e3d83
+LOCKFILE?=/run/ebtables.lock
6e3d83
 LOCKDIR:=$(shell echo $(LOCKFILE) | sed 's/\(.*\)\/.*/\1/')/
6e3d83
 
6e3d83
 # default paths