Contents of /trunk/core/hdparm/hdparm-8.9-r1.smage2
Parent Directory | Revision Log
Revision 28 -
(show annotations)
(download)
Fri Oct 10 23:25:33 2008 UTC (15 years, 7 months ago) by niro
File size: 1155 byte(s)
Fri Oct 10 23:25:33 2008 UTC (15 years, 7 months ago) by niro
File size: 1155 byte(s)
- moved to 'core'
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="8.9" |
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 | SRC_URI=( |
21 | sourceforge://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/hdparm.confd |
24 | mirror://${PNAME}/hdparm.rc |
25 | ) |
26 | |
27 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | # fix CFLAGS |
35 | sed -i "/^CFLAGS/ s:-O2:${CFLAGS}:" Makefile || die |
36 | } |
37 | |
38 | src_compile() |
39 | { |
40 | cd ${SRCDIR} |
41 | mmake || die |
42 | } |
43 | |
44 | src_install() |
45 | { |
46 | cd ${SRCDIR} |
47 | |
48 | # needed directories |
49 | minstalldir /sbin || die |
50 | minstalldir /usr/share/man/man8 || die |
51 | |
52 | mmake DESTDIR=${BINDIR} install || die |
53 | |
54 | # install our initscript |
55 | minstallrc hdparm.rc hdparm || die |
56 | |
57 | # rc config |
58 | minstallconf hdparm.confd hdparm || die |
59 | |
60 | # compress and install docs |
61 | minstalldocs Changelog LICENSE* README* hdparm-sysconfig hdparm.lsm || die |
62 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |