summaryrefslogtreecommitdiff
path: root/sys-apps/lnxhc/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/lnxhc/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/lnxhc/files')
-rw-r--r--sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch23
-rw-r--r--sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch43
2 files changed, 66 insertions, 0 deletions
diff --git a/sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch b/sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch
new file mode 100644
index 000000000000..89e184704857
--- /dev/null
+++ b/sys-apps/lnxhc/files/lnxhc-1.2-ifconfig-path.patch
@@ -0,0 +1,23 @@
+--- lnxhc-1.2/checks/net_hsi_outbound_errors/definitions
++++ lnxhc-1.2-patched/checks/net_hsi_outbound_errors/definitions
+@@ -9,7 +9,7 @@
+ default = "1"
+
+ [sysinfo ifconfig]
+-program = "/sbin/ifconfig"
++program = "/bin/ifconfig"
+
+ [exception slow_hsi_receivers]
+ severity = medium
+
+--- lnxhc-1.2/checks/net_inbound_errors/definitions 2013-02-06 04:08:55.000000000 -0500
++++ lnxhc-1.2-patched/checks/net_inbound_errors/definitions 2013-05-22 17:13:56.088787813 -0400
+@@ -11,7 +11,7 @@
+ # The above value in percentage
+
+ [sysinfo ifconfig]
+-program = "/sbin/ifconfig"
++program = "/bin/ifconfig"
+
+ [exception limits_exceeded]
+ severity = medium
diff --git a/sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch b/sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch
new file mode 100644
index 000000000000..fe237502785f
--- /dev/null
+++ b/sys-apps/lnxhc/files/lnxhc-1.2-usrlocal.patch
@@ -0,0 +1,43 @@
+diff -ruN lnxhc-1.2/Makefile lnxhc-1.2-patched/Makefile
+--- lnxhc-1.2/Makefile 2013-02-06 04:14:17.000000000 -0500
++++ lnxhc-1.2-patched/Makefile 2013-02-09 13:39:25.096883794 -0500
+@@ -71,7 +71,6 @@
+ pycheckdir := $(libdir)/python/check
+ exampledir := $(docdir)/examples
+ dbdir1 := $(libdir)
+-dbdir2 := /usr/local/lib/lnxhc
+
+ # Base files
+ binfiles := $(wildcard bin/*)
+@@ -154,7 +153,7 @@
+ $(DESTDIR)$(sysvardir) $(DESTDIR)$(pmdir) \
+ $(DESTDIR)$(checkdir) $(DESTDIR)$(consdir) \
+ $(DESTDIR)$(profiledir) $(DESTDIR)$(dbdir1) \
+- $(DESTDIR)$(dbdir2) $(DESTDIR)$(pmcheckdir) \
++ $(DESTDIR)$(pmcheckdir) \
+ $(DESTDIR)$(pmconsumerdir) $(DESTDIR)$(pydir) \
+ $(DESTDIR)$(pycheckdir) $(DESTDIR)$(exampledir)
+
+@@ -164,7 +163,7 @@
+ $(DESTDIR)$(checkdir) $(DESTDIR)$(consdir) \
+ $(DESTDIR)$(profiledir) $(DESTDIR)$(pycheckdir) \
+ $(DESTDIR)$(pydir) $(DESTDIR)$(libdir) \
+- $(DESTDIR)$(dbdir2) $(DESTDIR)$(exampledir) \
++ $(DESTDIR)$(exampledir) \
+ $(DESTDIR)$(docdir)
+
+ installbase: installdirs
+@@ -184,11 +183,11 @@
+ $(CP) -rp $(examples) $(DESTDIR)$(exampledir)
+ for FILE in $(notdir $(binfiles)) ; do \
+ $(FIXPATH) "$(DESTDIR)/$(bindir)/$${FILE}" "$(libdir)" \
+- "$(dbdir1)" "$(dbdir2)" ; \
++ "$(dbdir1)" ; \
+ done
+ for FILE in $(notdir $(conffiles)) ; do \
+ $(FIXPATH) "$(DESTDIR)/$(confdir)/$${FILE}" "$(libdir)" \
+- "$(dbdir1)" "$(dbdir2)" ; \
++ "$(dbdir1)" ; \
+ done
+
+ uninstallbase: