Blame SOURCES/ebtables-2.0.10-lockdirfix.patch

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