1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs flag-o-matic
8 DESCRIPTION="Utility to change hard drive performance parameters"
9 HOMEPAGE="https://sourceforge.net/projects/hdparm/"
10 SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz"
12 LICENSE="BSD GPL-2" # GPL-2 only
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
18 "${FILESDIR}"/${PN}-9.51-build.patch
23 use static && append-ldflags -static
33 dosbin hdparm contrib/idectl
35 newinitd "${FILESDIR}"/hdparm-init-8 hdparm
36 newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm
39 dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig
41 dodoc wiper/{README.txt,wiper.sh}
42 docompress -x /usr/share/doc/${PF}/wiper/wiper.sh