Contents of /trunk/core/hdparm/hdparm-9.37-r1.smage2
Parent Directory | Revision Log
Revision 10105 -
(show annotations)
(download)
Mon Jan 16 21:40:14 2012 UTC (12 years, 4 months ago) by niro
File size: 1088 byte(s)
Mon Jan 16 21:40:14 2012 UTC (12 years, 4 months ago) by niro
File size: 1088 byte(s)
-import from magellan-next
1 | # $Id$ |
2 | |
3 | PNAME="hdparm" |
4 | PVER="9.37" |
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 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mtools |
18 | |
19 | RC_CVS_REV=1.4 |
20 | |
21 | SRC_URI=( |
22 | sourceforge://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/hdparm.confd |
25 | mirror://${PNAME}/hdparm.rc-${RC_CVS_REV} |
26 | ) |
27 | |
28 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # fix CFLAGS |
36 | sed -i "/^CFLAGS/ s:-O2:${CFLAGS}:" Makefile || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | mmake || die |
43 | } |
44 | |
45 | src_install() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | # needed directories |
50 | minstalldir /sbin || die |
51 | minstalldir /usr/share/man/man8 || die |
52 | |
53 | mmake DESTDIR=${BINDIR} install || die |
54 | |
55 | # install our initscript |
56 | minstallrc hdparm.rc-${RC_CVS_REV} hdparm || die |
57 | |
58 | # rc config |
59 | minstallconf hdparm.confd hdparm || die |
60 | |
61 | # compress and install docs |
62 | minstalldocs Changelog LICENSE* README* hdparm-sysconfig hdparm.lsm || die |
63 | } |