Annotation of /trunk/core/hdparm/hdparm-9.15-r1.smage2
Parent Directory | Revision Log
Revision 1096 -
(hide annotations)
(download)
Wed Apr 22 12:16:27 2009 UTC (15 years, 5 months ago) by niro
File size: 1111 byte(s)
Wed Apr 22 12:16:27 2009 UTC (15 years, 5 months ago) by niro
File size: 1111 byte(s)
auto added: ver bump to 9.15-r1
1 | niro | 1096 | # $Id$ |
2 | |||
3 | PNAME="hdparm" | ||
4 | PVER="9.15" | ||
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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |