summaryrefslogtreecommitdiff
path: root/sys-apps/lnxhc
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-apps/lnxhc
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-apps/lnxhc')
-rw-r--r--sys-apps/lnxhc/Manifest1
-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
-rw-r--r--sys-apps/lnxhc/lnxhc-1.2-r1.ebuild23
-rw-r--r--sys-apps/lnxhc/metadata.xml11
5 files changed, 101 insertions, 0 deletions
diff --git a/sys-apps/lnxhc/Manifest b/sys-apps/lnxhc/Manifest
new file mode 100644
index 00000000000..285a611415e
--- /dev/null
+++ b/sys-apps/lnxhc/Manifest
@@ -0,0 +1 @@
+DIST lnxhc-1.2.tar.gz 360869 SHA256 a94a748171b812528567a0f7a3c19f048a57463cb0fddb9e152b38e2ed8a66c0 SHA512 200ab6443c3b8f4dd99928d2f18b31e8e05c1f9c1f976052017a643430ed87fa08a399e9e8430eafb2925126bd2d90fc4f65ce1c220d6100b71c31fc0505aab0 WHIRLPOOL aa0b7f1f86bae2fce4da3db40dc97c525fb1d94b86298142675d64654676be391487c33612fb8018cae5b5bb1cedd610696092f8ef1944e4ce446f50bdcddef4
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 00000000000..89e18470485
--- /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 00000000000..fe237502785
--- /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:
diff --git a/sys-apps/lnxhc/lnxhc-1.2-r1.ebuild b/sys-apps/lnxhc/lnxhc-1.2-r1.ebuild
new file mode 100644
index 00000000000..478ae56d950
--- /dev/null
+++ b/sys-apps/lnxhc/lnxhc-1.2-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+DESCRIPTION="Linux Health Checker"
+HOMEPAGE="http://lnxhc.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="EPL-1.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.8"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2-usrlocal.patch"
+ epatch "${FILESDIR}/${PN}-1.2-ifconfig-path.patch"
+}
diff --git a/sys-apps/lnxhc/metadata.xml b/sys-apps/lnxhc/metadata.xml
new file mode 100644
index 00000000000..69a1599e0a5
--- /dev/null
+++ b/sys-apps/lnxhc/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>creffett@gentoo.org</email>
+ <name>Chris Reffett</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">lnxhc</remote-id>
+ </upstream>
+</pkgmetadata>