diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-10-01 10:57:44 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-10-01 10:57:44 +0000 |
commit | 81c8a410c155c0ac824dc7d57ddcf042507f7f54 (patch) | |
tree | 4c8d858742e20032caa46a54df4348363969de2c /sys-power | |
parent | alpha/ia64/sparc stable wrt security #194039 (diff) | |
download | gentoo-2-81c8a410c155c0ac824dc7d57ddcf042507f7f54.tar.gz gentoo-2-81c8a410c155c0ac824dc7d57ddcf042507f7f54.tar.bz2 gentoo-2-81c8a410c155c0ac824dc7d57ddcf042507f7f54.zip |
Remove bashisms from init script, #194362 thanks to Peter Alfredsen
(Portage version: 2.1.3.11, RepoMan options: --force)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/athcool/ChangeLog | 8 | ||||
-rw-r--r-- | sys-power/athcool/athcool-0.3.11-r1.ebuild | 38 | ||||
-rwxr-xr-x | sys-power/athcool/files/athcool | 10 | ||||
-rw-r--r-- | sys-power/athcool/files/digest-athcool-0.3.11-r1 | 3 |
4 files changed, 53 insertions, 6 deletions
diff --git a/sys-power/athcool/ChangeLog b/sys-power/athcool/ChangeLog index 550a06d21ea2..b91ad48e5a24 100644 --- a/sys-power/athcool/ChangeLog +++ b/sys-power/athcool/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-power/athcool # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/athcool/ChangeLog,v 1.5 2007/01/24 10:06:05 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/athcool/ChangeLog,v 1.6 2007/10/01 10:57:44 uberlord Exp $ + +*athcool-0.3.11-r1 (01 Oct 2007) + + 01 Oct 2007; Roy Marples <uberlord@gentoo.org> files/athcool, + +athcool-0.3.11-r1.ebuild: + Remove bashisms from init script, #194362 thanks to Peter Alfredsen 24 Jan 2007; Mike Frysinger <vapier@gentoo.org> files/athcool-0.3.11-build.patch: diff --git a/sys-power/athcool/athcool-0.3.11-r1.ebuild b/sys-power/athcool/athcool-0.3.11-r1.ebuild new file mode 100644 index 000000000000..1b6639ce30a8 --- /dev/null +++ b/sys-power/athcool/athcool-0.3.11-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/athcool/athcool-0.3.11-r1.ebuild,v 1.1 2007/10/01 10:57:44 uberlord Exp $ + +inherit eutils + +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" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-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 instability" + 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 index c4f9bccd0276..dcf26e9537cf 100755 --- a/sys-power/athcool/files/athcool +++ b/sys-power/athcool/files/athcool @@ -1,15 +1,15 @@ #!/sbin/runscript -# $Header: /var/cvsroot/gentoo-x86/sys-power/athcool/files/athcool,v 1.1 2005/03/14 22:56:32 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/athcool/files/athcool,v 1.2 2007/10/01 10:57:44 uberlord Exp $ start() { - ebegin "Starting Athcool" - /usr/sbin/athcool on &>/dev/null || return 1 + ebegin "Starting ${SVCNAME}" + athcool on >/dev/null 2>&1 eend $? } stop() { - ebegin "Stopping Athcool" - /usr/sbin/athcool off &>/dev/null || return 1 + ebegin "Stopping ${SVCNAME}" + athcool off >/dev/null 2>&1 eend $? } diff --git a/sys-power/athcool/files/digest-athcool-0.3.11-r1 b/sys-power/athcool/files/digest-athcool-0.3.11-r1 new file mode 100644 index 000000000000..a969695940b0 --- /dev/null +++ b/sys-power/athcool/files/digest-athcool-0.3.11-r1 @@ -0,0 +1,3 @@ +MD5 0fdcc3e32f8e795ff95747e640710ce4 athcool-0.3.11.tar.gz 20761 +RMD160 076ea6fac685415332e8f322edeae7003afbe57f athcool-0.3.11.tar.gz 20761 +SHA256 63359649d98430da4d552b92e8b66af08f8410171e9ff82edda3c796831b841a athcool-0.3.11.tar.gz 20761 |