summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-06-11 11:24:09 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-06-11 11:24:09 +0000
commit41c43c869058867683f8291d444e65ad0f37085e (patch)
tree28ac9c519c7de4cecd147b0dc03d433f02533985 /sys-apps/lm_sensors-modules
parentVersion bump. (diff)
downloadgentoo-2-41c43c869058867683f8291d444e65ad0f37085e.tar.gz
gentoo-2-41c43c869058867683f8291d444e65ad0f37085e.tar.bz2
gentoo-2-41c43c869058867683f8291d444e65ad0f37085e.zip
Initial commit, split out from sys-apps/lm_sensors. This fixes bug #84673.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-apps/lm_sensors-modules')
-rw-r--r--sys-apps/lm_sensors-modules/ChangeLog11
-rw-r--r--sys-apps/lm_sensors-modules/Manifest6
-rw-r--r--sys-apps/lm_sensors-modules/files/digest-lm_sensors-modules-2.9.11
-rw-r--r--sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch69
-rw-r--r--sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-modules-only.patch12
-rw-r--r--sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.1.ebuild63
-rw-r--r--sys-apps/lm_sensors-modules/metadata.xml9
7 files changed, 171 insertions, 0 deletions
diff --git a/sys-apps/lm_sensors-modules/ChangeLog b/sys-apps/lm_sensors-modules/ChangeLog
new file mode 100644
index 000000000000..24054480f490
--- /dev/null
+++ b/sys-apps/lm_sensors-modules/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-apps/lm_sensors-modules
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors-modules/ChangeLog,v 1.1 2005/06/11 11:24:09 brix Exp $
+
+*lm_sensors-modules-2.9.1 (11 Jun 2005)
+
+ 11 Jun 2005; <brix@gentoo.org> +files/lm_sensors-2.9.1-module-path.patch,
+ +files/lm_sensors-2.9.1-modules-only.patch,
+ +lm_sensors-modules-2.9.1.ebuild:
+ Initial commit, split out from sys-apps/lm_sensors. This fixes bug #84673.
+
diff --git a/sys-apps/lm_sensors-modules/Manifest b/sys-apps/lm_sensors-modules/Manifest
new file mode 100644
index 000000000000..057e63b3ab41
--- /dev/null
+++ b/sys-apps/lm_sensors-modules/Manifest
@@ -0,0 +1,6 @@
+MD5 1ded1945a9f98137df4b9258cfec9931 lm_sensors-modules-2.9.1.ebuild 1513
+MD5 75b22d72690b76abaad111b7b870a91f ChangeLog 405
+MD5 b280eebc74d70d85e664debf1adce2c3 metadata.xml 255
+MD5 bc5cf1f60bec6bdb0fb095a5a361d1c1 files/lm_sensors-2.9.1-module-path.patch 4167
+MD5 3239330829a0de6eb11ba47d95662763 files/lm_sensors-2.9.1-modules-only.patch 524
+MD5 669cd7ea438a54d3269ff5e9d06847b6 files/digest-lm_sensors-modules-2.9.1 68
diff --git a/sys-apps/lm_sensors-modules/files/digest-lm_sensors-modules-2.9.1 b/sys-apps/lm_sensors-modules/files/digest-lm_sensors-modules-2.9.1
new file mode 100644
index 000000000000..9b9f92a218ca
--- /dev/null
+++ b/sys-apps/lm_sensors-modules/files/digest-lm_sensors-modules-2.9.1
@@ -0,0 +1 @@
+MD5 f5af615e39441d95471bdb72a3f01709 lm_sensors-2.9.1.tar.gz 870765
diff --git a/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch b/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch
new file mode 100644
index 000000000000..e46fabcb3844
--- /dev/null
+++ b/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-module-path.patch
@@ -0,0 +1,69 @@
+diff -urp lm_sensors-2.9.1/kernel/busses/Module.mk lm_sensors-2.9.1-module-path/kernel/busses/Module.mk
+--- lm_sensors-2.9.1/kernel/busses/Module.mk 2004-11-14 15:28:09.000000000 +0100
++++ lm_sensors-2.9.1-module-path/kernel/busses/Module.mk 2005-06-04 15:29:59.000000000 +0200
+@@ -105,16 +105,16 @@ all :: all-kernel-busses
+
+ #
+ # If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory
+-# layout, so we install in kernel/drivers/i2c/busses and remove old versions in misc/
+-# and kernel/drivers/i2c/ . Otherwise we install in misc/ as before.
++# layout, so we install in drivers/i2c/busses and remove old versions in misc/
++# and drivers/i2c/ . Otherwise we install in misc/ as before.
+ #
+ install-kernel-busses: all-kernel-busses
+ if [ -n "$(KERNELBUSSESTARGETS)" ] ; then \
+- $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/busses ; \
+- $(INSTALL) -m 644 $(KERNELBUSSESTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/busses ; \
++ $(MKDIR) $(DESTDIR)$(MODPREF)/drivers/i2c/busses ; \
++ $(INSTALL) -m 644 $(KERNELBUSSESTARGETS) $(DESTDIR)$(MODPREF)/drivers/i2c/busses ; \
+ for i in $(KERNELBUSSESTARGETS) ; do \
+- $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i` \
+- $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/`basename $$i`.gz $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/busses/`basename $$i`.gz ; \
++ $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i` \
++ $(DESTDIR)$(MODPREF)/drivers/i2c/`basename $$i`.gz $(DESTDIR)$(MODPREF)/drivers/i2c/busses/`basename $$i`.gz ; \
+ done ; \
+ $(RMDIR) $(DESTDIR)$(MODPREF)/misc 2> /dev/null || true ; \
+ fi
+diff -urp lm_sensors-2.9.1/kernel/chips/Module.mk lm_sensors-2.9.1-module-path/kernel/chips/Module.mk
+--- lm_sensors-2.9.1/kernel/chips/Module.mk 2005-03-10 20:03:52.000000000 +0100
++++ lm_sensors-2.9.1-module-path/kernel/chips/Module.mk 2005-06-04 15:29:45.000000000 +0200
+@@ -186,13 +186,13 @@ all :: all-kernel-chips
+
+ #
+ # If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory
+-# layout, so we install in kernel/drivers/i2c/chips/ and remove old versions in misc/
++# layout, so we install in drivers/i2c/chips/ and remove old versions in misc/
+ # and kernel/drivers/sensors/ . Otherwise we install in misc/ as before.
+ #
+ install-kernel-chips: all-kernel-chips
+ if [ -n "$(KERNELCHIPSTARGETS)" ] ; then \
+- $(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/chips ; \
+- $(INSTALL) -m 644 $(KERNELCHIPSTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/i2c/chips ; \
++ $(MKDIR) $(DESTDIR)$(MODPREF)/drivers/i2c/chips ; \
++ $(INSTALL) -m 644 $(KERNELCHIPSTARGETS) $(DESTDIR)$(MODPREF)/drivers/i2c/chips ; \
+ for i in $(KERNELCHIPSTARGETS) ; do \
+ $(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` $(DESTDIR)$(MODPREF)/kernel/drivers/sensors/`basename $$i` \
+ $(DESTDIR)$(MODPREF)/kernel/drivers/sensors/`basename $$i`.gz $(DESTDIR)$(MODPREF)/kernel/drivers/chips/`basename $$i`.gz ; \
+diff -urp lm_sensors-2.9.1/prog/hotplug/Makefile.p4b lm_sensors-2.9.1-module-path/prog/hotplug/Makefile.p4b
+--- lm_sensors-2.9.1/prog/hotplug/Makefile.p4b 2003-05-31 19:30:47.000000000 +0200
++++ lm_sensors-2.9.1-module-path/prog/hotplug/Makefile.p4b 2005-06-04 15:29:25.000000000 +0200
+@@ -44,15 +44,15 @@ OBJS = p4b_smbus.o
+ all: $(OBJS)
+
+ install: all
+- install -d /lib/modules/$(KERNELVERSION)/kernel/drivers/i2c/busses
+- install -c p4b_smbus.o /lib/modules/$(KERNELVERSION)/kernel/drivers/i2c/busses
++ install -d /lib/modules/$(KERNELVERSION)/drivers/i2c/busses
++ install -c p4b_smbus.o /lib/modules/$(KERNELVERSION)/drivers/i2c/busses
+ # test ! -x /dev/watchdog || mknod -m 600 /dev/watchdog c 10 130
+ # test ! -x /dev/temperature || mknod -m 600 /dev/temperature c 10 131
+
+ inst: all
+ rmmod p4b_smbus
+- install -d /lib/modules/$(KERNELVERSION)/kernel/drivers/i2c/busses
+- install -c p4b_smbus.o /lib/modules/$(KERNEL)/kernel/drivers/i2c/busses
++ install -d /lib/modules/$(KERNELVERSION)/drivers/i2c/busses
++ install -c p4b_smbus.o /lib/modules/$(KERNEL)/drivers/i2c/busses
+ depmod -a
+ # modprobe p4b_smbus
+
diff --git a/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-modules-only.patch b/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-modules-only.patch
new file mode 100644
index 000000000000..e8b532fa7d29
--- /dev/null
+++ b/sys-apps/lm_sensors-modules/files/lm_sensors-2.9.1-modules-only.patch
@@ -0,0 +1,12 @@
+Only in lm_sensors-2.9.1: lm_sensors-2.9.1-modules-only.patch
+diff -urp lm_sensors-2.9.1/Makefile lm_sensors-2.9.1-modules-only/Makefile
+--- lm_sensors-2.9.1/Makefile 2005-03-19 12:18:17.000000000 +0100
++++ lm_sensors-2.9.1-modules-only/Makefile 2005-06-11 12:53:34.000000000 +0200
+@@ -258,6 +258,7 @@ all::
+
+ # Include all makefiles for sub-modules
+ INCLUDEFILES :=
++SRCDIRS=kernel kernel/busses kernel/chips
+ include $(patsubst %,%/Module.mk,$(SRCDIRS))
+ ifneq ($(MAKECMDGOALS),clean)
+ ifneq ($(MAKECMDGOALS),uninstall)
diff --git a/sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.1.ebuild b/sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.1.ebuild
new file mode 100644
index 000000000000..96eb2d106517
--- /dev/null
+++ b/sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors-modules/lm_sensors-modules-2.9.1.ebuild,v 1.1 2005/06/11 11:24:09 brix Exp $
+
+inherit eutils toolchain-funcs linux-info
+
+MY_P=${P/-modules/}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Linux System Hardware Monitoring kernel modules for Linux-2.4"
+HOMEPAGE="http://secure.netroedge.com/~lm78/"
+SRC_URI="http://secure.netroedge.com/~lm78/archive/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+
+IUSE=""
+DEPEND="sys-apps/i2c"
+
+pkg_setup() {
+ linux-info_pkg_setup
+
+ if kernel_is lt 2 4 10; then
+ eerror "${PV} requires kernel 2.4.10 or later"
+ die "${PV} requires kernel 2.4.10 or later"
+ fi
+
+ if kernel_is gt 2 4; then
+ eerror "${PV} is only needed for kernel 2.4.x"
+ eerror "You need to use the in-kernel I2C drivers for later kernels."
+ die "Non 2.4.x kernel detected"
+ fi
+
+ if linux_chkconfig_present I2C; then
+ eerror "${PV} requires kernel CONFIG_I2C to be disabled."
+ die "Kernel with CONFIG_I2C detected"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${MY_P}-module-path.patch
+ epatch ${FILESDIR}/${MY_P}-modules-only.patch
+}
+
+src_compile() {
+ einfo
+ einfo "You may safely ignore any errors from compilation"
+ einfo "that contain \"No such file or directory\" references."
+ einfo
+
+ emake CC=$(tc-getCC) LINUX=${KV_DIR} I2C_HEADERS=${KV_DIR}/include \
+ || die "emake failed"
+}
+
+src_install() {
+ emake CC=$(tc-getCC) \
+ LINUX=${KV_DIR} MODPREF=/lib/modules/${KV_FULL} DESTDIR=${D} install \
+ || die "emake install failed"
+}
diff --git a/sys-apps/lm_sensors-modules/metadata.xml b/sys-apps/lm_sensors-modules/metadata.xml
new file mode 100644
index 000000000000..cfbdff13bd61
--- /dev/null
+++ b/sys-apps/lm_sensors-modules/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mobile</herd>
+<maintainer>
+ <email>brix@gentoo.org</email>
+ <name>Henrik Brix Andersen</name>
+</maintainer>
+</pkgmetadata>