diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-03 05:32:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-03 05:32:01 +0000 |
commit | 873d74c2319c57fe4d76279ba458c0f2242e8d43 (patch) | |
tree | 7b35a59a8ee986758b7c9fa8c911ac13e64505ad /sys-block/nwutil | |
parent | Moved to gtk-engines-qtpixmap and geramik (diff) | |
download | gentoo-2-873d74c2319c57fe4d76279ba458c0f2242e8d43.tar.gz gentoo-2-873d74c2319c57fe4d76279ba458c0f2242e8d43.tar.bz2 gentoo-2-873d74c2319c57fe4d76279ba458c0f2242e8d43.zip |
Add support for /dev/temp.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-block/nwutil')
-rw-r--r-- | sys-block/nwutil/ChangeLog | 8 | ||||
-rw-r--r-- | sys-block/nwutil/files/nwutil-1.4-temp.patch | 24 | ||||
-rw-r--r-- | sys-block/nwutil/nwutil-1.4.ebuild | 3 |
3 files changed, 32 insertions, 3 deletions
diff --git a/sys-block/nwutil/ChangeLog b/sys-block/nwutil/ChangeLog index 1c4923935b4b..5d5d66663761 100644 --- a/sys-block/nwutil/ChangeLog +++ b/sys-block/nwutil/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-block/nwutil -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/nwutil/ChangeLog,v 1.2 2005/03/06 11:57:15 swegener Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/nwutil/ChangeLog,v 1.3 2005/08/03 05:32:01 vapier Exp $ + + 03 Aug 2005; Mike Frysinger <vapier@gentoo.org> + +files/nwutil-1.4-temp.patch, nwutil-1.4.ebuild: + Add support for /dev/temp. *nwutil-1.4 (06 Mar 2005) diff --git a/sys-block/nwutil/files/nwutil-1.4-temp.patch b/sys-block/nwutil/files/nwutil-1.4-temp.patch new file mode 100644 index 000000000000..3a786fdfa64e --- /dev/null +++ b/sys-block/nwutil/files/nwutil-1.4-temp.patch @@ -0,0 +1,24 @@ +Newer kernels name the device 'temp' so try both. + +--- fan_ctrl.c ++++ fan_ctrl.c +@@ -73,6 +73,8 @@ main (int argc, char **argv) + + fd = open ("/dev/temperature", O_RDWR); + if (fd < 0) ++ fd = open ("/dev/temp", O_RDWR); ++ if (fd < 0) + { + printf ("Error %d opening /dev/temperature\n", fd); + return EXIT_FAILURE; +--- set_therm.c ++++ set_therm.c +@@ -66,6 +66,8 @@ main (int argc, char **argv) + + fd = open ("/dev/temperature", O_RDWR); + if (fd < 0) ++ fd = open ("/dev/temp", O_RDWR); ++ if (fd < 0) + { + printf ("Error %d opening /dev/temperature\n", fd); + return EXIT_FAILURE; diff --git a/sys-block/nwutil/nwutil-1.4.ebuild b/sys-block/nwutil/nwutil-1.4.ebuild index 2012775a75a2..851c59ee818f 100644 --- a/sys-block/nwutil/nwutil-1.4.ebuild +++ b/sys-block/nwutil/nwutil-1.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/nwutil/nwutil-1.4.ebuild,v 1.2 2005/05/29 03:54:59 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/nwutil/nwutil-1.4.ebuild,v 1.3 2005/08/03 05:32:01 vapier Exp $ inherit eutils @@ -25,6 +25,7 @@ src_unpack() { epatch "${WORKDIR}"/${PN}_${PV}-${DEB_VER}.diff epatch "${FILESDIR}"/${PV}-errno.patch epatch "${FILESDIR}"/${PV}-rename-debug.patch + epatch "${FILESDIR}"/${P}-temp.patch mv {,nw}debug.c mv {,nw}debug.8 } |