summaryrefslogtreecommitdiff
path: root/sys-power/athcool
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-power/athcool
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-power/athcool')
-rw-r--r--sys-power/athcool/Manifest7
-rw-r--r--sys-power/athcool/athcool-0.3.12.ebuild43
-rw-r--r--sys-power/athcool/files/athcool14
-rw-r--r--sys-power/athcool/files/athcool-0.3.11-build.patch36
-rw-r--r--sys-power/athcool/metadata.xml8
5 files changed, 108 insertions, 0 deletions
diff --git a/sys-power/athcool/Manifest b/sys-power/athcool/Manifest
new file mode 100644
index 000000000000..3ef1c0bdeda2
--- /dev/null
+++ b/sys-power/athcool/Manifest
@@ -0,0 +1,7 @@
+AUX athcool 180 SHA256 a03f8590ca9fb87cd11925c23045a5f672705dab12a51a17f5432584d841761d SHA512 e26d2cd77371b8cf2a1ff888d2d1fddc7718159525556cc35f5c752d13677a092ee9fc46e71b08814dd923d26925b27bcbfac53c537502949966e549bfd89e35 WHIRLPOOL dceb44811add6f0164b4bcdfed203a1a272ec3d0f75bf29e89210a520e7c734842b9ec4adf064d7f13c51f0b3b199cee1260cdd7815113c57c7f21336cd9204e
+AUX athcool-0.3.11-build.patch 853 SHA256 240ead08541958a16e09eb79f0d06ac9d026654cd10e09b6b08dc36eb8a81bb2 SHA512 a6bf284608921d55109183435a33a742150fe1c3f0f30efe9417c89c1974fe8e66f499846b61f1963330e8a1c05118e8e0847de92ebeb419e95e4ccf80d43838 WHIRLPOOL a7dd76d66408ba6a3e6e81c92542b581268cc9034740f326b48e193e1b697cc3e0645cf3555e6ecca7fdf755052a121b2028df25d7ca44972c42a2bb0eefef67
+DIST athcool-0.3.12.tar.gz 18384 SHA256 8a80654cb616064d60e6188fe6d426fe104a439930fceab865930bf1c9ffbbc9 SHA512 f6a8ee2edaf1c1e1c222d7b8a28a86478c23fb946ded1af6c1ce83c35e8f056e3a54e047d0ff5c644ff2fc892cf9e19c08be0dd17ca6195cc6d612f80367b223 WHIRLPOOL 2048db84f488966010e4e4e58cfae94933d2c95fcef6881bb91f16cf80965e4c677360beb985bfcaa7d8666aeb06bf33c97b04630b4b2874f710eb007ad7d783
+EBUILD athcool-0.3.12.ebuild 1118 SHA256 1dec38a251369149a898ea5cda4500a83a68b035637b7ed3028429cfcd6b87a7 SHA512 434726cd2e4fa23f20a637fd5dd3f7f7bf5da5c358a41deab9fce45b8eaaec1ca0afb2666f4ed3f24ee2bf2fda5ec338d6f0e6ced55f286bb649b4e1a501d4f5 WHIRLPOOL fe4b28ec3951bb185484d0f642060c74f984944f6bbc681e292c46925596061bddec3842768ce148f96a9efd3f065a63ac1134d10b5bdd8815d292bcd99ce8e2
+MISC ChangeLog 3220 SHA256 90fffda209fd44a34ccefa328c9b76121642c3b41fb6787aa64284835b906744 SHA512 5396f71472bcae2189c1dd4284bf6a828c1ee2cb04600c6790ad4827451d3aa64dc15bdbb63d133323cf95b03b5852ac56afbe93406d2b32ddff75af57957aa7 WHIRLPOOL e54742fe6ab195b7bd3525b8d03b1ab8a1a25f1f1ebc70e45ef1f71c24916a77beac3f8bdfb29f786cc289b98122b4dcf4b41bbbd20cf3a983bdc2c493ad8028
+MISC ChangeLog-2015 3275 SHA256 b58d4fff17a5ceca2a972c6677a29c5d36fa77c2dafa69cdec305b65fb2120ab SHA512 16f8ec36ff595bb1aaa87e7fa41387a8fb13849551cc409f271311e9eb519127d97f3d4532d3ed10876ce6956f091e1f5d4924caa65b8114a7a4ec7196690c76 WHIRLPOOL dcf9faeeb24d82cf6d7cb4f58fa7a733c56d4ceb27c09788726291f439ac12895447abad25cc60f6fe99532d898d0cd7ef0fd814439b96d533f15714b2552953
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/sys-power/athcool/athcool-0.3.12.ebuild b/sys-power/athcool/athcool-0.3.12.ebuild
new file mode 100644
index 000000000000..b9ed25616659
--- /dev/null
+++ b/sys-power/athcool/athcool-0.3.12.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="small utility to toggle Powersaving mode for AMD Athlon/Duron processors"
+HOMEPAGE="http://members.jcom.home.ne.jp/jacobi/linux/softwares.html#athcool"
+SRC_URI="http://members.jcom.home.ne.jp/jacobi/linux/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* x86"
+IUSE=""
+
+DEPEND="sys-apps/pciutils"
+RDEPEND=""
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.3.11-build.patch
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ doinitd "${FILESDIR}"/athcool
+ dodoc README ChangeLog
+}
+
+pkg_postinst() {
+ ewarn "WARNING: Depending on your motherboard and/or hardware components,"
+ ewarn "enabling powersaving mode may cause:"
+ ewarn " * noisy or distorted sound playback"
+ ewarn " * a slowdown in harddisk performance"
+ ewarn " * system locks or unpredictable behavior"
+ ewarn " * file system corruption"
+ ewarn "If you met those problems, you should not use athcool. Please use"
+ ewarn "athcool AT YOUR OWN RISK!"
+}
diff --git a/sys-power/athcool/files/athcool b/sys-power/athcool/files/athcool
new file mode 100644
index 000000000000..8dfef3a0afa7
--- /dev/null
+++ b/sys-power/athcool/files/athcool
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ athcool on >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ athcool off >/dev/null 2>&1
+ eend $?
+}
+
diff --git a/sys-power/athcool/files/athcool-0.3.11-build.patch b/sys-power/athcool/files/athcool-0.3.11-build.patch
new file mode 100644
index 000000000000..8b8e619dd71f
--- /dev/null
+++ b/sys-power/athcool/files/athcool-0.3.11-build.patch
@@ -0,0 +1,36 @@
+--- Makefile
++++ Makefile
+@@ -14,13 +14,13 @@
+ SRCS = athcool.c scanpci.c
+ OBJS = $(SRCS:.c=.o)
+
+-CC = gcc
++CC ?= gcc
+ RM = rm -f
+-CFLAGS = -O2 -Wall
+-DEFS = -I. -I$(includedir) -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\"
++CFLAGS += -Wall
++DEFS = -I. -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\"
+ #DEFS += -DENABLE_FORCEID=1
+ #DEFS += -DDISABLE_WRITE_REG=1
+-LIBS = -lpci
++LIBS = -lpci -lz
+
+ ### rules ###
+
+@@ -30,13 +30,13 @@
+ all: $(PACKAGE)
+
+ $(PACKAGE): $(OBJS)
+- $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
++ $(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@ $(LDFLAGS)
+
+ install: install-program install-man # install-script
+
+ install-program:
+ [ -d $(sbindir) ] || install -m 755 -d $(sbindir)
+- install -s $(PACKAGE) $(sbindir)
++ install $(PACKAGE) $(sbindir)
+
+ install-man:
+ [ -d $(mandir)/man8 ] || install -m 755 -d $(mandir)/man8
diff --git a/sys-power/athcool/metadata.xml b/sys-power/athcool/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/sys-power/athcool/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>