add powermanagement and disk utils
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
pisitools.dosed("Makefile", "(?m)^(CC.*)gcc", r"\1%s" % get.CC())
|
||||
pisitools.dosed("Makefile", "(?m)^(LDFLAGS.*)-s", r"\1%s" % get.LDFLAGS())
|
||||
pisitools.dosed("Makefile", "(?m)^(CFLAGS.*)-O2", r"\1%s" % get.CFLAGS())
|
||||
|
||||
def build():
|
||||
autotools.make('STRIP=: CC="%s"' % get.CC())
|
||||
|
||||
def install():
|
||||
pisitools.dosbin("hdparm", "/sbin")
|
||||
pisitools.dosbin("contrib/idectl", "/sbin")
|
||||
|
||||
pisitools.doman("hdparm.8")
|
||||
pisitools.dodoc("hdparm.lsm", "Changelog", "README.acoustic")
|
||||
@@ -0,0 +1,21 @@
|
||||
# /etc/conf.d/hdparm: Config file for hdparm
|
||||
#
|
||||
# Hdparm is a useful system utility for setting (E)IDE hard drive parameters and it can be
|
||||
# used to tweak hard drive performance and to spin down hard drives for power conservation
|
||||
#
|
||||
# For example, for all pata drives you can use this parameter
|
||||
#
|
||||
# all="-d1 -c1"
|
||||
#
|
||||
# If you have a Seagate disk then you may need to use -Z parameter to disable the automatic
|
||||
# power-saving function of certain Seagate drives to prevent them from idling/spinning-down
|
||||
# at inconvenient times
|
||||
#
|
||||
# hda="-d1 -c1 -Z"
|
||||
#
|
||||
# You can use -X parameter to set the IDE transfer mode for newer (E)IDE/ATA drives but you
|
||||
# should select the correct mode. PIO 1-4 (Programmed IO), SDMA 0-2 (Single-word DMA),
|
||||
# MDMA 0-2 (Multi-word DMA) and UDMA 0-5 (Ultra-DMA)
|
||||
#
|
||||
# hda="-d1 -c1 -X udma5"
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>hdparm</Name>
|
||||
<Homepage>http://sourceforge.net/projects/hdparm/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>as-is</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Utility to change hard drive performance parameters</Summary>
|
||||
<Description>hdparm has some useful utilities that allows you to get/set hard disk parameters for Linux IDE drives in runtime.</Description>
|
||||
<Archive sha1sum="3ffbcf46237245868a569125a6d5c92a0e07e7ce" type="targz">http://downloads.sourceforge.net/hdparm/hdparm-9.43.tar.gz</Archive>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>hdparm</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="config">/etc/conf.d</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/hdparm">hdparm.confd</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2014-05-24</Date>
|
||||
<Version>9.43</Version>
|
||||
<Comment>Rebuild for gcc.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2011-02-02</Date>
|
||||
<Version>9.42</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>hdparm</Name>
|
||||
<Summary xml:lang="tr">Sabit disk parametrelerini değiştirmekte kullanılan araç</Summary>
|
||||
<Description xml:lang="tr">hdparm paketi çalışma anında Linux IDE sürücülerinin parametrelerini almanıza/değiştirmenize olanak sağlayan bazı kullanışlı uygulamaları içerir.</Description>
|
||||
<Description xml:lang="fr">le paquet hdparm dispose d'outils utiles permettant d'obtenir/établir les paramètres de disques durs IDE sous Linux en cours d'éxécution.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user