Magellan Linux

Contents of /trunk/core/hdparm/hdparm-9.39-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12753 - (show annotations) (download)
Mon Jul 2 14:37:15 2012 UTC (11 years, 11 months ago) by niro
File size: 1030 byte(s)
-marked unstable
1 # $Id$
2
3 PNAME="hdparm"
4 PVER="9.39"
5 PBUILD="r2"
6
7 PCAT="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Utility to change hard drive performance parameters."
11 HOMEPAGE="http://sourceforge.net/projects/hdparm/"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 RC_CVS_REV=1.4
21
22 SRC_URI=(
23 sourceforge://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/hdparm.confd
26 mirror://${PNAME}/hdparm.rc-${RC_CVS_REV}
27 )
28
29 UP2DATE="updatecmd_sourceforge ${PNAME}"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # fix CFLAGS
37 sed -i "/^CFLAGS/ s:-O2:${CFLAGS}:" Makefile || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43 mmake || die
44 }
45
46 src_install()
47 {
48 cd ${SRCDIR}
49 mmake DESTDIR=${BINDIR} binprefix=/usr install || die
50
51 # install our initscript
52 minstallrc hdparm.rc-${RC_CVS_REV} hdparm || die
53
54 # rc config
55 minstallconf hdparm.confd hdparm || die
56
57 # compress and install docs
58 minstalldocs Changelog LICENSE* README* hdparm-sysconfig hdparm.lsm || die
59 }