Magellan Linux

Annotation of /branches/R11-unstable/core/hdparm/hdparm-9.45-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24977 - (hide annotations) (download)
Tue Nov 25 02:45:24 2014 UTC (9 years, 5 months ago) by niro
File size: 773 byte(s)
-release branches/R11-unstable
1 niro 22341 # $Id$
2    
3     PNAME="hdparm"
4     PVER="9.45"
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     }