Magellan Linux

Contents of /trunk/core/hdparm/hdparm-9.43-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22138 - (show annotations) (download)
Mon Sep 8 13:18:01 2014 UTC (9 years, 9 months ago) by niro
File size: 748 byte(s)
-forgot to save
1 # $Id$
2
3 PNAME="hdparm"
4 PVER="9.43"
5 PBUILD="r3"
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
14 SRCFILE="${PNAME}-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude mtools
18
19 SRC_URI=(
20 sourceforge://${PNAME}/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2DATE="updatecmd_sourceforge ${PNAME} gz"
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # fix CFLAGS
32 sed -i "/^CFLAGS/ s:-O2:${CFLAGS}:" Makefile || die
33 }
34
35 src_compile()
36 {
37 cd ${SRCDIR}
38 mmake || die
39 }
40
41 src_install()
42 {
43 cd ${SRCDIR}
44
45 mmake DESTDIR=${BINDIR} sbindir=/usr/sbin install || die
46 minstalldocs Changelog LICENSE.TXT README.acoustic TODO
47 }