diff options
author | Michael Weber <xmw@gentoo.org> | 2012-02-13 02:27:51 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2012-02-13 02:27:51 +0000 |
commit | 3f28b50e43484a0147665b44420a1c1a95176a12 (patch) | |
tree | e496d9f6f8ff9cf46dbb3a3684a43c3c6b060194 /app-laptop/thinkfan | |
parent | app-laptop/thinkfan masked for testing (diff) | |
download | gentoo-2-3f28b50e43484a0147665b44420a1c1a95176a12.tar.gz gentoo-2-3f28b50e43484a0147665b44420a1c1a95176a12.tar.bz2 gentoo-2-3f28b50e43484a0147665b44420a1c1a95176a12.zip |
Initial import. Thanks Maxim Konyushikhin for the initial ebuild (bug 387399)
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'app-laptop/thinkfan')
-rw-r--r-- | app-laptop/thinkfan/ChangeLog | 12 | ||||
-rw-r--r-- | app-laptop/thinkfan/Manifest | 8 | ||||
-rw-r--r-- | app-laptop/thinkfan/files/thinkfan-0.7.3-makefile.patch | 28 | ||||
-rw-r--r-- | app-laptop/thinkfan/files/thinkfan-0.7.3-openrc.patch | 11 | ||||
-rw-r--r-- | app-laptop/thinkfan/metadata.xml | 9 | ||||
-rw-r--r-- | app-laptop/thinkfan/thinkfan-0.7.3.ebuild | 39 | ||||
-rw-r--r-- | app-laptop/thinkfan/thinkfan-0.8_alpha2.ebuild | 40 |
7 files changed, 147 insertions, 0 deletions
diff --git a/app-laptop/thinkfan/ChangeLog b/app-laptop/thinkfan/ChangeLog new file mode 100644 index 000000000000..ab5dcc54a365 --- /dev/null +++ b/app-laptop/thinkfan/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-laptop/thinkfan +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/thinkfan/ChangeLog,v 1.1 2012/02/13 02:27:50 xmw Exp $ + +*thinkfan-0.8_alpha2 (13 Feb 2012) +*thinkfan-0.7.3 (13 Feb 2012) + + 13 Feb 2012; Michael Weber <xmw@gentoo.org> +thinkfan-0.7.3.ebuild, + +files/thinkfan-0.7.3-makefile.patch, +files/thinkfan-0.7.3-openrc.patch, + +thinkfan-0.8_alpha2.ebuild: + Initial import. Thanks Maxim Konyushikhin for the initial ebuild (bug 387399) + diff --git a/app-laptop/thinkfan/Manifest b/app-laptop/thinkfan/Manifest new file mode 100644 index 000000000000..e280c7b1ce76 --- /dev/null +++ b/app-laptop/thinkfan/Manifest @@ -0,0 +1,8 @@ +AUX thinkfan-0.7.3-makefile.patch 825 RMD160 c7736f22504ef6c1e3097515885a9471dba0f8f9 SHA1 1e26c78fc2a82026716ee460c49cdf14c1a04310 SHA256 7e63b1b32ef6efb4b449b1a469767291ed3f7488f9bab9e473dbe5f6f846895c +AUX thinkfan-0.7.3-openrc.patch 268 RMD160 2170aaf000247f3051af70c16bd4942f831f5dd3 SHA1 07cdd0ab7255d1a37ebe17f9d1d11971a0916ea9 SHA256 31d6edc22f387188f41f098343ab6645813d0ba56c7e06e133559cfd9eee6a1e +DIST thinkfan-0.7.3.tar.gz 22488 RMD160 aafdfdcd1eb86c59405e3381210d93989d24b899 SHA1 9438d21efe4abc3220d1390052419c1dd40bf62c SHA256 88374dd89af073f658b507942cdb569ef8cd2810e39cbf71da17455282a4b32e +DIST thinkfan-0.8_alpha2.tar.gz 26571 RMD160 25b448b133ade35cc5af235dcfe52f8898275821 SHA1 64a10ff959e4e68e630b29c5f74a8159a507a70a SHA256 28f4ee9a833ef4d39258941c7bbcbd49ad6410479417bb4acf05e58da67f10eb +EBUILD thinkfan-0.7.3.ebuild 765 RMD160 cdea390a1cd363dd4d1b145731d9ee1dc2f58a91 SHA1 ad0296b94a68cec217f49fcaa728eb6623ecb6c8 SHA256 de1d28b1b3a5febe1aa796c00fdecb236d244080b78575cbfeb0e655692fe813 +EBUILD thinkfan-0.8_alpha2.ebuild 800 RMD160 ae7076c3f4c0fa0b10c4de561da105b34931c23b SHA1 80e5d9150ec93305d4d564667ce4aa7e02f346b1 SHA256 e83be3b4d6bd7e8c5de73aed1b2e1954c69b25556eadb56d364b83fe8b4b623a +MISC ChangeLog 444 RMD160 7514adb7d5d58b1f7c704f5656a20e0fc475bc9e SHA1 df215c8757df4265a9d962aef15ec7f952c22821 SHA256 b64fb15c499cab520c0dbf9b4aa203cc0713c820453c0dad389cb05553b7b901 +MISC metadata.xml 224 RMD160 2a7e22a99ec669c5b961c3d1738a0cda58264318 SHA1 f6fd81fac4df7d7995b1600848b265fceda692f8 SHA256 f810c6de744adceee241992d3f713142db3e7025986f6cc5898cfe3c9cb2f4a7 diff --git a/app-laptop/thinkfan/files/thinkfan-0.7.3-makefile.patch b/app-laptop/thinkfan/files/thinkfan-0.7.3-makefile.patch new file mode 100644 index 000000000000..fac489464079 --- /dev/null +++ b/app-laptop/thinkfan/files/thinkfan-0.7.3-makefile.patch @@ -0,0 +1,28 @@ +--- thinkfan-0.7.3/Makefile ++++ thinkfan-0.7.3/Makefile +@@ -1,20 +1,12 @@ + .DEFAULT_GOAL := thinkfan + +-thinkfan: system.o parser.o config.o thinkfan.o message.o +- gcc $(CFLAGS) -Wall -o thinkfan system.o config.o parser.o \ +- thinkfan.o message.o +- +-message.o: message.c globaldefs.h +- gcc $(CFLAGS) -Wall -c message.c ++CC ?= gcc + +-system.o: system.c system.h message.h globaldefs.h parser.h +- gcc $(CFLAGS) -Wall -c system.c +- +-config.o: config.c config.h message.h globaldefs.h system.h parser.h +- gcc $(CFLAGS) -Wall -c config.c ++thinkfan: system.o parser.o config.o thinkfan.o message.o ++ $(CC) $(LDFLAGS) -Wall -o $@ $^ + +-thinkfan.o: thinkfan.c thinkfan.h message.h globaldefs.h config.h +- gcc $(CFLAGS) -Wall -c thinkfan.c ++%.o: %.c ++ $(CC) $(CFLAGS) -Wall -c -o $@ $< + + clean: + rm -rf *.o thinkfan diff --git a/app-laptop/thinkfan/files/thinkfan-0.7.3-openrc.patch b/app-laptop/thinkfan/files/thinkfan-0.7.3-openrc.patch new file mode 100644 index 000000000000..3ef027653cf9 --- /dev/null +++ b/app-laptop/thinkfan/files/thinkfan-0.7.3-openrc.patch @@ -0,0 +1,11 @@ +--- thinkfan-0.7.3/rcscripts/thinkfan.gentoo ++++ thinkfan-0.7.3/rcscripts/thinkfan.gentoo +@@ -3,7 +3,7 @@ + # Distributed under the terms of the GNU General Public License v2 + # $Header: /var/cvsroot/gentoo-x86/app-laptop/thinkfan/files/thinkfan-0.7.3-openrc.patch,v 1.1 2012/02/13 02:27:51 xmw Exp $ + +-opts="reload" ++extra_started_commands="reload" + + depend() { + after modules diff --git a/app-laptop/thinkfan/metadata.xml b/app-laptop/thinkfan/metadata.xml new file mode 100644 index 000000000000..59acc2cc580e --- /dev/null +++ b/app-laptop/thinkfan/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +</pkgmetadata> + diff --git a/app-laptop/thinkfan/thinkfan-0.7.3.ebuild b/app-laptop/thinkfan/thinkfan-0.7.3.ebuild new file mode 100644 index 000000000000..2cbe58e9c6fb --- /dev/null +++ b/app-laptop/thinkfan/thinkfan-0.7.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/thinkfan/thinkfan-0.7.3.ebuild,v 1.1 2012/02/13 02:27:50 xmw Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="simple fan control program for thinkpads" +HOMEPAGE="http://thinkfan.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch \ + "${FILESDIR}"/${P}-openrc.patch + tc-export CC +} + +src_install() { + dosbin ${PN} + + newinitd rcscripts/thinkfan.gentoo ${PN} + + doman ${PN}.1 + dodoc ChangeLog NEWS README ${PN}.conf.{sysfs,thinkpad} +} + +pkg_postinst() { + elog "Please read the documentation and copy an" + elog "appropriate file to /etc/thinkfan.conf." +} diff --git a/app-laptop/thinkfan/thinkfan-0.8_alpha2.ebuild b/app-laptop/thinkfan/thinkfan-0.8_alpha2.ebuild new file mode 100644 index 000000000000..e1107ee82662 --- /dev/null +++ b/app-laptop/thinkfan/thinkfan-0.8_alpha2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/thinkfan/thinkfan-0.8_alpha2.ebuild,v 1.1 2012/02/13 02:27:50 xmw Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="simple fan control program for thinkpads" +HOMEPAGE="http://thinkfan.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.7.3-makefile.patch \ + "${FILESDIR}"/${PN}-0.7.3-openrc.patch + tc-export CC +} + +src_install() { + dosbin ${PN} + + newinitd rcscripts/thinkfan.gentoo ${PN} + + doman ${PN}.1 + dodoc ChangeLog NEWS README \ + examples/${PN}.conf.{complex,sysfs,thinkpad} +} + +pkg_postinst() { + elog "Please read the documentation and copy an" + elog "appropriate file to /etc/thinkfan.conf." +} |