Contents of /trunk/core/hdparm/hdparm-9.56-r1.smage2
Parent Directory | Revision Log
Revision 30756 -
(show annotations)
(download)
Tue Apr 3 09:04:14 2018 UTC (6 years, 5 months ago) by niro
File size: 773 byte(s)
Tue Apr 3 09:04:14 2018 UTC (6 years, 5 months ago) by niro
File size: 773 byte(s)
auto added: ver bump to 9.56-r1
1 | # $Id$ |
2 | |
3 | PNAME="hdparm" |
4 | PVER="9.56" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="Utility to change hard drive performance parameters." |
10 | HOMEPAGE="http://sourceforge.net/projects/hdparm/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= virtual/sed" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | sourceforge://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd_sourceforge ${PNAME} gz" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # fix CFLAGS |
33 | sed -i "/^CFLAGS/ s:-O2:${CFLAGS}:" Makefile || die |
34 | } |
35 | |
36 | src_compile() |
37 | { |
38 | cd ${SRCDIR} |
39 | mmake || die |
40 | } |
41 | |
42 | src_install() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | mmake DESTDIR=${BINDIR} sbindir=/usr/sbin install || die |
47 | minstalldocs Changelog LICENSE.TXT README.acoustic TODO |
48 | } |