Contents of /trunk/core/hdparm/hdparm-9.6-r2.smage2
Parent Directory | Revision Log
Revision 341 -
(show annotations)
(download)
Mon Dec 22 22:37:06 2008 UTC (15 years, 9 months ago) by niro
File size: 1199 byte(s)
Mon Dec 22 22:37:06 2008 UTC (15 years, 9 months ago) by niro
File size: 1199 byte(s)
-rev bump to 9.6-r2; fixed rc script
1 | # $Header: /magellan-cvs/smage/hdparm/hdparm-8.8-r1.smage2,v 1.1 2008/06/13 18:18:38 niro Exp $ |
2 | |
3 | PNAME="hdparm" |
4 | PVER="9.6" |
5 | PBUILD="r2" |
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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |