add needed package part-1
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/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 shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.configure()
|
||||
|
||||
def build():
|
||||
autotools.make("CFLAGS='%s'" % get.CFLAGS())
|
||||
|
||||
def install():
|
||||
pisitools.doman("irqbalance.1")
|
||||
pisitools.dosbin("irqbalance")
|
||||
|
||||
pisitools.dodoc("COPYING", "AUTHORS")
|
||||
@@ -0,0 +1,46 @@
|
||||
from comar.service import *
|
||||
import os
|
||||
|
||||
serviceType = "local"
|
||||
serviceConf = "irqbalance"
|
||||
serviceDefault = "conditional"
|
||||
serviceDesc = _({"en": "Irqbalance Daemon",
|
||||
"tr": "Irqbalance Servisi"})
|
||||
|
||||
@synchronized
|
||||
def start():
|
||||
args = ""
|
||||
oneshot = config.get("ONESHOT")
|
||||
affinity = config.get("IRQ_AFFINITY_MASK")
|
||||
|
||||
if oneshot == "yes" and os.path.exists("/run/irqbalance.pid"):
|
||||
return
|
||||
|
||||
if oneshot == "yes":
|
||||
args += ("--oneshot -f")
|
||||
|
||||
if affinity:
|
||||
os.environ["IRQBALANCE_BANNED_CPUS"] = affinity
|
||||
|
||||
startService(command="/usr/sbin/irqbalance",
|
||||
args=args, donotify=True)
|
||||
os.system("pidof -o %PPID /usr/sbin/irqbalance > /run/irqbalance.pid")
|
||||
|
||||
@synchronized
|
||||
def stop():
|
||||
stopService(command="/usr/sbin/irqbalance",
|
||||
pidfile="/run/irqbalance.pid",
|
||||
donotify=True)
|
||||
|
||||
try:
|
||||
os.unlink("/var/lock/subsys/irqbalance")
|
||||
except:
|
||||
pass
|
||||
|
||||
def ready():
|
||||
status = is_on()
|
||||
if status == "on" or (status == "conditional" and os.path.exists("/sys/devices/system/cpu/cpu1")):
|
||||
start()
|
||||
|
||||
def status():
|
||||
return isServiceRunning("/run/irqbalance.pid")
|
||||
@@ -0,0 +1,18 @@
|
||||
# irqbalance is a daemon process that distributes interrupts across
|
||||
# CPUS on SMP systems. The default is to rebalance once every 10
|
||||
# seconds. There is one configuration option:
|
||||
#
|
||||
# ONESHOT=yes
|
||||
# after starting, wait for a minute, then look at the interrupt
|
||||
# load and balance it once; after balancing exit and do not change
|
||||
# it again.
|
||||
ONESHOT=
|
||||
|
||||
#
|
||||
# IRQ_AFFINITY_MASK
|
||||
# 64 bit bitmask which allows you to indicate which cpu's should
|
||||
# be skipped when reblancing irqs. Cpu numbers which have their
|
||||
# corresponding bits set to zero in this mask will not have any
|
||||
# irq's assigned to them on rebalance
|
||||
#
|
||||
#IRQ_AFFINITY_MASK=
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=irqbalance daemon
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>irqbalance</Name>
|
||||
<Homepage>http://www.irqbalance.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>service</IsA>
|
||||
<Summary>Distribute hardware interrupts across processors</Summary>
|
||||
<Description>Daemon to balance IRQs across multiple CPUs on systems.This can lead to better performance and I/O balance on SMP systems.</Description>
|
||||
<!--<Archive sha1sum="01ad859a1eb0266e4ccbcffd7990a729c2befedb" type="tarbz2">http://pkgs.fedoraproject.org/repo/pkgs/irqbalance/irqbalance-1.0.4.tar.bz2/f7ca283c46331db73f27e686a643dcfb/irqbalance-1.0.4.tar.bz2</Archive>-->
|
||||
<Archive sha1sum="29b92a17d71b35966811ac3229bbb199bf53cd83" type="tarbz2">http://pkgs.fedoraproject.org/repo/pkgs/irqbalance/irqbalance-1.0.7.tar.bz2/09cb0ab81ab4f3401a7ff5dabc158a1e/irqbalance-1.0.7.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>numactl-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>irqbalance</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>numactl</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="data">/lib/systemd/system</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/irqbalance">irqbalance.confd</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/lib/systemd/system/irqbalance.service">irqbalance.service</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="service.py">System.Service</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-06-06</Date>
|
||||
<Version>1.0.7</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Aydın Demirel</Name>
|
||||
<Email>aydin.demirel@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-26</Date>
|
||||
<Version>1.0.4</Version>
|
||||
<Comment>Rebuild with new Download Area</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-01</Date>
|
||||
<Version>1.0.4</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Erdem Artan</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>irqbalance</Name>
|
||||
<Summary xml:lang="tr">Donanım kesmelerini işlemciler arasında dağıtır</Summary>
|
||||
<Description xml:lang="tr">Birden fazla işlemcili sistemlerde donanım kesmelerini (hardware interrupt) işlemciler arasında dağıtarak dengeleme sağlayan artalan süreci. Bu SMP (simetrik çoklu işlemcili) sistemlerde daha iyi performans ve G/Ç dengesi sağlar.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user