/[gentoo-x86]/sys-apps/hdparm/hdparm-9.39.ebuild
Gentoo

Contents of /sys-apps/hdparm/hdparm-9.39.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Sep 29 09:58:03 2012 UTC (8 months, 2 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Specify LICENSE more precisely. The package is BSD licensed, the "wiper" subdirectory under GPL-2 only.

(Portage version: 2.1.11.23/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-9.39.ebuild,v 1.9 2012/09/04 20:16:23 vapier Exp $
4
5 EAPI="4"
6
7 inherit toolchain-funcs
8
9 DESCRIPTION="Utility to change hard drive performance parameters"
10 HOMEPAGE="http://sourceforge.net/projects/hdparm/"
11 SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz"
12
13 LICENSE="BSD GPL-2" # GPL-2 only
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux"
16 IUSE=""
17
18 src_prepare() {
19 sed -i \
20 -e "/^CFLAGS/ s:-O2:${CFLAGS}:" \
21 -e "/^LDFLAGS/ s:-s:${LDFLAGS}:" \
22 Makefile || die "sed"
23 }
24
25 src_compile() {
26 emake STRIP=: CC="$(tc-getCC)"
27 }
28
29 src_install() {
30 into /
31 dosbin hdparm contrib/idectl
32
33 newinitd "${FILESDIR}"/hdparm-init-8 hdparm
34 newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm
35
36 doman hdparm.8
37 dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig
38 docinto wiper
39 dodoc wiper/{README.txt,wiper.sh}
40 }

  ViewVC Help
Powered by ViewVC 1.1.20