Magellan Linux

Annotation of /branches/magellan-next/core/hdparm/hdparm-9.37-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7647 - (hide annotations) (download)
Sun May 29 18:27:43 2011 UTC (13 years ago) by niro
File size: 1111 byte(s)
auto added: ver bump to 9.37-r1
1 niro 7647 # $Id$
2    
3     PNAME="hdparm"
4     PVER="9.37"
5     PBUILD="r1"
6    
7     PCATEGORIE="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    
50     # needed directories
51     minstalldir /sbin || die
52     minstalldir /usr/share/man/man8 || die
53    
54     mmake DESTDIR=${BINDIR} install || die
55    
56     # install our initscript
57     minstallrc hdparm.rc-${RC_CVS_REV} hdparm || die
58    
59     # rc config
60     minstallconf hdparm.confd hdparm || die
61    
62     # compress and install docs
63     minstalldocs Changelog LICENSE* README* hdparm-sysconfig hdparm.lsm || die
64     }