Blame SOURCES/ebtables-2.0.10-lockdirfix.patch

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