diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-08-08 17:39:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-08-08 17:39:57 +0000 |
commit | 7e36de030b929fc5025e4c416bef5ea96a148874 (patch) | |
tree | 4d725a8bba4ceb0d2578dfecf772c89e2805b610 | |
parent | alpha/ia64 stable wrt #176297 (diff) | |
download | historical-7e36de030b929fc5025e4c416bef5ea96a148874.tar.gz historical-7e36de030b929fc5025e4c416bef5ea96a148874.tar.bz2 historical-7e36de030b929fc5025e4c416bef5ea96a148874.zip |
old
-rw-r--r-- | sys-apps/hdparm/files/digest-hdparm-6.9 | 3 | ||||
-rw-r--r-- | sys-apps/hdparm/files/digest-hdparm-6.9-r1 | 3 | ||||
-rw-r--r-- | sys-apps/hdparm/files/digest-hdparm-7.3 | 3 | ||||
-rw-r--r-- | sys-apps/hdparm/files/digest-hdparm-7.5 | 3 | ||||
-rw-r--r-- | sys-apps/hdparm/files/hdparm-init-7 | 147 | ||||
-rw-r--r-- | sys-apps/hdparm/hdparm-6.9-r1.ebuild | 40 | ||||
-rw-r--r-- | sys-apps/hdparm/hdparm-6.9.ebuild | 40 | ||||
-rw-r--r-- | sys-apps/hdparm/hdparm-7.3.ebuild | 41 | ||||
-rw-r--r-- | sys-apps/hdparm/hdparm-7.5.ebuild | 41 |
9 files changed, 0 insertions, 321 deletions
diff --git a/sys-apps/hdparm/files/digest-hdparm-6.9 b/sys-apps/hdparm/files/digest-hdparm-6.9 deleted file mode 100644 index f51e9295e68a..000000000000 --- a/sys-apps/hdparm/files/digest-hdparm-6.9 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 62749c6cdf28ce31aae335092fa107df hdparm-6.9.tar.gz 46801 -RMD160 d862e656456f14fb8139c15cd68ba9252082532e hdparm-6.9.tar.gz 46801 -SHA256 cae6ed86296d01be98ee3be0c224c4323eee508941a7f162a0366d56655afe06 hdparm-6.9.tar.gz 46801 diff --git a/sys-apps/hdparm/files/digest-hdparm-6.9-r1 b/sys-apps/hdparm/files/digest-hdparm-6.9-r1 deleted file mode 100644 index f51e9295e68a..000000000000 --- a/sys-apps/hdparm/files/digest-hdparm-6.9-r1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 62749c6cdf28ce31aae335092fa107df hdparm-6.9.tar.gz 46801 -RMD160 d862e656456f14fb8139c15cd68ba9252082532e hdparm-6.9.tar.gz 46801 -SHA256 cae6ed86296d01be98ee3be0c224c4323eee508941a7f162a0366d56655afe06 hdparm-6.9.tar.gz 46801 diff --git a/sys-apps/hdparm/files/digest-hdparm-7.3 b/sys-apps/hdparm/files/digest-hdparm-7.3 deleted file mode 100644 index 4e19fc9f78df..000000000000 --- a/sys-apps/hdparm/files/digest-hdparm-7.3 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 27a5120e9df51399cbfe98121c90b22e hdparm-7.3.tar.gz 61191 -RMD160 a5f5ea790b3037f88037c524874c221e4786a5c1 hdparm-7.3.tar.gz 61191 -SHA256 86f6b51c77d6c4686fe6ee66e7e592ab69f7b2173865520a5ebd2a8aab5e8e8e hdparm-7.3.tar.gz 61191 diff --git a/sys-apps/hdparm/files/digest-hdparm-7.5 b/sys-apps/hdparm/files/digest-hdparm-7.5 deleted file mode 100644 index 5a2076e3b15d..000000000000 --- a/sys-apps/hdparm/files/digest-hdparm-7.5 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 a608b3faf1b315fa5bb1ee04c1ee8952 hdparm-7.5.tar.gz 62100 -RMD160 67af1b24c39dbbe384191b0c46c4ff6245b3e384 hdparm-7.5.tar.gz 62100 -SHA256 5216ee1cbfcaf9d9ecd2bdbc5b927a914d369b00c8d23c4f58b1465ed5782001 hdparm-7.5.tar.gz 62100 diff --git a/sys-apps/hdparm/files/hdparm-init-7 b/sys-apps/hdparm/files/hdparm-init-7 deleted file mode 100644 index 22abcdc83d0a..000000000000 --- a/sys-apps/hdparm/files/hdparm-init-7 +++ /dev/null @@ -1,147 +0,0 @@ -#!/sbin/runscript -# METHOD -# ------ -# if /dev/ide exists, find all block devices beneath it named disc, cd, or -# generic. -# -# for the disc and cd ones, if there is a a matching /dev/hdX symlink and -# hdX_args is set in the config file, use hdX_args. otherwise, if there is a -# matching /dev/discs/discX or /dev/cdroms/cdromX symlink, and discX_args or -# cdromX_args is set in the config file, use discX_args / cdromX_args. finally, -# if all_args is set in the config file, use that. -# -# for the generic ones, sort them and look for genericX_args in the config file -# or use all_args. -# -# if /dev/ide does not exist, check the /dev/hdX entries, and see which ones -# correspond to real devices by opening them for reading. then check hdX_args -# and all_args in the config file. -# -# for each device considered, if no args are found in the config file, do not -# run hdparm. - -depend() { - before bootmisc -} - -do_hdparm() { - if [[ -z ${args}${all_args}${!extra_args} ]] ; then - return 0 - fi - if [[ -n ${args:=${all_args} ${!extra_args}} ]] ; then - local orgdevice=$(readlink -f ${device}) - if [[ -b ${orgdevice} ]] ; then - ebegin "Running hdparm on ${device}" - hdparm ${args} ${device} > /dev/null - eend $? - fi - fi -} - -scan_devfs() { - extra_args="pata_all_args" - - # devfs compatible systems - for device in $(find /dev/ide -name disc) - do - args='' - - for alias in /dev/hd? - do - if [ $alias -ef $device ] - then - device=$alias - eval args=\${`basename $alias`_args} - break - fi - done - - [ -z "$args" ] && for alias in /dev/discs/* - do - if [ $alias/disc -ef $device ] - then - device=$alias/disc - eval args=\${`basename $alias`_args} - break - fi - done - - do_hdparm - - done - - for device in $(find /dev/ide -name cd) - do - - args='' - - for alias in /dev/hd? - do - if [ $alias -ef $device ] - then - device=$alias - eval args=\${`basename $alias`_args} - break - fi - done - - [ -z "$args" ] && for alias in /dev/cdroms/* - do - if [ $alias -ef $device ] - then - device=$alias - eval args=\${`basename $alias`_args} - break - fi - done - - do_hdparm - done - - local count=0 - # of course, the sort approach would fail here if any of the - # host/bus/target/lun numbers reached 2 digits.. - for device in $(find /dev/ide -name generic | sort) - do - eval args=\${generic${count}_args} - do_hdparm - ((++count)) - done -} - -scan_nondevfs() { - # non-devfs compatible system - for device in /dev/hd? /dev/sd? ; do - case ${device} in - /dev/hd*) extra_args="pata_all_args" ;; - /dev/sd*) extra_args="sata_all_args" ;; - *) extra_args="" ;; - esac - - # check that the block device really exists by - # opening it for reading - local errmsg status - errmsg=$(export LC_ALL=C ; : 2>&1 <$device) - status=$? - if [[ -b $device ]] && \ - [[ ${status} == 0 || ${errmsg} == *": No medium found" ]] - then - local conf_var="${device##*/}_args" - args=${!conf_var} - do_hdparm - fi - done -} - -start() { - if get_bootparam "nohdparm" ; then - ewarn "Skipping hdparm init as requested in kernel cmdline" - return 0 - fi - - if [[ -e /dev/.devfsd ]] && [[ -d /dev/ide ]] ; then - scan_devfs - else - scan_nondevfs - fi -} diff --git a/sys-apps/hdparm/hdparm-6.9-r1.ebuild b/sys-apps/hdparm/hdparm-6.9-r1.ebuild deleted file mode 100644 index d1c58512e844..000000000000 --- a/sys-apps/hdparm/hdparm-6.9-r1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-6.9-r1.ebuild,v 1.4 2007/04/24 13:41:15 gustavoz Exp $ - -inherit toolchain-funcs - -DESCRIPTION="Utility to change hard drive performance parameters" -HOMEPAGE="http://sourceforge.net/projects/hdparm/" -SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ia64 mips ~ppc ~ppc64 ~s390 ~sh sparc x86" -IUSE="" - -DEPEND="" - -src_unpack() { - unpack ${A} - cd ${S} - sed -i \ - -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ - -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ - Makefile || die "sed" -} - -src_compile() { - emake CC="$(tc-getCC)" || die "compile error" -} - -src_install() { - into / - dosbin hdparm contrib/idectl || die "dosbin" - - newinitd "${FILESDIR}"/hdparm-init-8 hdparm - newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm - - doman hdparm.8 - dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig -} diff --git a/sys-apps/hdparm/hdparm-6.9.ebuild b/sys-apps/hdparm/hdparm-6.9.ebuild deleted file mode 100644 index 4854e7101a28..000000000000 --- a/sys-apps/hdparm/hdparm-6.9.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-6.9.ebuild,v 1.10 2007/03/12 18:25:05 kloeri Exp $ - -inherit toolchain-funcs - -DESCRIPTION="Utility to change hard drive performance parameters" -HOMEPAGE="http://sourceforge.net/projects/hdparm/" -SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" -IUSE="" - -DEPEND="" - -src_unpack() { - unpack ${A} - cd ${S} - sed -i \ - -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ - -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ - Makefile || die "sed" -} - -src_compile() { - emake CC="$(tc-getCC)" || die "compile error" -} - -src_install() { - into / - dosbin hdparm contrib/idectl || die "dosbin" - - newinitd "${FILESDIR}"/hdparm-init-7 hdparm - newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm - - doman hdparm.8 - dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig -} diff --git a/sys-apps/hdparm/hdparm-7.3.ebuild b/sys-apps/hdparm/hdparm-7.3.ebuild deleted file mode 100644 index 8cec3495004a..000000000000 --- a/sys-apps/hdparm/hdparm-7.3.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-7.3.ebuild,v 1.10 2007/06/20 09:55:53 vapier Exp $ - -inherit toolchain-funcs - -DESCRIPTION="Utility to change hard drive performance parameters" -HOMEPAGE="http://sourceforge.net/projects/hdparm/" -SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" -IUSE="" - -DEPEND="" - -src_unpack() { - unpack ${A} - cd "${S}" - sed -i \ - -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ - -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ - -e "/strip hdparm/d" \ - Makefile || die "sed" -} - -src_compile() { - emake CC="$(tc-getCC)" || die "compile error" -} - -src_install() { - into / - dosbin hdparm contrib/idectl || die "dosbin" - - newinitd "${FILESDIR}"/hdparm-init-8 hdparm - newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm - - doman hdparm.8 - dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig -} diff --git a/sys-apps/hdparm/hdparm-7.5.ebuild b/sys-apps/hdparm/hdparm-7.5.ebuild deleted file mode 100644 index 6e4cca189948..000000000000 --- a/sys-apps/hdparm/hdparm-7.5.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-7.5.ebuild,v 1.2 2007/07/15 14:31:29 armin76 Exp $ - -inherit toolchain-funcs - -DESCRIPTION="Utility to change hard drive performance parameters" -HOMEPAGE="http://sourceforge.net/projects/hdparm/" -SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86" -IUSE="" - -DEPEND="" - -src_unpack() { - unpack ${A} - cd "${S}" - sed -i \ - -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \ - -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \ - -e "/strip hdparm/d" \ - Makefile || die "sed" -} - -src_compile() { - emake CC="$(tc-getCC)" || die "compile error" -} - -src_install() { - into / - dosbin hdparm contrib/idectl || die "dosbin" - - newinitd "${FILESDIR}"/hdparm-init-8 hdparm - newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm - - doman hdparm.8 - dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig -} |