add smartmontools Programs to control and monitor storage systems using the Self-Monitoring
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
#!/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 pisitools
|
||||||
|
from pisi.actionsapi import autotools
|
||||||
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
|
def setup():
|
||||||
|
shelltools.touch("ChangeLog")
|
||||||
|
autotools.autoreconf("-fi")
|
||||||
|
autotools.configure("--with-libcap-ng=yes \
|
||||||
|
--enable-drivedb \
|
||||||
|
--with-systemdsystemunitdir=no")
|
||||||
|
|
||||||
|
def build():
|
||||||
|
autotools.make("CXXFLAGS='%s -fpie'" % get.CXXFLAGS())
|
||||||
|
|
||||||
|
def install():
|
||||||
|
pisitools.dosed("smartd.service.in","sysconfig/smartmontools","conf.d/smartd")
|
||||||
|
pisitools.dosed("smartd.service.in","smartd_opts","SMARTD_ARGS")
|
||||||
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
|
pisitools.dodoc("AUTHORS", "NEWS", "README", "smartd.conf")
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
from comar.service import *
|
||||||
|
|
||||||
|
serviceType="server"
|
||||||
|
serviceDesc = _({"en": "S.M.A.R.T. monitoring daemon",
|
||||||
|
"tr": "S.M.A.R.T. disk izleme hizmeti"})
|
||||||
|
|
||||||
|
serviceConf = "smartd"
|
||||||
|
PIDFILE = "/run/smartd.pid"
|
||||||
|
|
||||||
|
|
||||||
|
@synchronized
|
||||||
|
def start():
|
||||||
|
args = "-p %s" % PIDFILE
|
||||||
|
if config.get("smartd_opts"):
|
||||||
|
args = "%s %s" % (args, config.get("smartd_opts"))
|
||||||
|
startService(command="/usr/sbin/smartd",
|
||||||
|
args=args,
|
||||||
|
donotify=True)
|
||||||
|
|
||||||
|
@synchronized
|
||||||
|
def stop():
|
||||||
|
stopService(pidfile=PIDFILE,
|
||||||
|
donotify=True)
|
||||||
|
|
||||||
|
def reload():
|
||||||
|
# FIXME: That's bad.
|
||||||
|
run("/usr/bin/killall -HUP smartd")
|
||||||
|
|
||||||
|
def status():
|
||||||
|
return isServiceRunning(pidfile=PIDFILE)
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
diff -up smartmontools-5.38/smartd.conf.defaultconf smartmontools-5.38/smartd.conf
|
||||||
|
--- smartmontools-5.38/smartd.conf.defaultconf 2008-08-07 12:21:53.000000000 +0200
|
||||||
|
+++ smartmontools-5.38/smartd.conf 2008-08-07 12:24:26.000000000 +0200
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
# Directives listed below, which will be applied to all devices that
|
||||||
|
# are found. Most users should comment out DEVICESCAN and explicitly
|
||||||
|
# list the devices that they wish to monitor.
|
||||||
|
-DEVICESCAN
|
||||||
|
+DEVICESCAN -H -m root -n standby,10,q
|
||||||
|
|
||||||
|
# Alternative setting to ignore temperature and power-on hours reports
|
||||||
|
# in syslog.
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# command line options for smartd
|
||||||
|
smartd_opts="-q never"
|
||||||
|
# autogenerated config file options
|
||||||
|
# smartd_conf_opts="-H -m root"
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>smartmontools</Name>
|
||||||
|
<Homepage>http://smartmontools.sourceforge.net/</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>GPLv2+</License>
|
||||||
|
<IsA>app:console</IsA>
|
||||||
|
<Summary>Programs to control and monitor storage systems using the Self-Monitoring</Summary>
|
||||||
|
<Description>The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA and SCSI hard disks.</Description>
|
||||||
|
<Archive sha1sum="855c7d555dd405e5b392b1631dc36dd9632db8b8" type="targz">mirrors://sourceforge/smartmontools/6.4/smartmontools-6.4.tar.gz</Archive>
|
||||||
|
<Patches>
|
||||||
|
<!--<Patch level="1">smartmontools-5.38-defaultconf.patch</Patch>-->
|
||||||
|
<!--
|
||||||
|
<Patch level="1">smartmontools-5.40-megaraid.patch</Patch>
|
||||||
|
-->
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>smartmontools</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>libgcc</Dependency>
|
||||||
|
<Dependency>libcap-ng</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="config">/etc</Path>
|
||||||
|
<Path fileType="data">/lib/systemd/system</Path>
|
||||||
|
<Path fileType="executable">/usr/sbin</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
<Path fileType="man">/usr/share/man</Path>
|
||||||
|
<Path fileType="man">/usr/share/smartmontools</Path>
|
||||||
|
</Files>
|
||||||
|
<AdditionalFiles>
|
||||||
|
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/smartd">smartmontools.sysconf</AdditionalFile>
|
||||||
|
</AdditionalFiles>
|
||||||
|
<Provides>
|
||||||
|
<COMAR script="service.py">System.Service</COMAR>
|
||||||
|
</Provides>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="4">
|
||||||
|
<Date>2016-01-26</Date>
|
||||||
|
<Version>6.4</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Stefan Gronewold</Name>
|
||||||
|
<Email>groni@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="3">
|
||||||
|
<Date>2015-01-16</Date>
|
||||||
|
<Version>6.0</Version>
|
||||||
|
<Comment>configured without "/lib/systemd/system"</Comment>
|
||||||
|
<Name>Ayhan Yalçınsoy</Name>
|
||||||
|
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="2">
|
||||||
|
<Date>2014-03-09</Date>
|
||||||
|
<Version>6.0</Version>
|
||||||
|
<Comment>Rebuild</Comment>
|
||||||
|
<Name>Varol Maksutoğlu</Name>
|
||||||
|
<Email>waroi@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2012-11-14</Date>
|
||||||
|
<Version>6.0</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Osman Erkan</Name>
|
||||||
|
<Email>osman.erkan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>smartmontools</Name>
|
||||||
|
<Summary xml:lang="tr">Hard disk kontrol ve durumunu gösteren programlar</Summary>
|
||||||
|
<Description xml:lang="tr">smartctl ve smartd adlı ATA ve SCSI diskleri kontrol ve durumlarını gösterir iki program.</Description>
|
||||||
|
</Source>
|
||||||
|
</PISI>
|
||||||
@@ -20707,6 +20707,76 @@
|
|||||||
</Update>
|
</Update>
|
||||||
</History>
|
</History>
|
||||||
</SpecFile>
|
</SpecFile>
|
||||||
|
<SpecFile>
|
||||||
|
<Source>
|
||||||
|
<Name>smartmontools</Name>
|
||||||
|
<Homepage>http://smartmontools.sourceforge.net/</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>GPLv2+</License>
|
||||||
|
<IsA>app:console</IsA>
|
||||||
|
<PartOf>hardware.disk</PartOf>
|
||||||
|
<Summary xml:lang="en">Programs to control and monitor storage systems using the Self-Monitoring</Summary>
|
||||||
|
<Summary xml:lang="tr">Hard disk kontrol ve durumunu gösteren programlar</Summary>
|
||||||
|
<Description xml:lang="en">The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA and SCSI hard disks.</Description>
|
||||||
|
<Description xml:lang="tr">smartctl ve smartd adlı ATA ve SCSI diskleri kontrol ve durumlarını gösterir iki program.</Description>
|
||||||
|
<Archive type="targz" sha1sum="855c7d555dd405e5b392b1631dc36dd9632db8b8">mirrors://sourceforge/smartmontools/6.4/smartmontools-6.4.tar.gz</Archive>
|
||||||
|
<SourceURI>hardware/disk/smartmontools/pspec.xml</SourceURI>
|
||||||
|
</Source>
|
||||||
|
<Package>
|
||||||
|
<Name>smartmontools</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>libgcc</Dependency>
|
||||||
|
<Dependency>libcap-ng</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="config">/etc</Path>
|
||||||
|
<Path fileType="data">/lib/systemd/system</Path>
|
||||||
|
<Path fileType="executable">/usr/sbin</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
<Path fileType="man">/usr/share/man</Path>
|
||||||
|
<Path fileType="man">/usr/share/smartmontools</Path>
|
||||||
|
</Files>
|
||||||
|
<Provides>
|
||||||
|
<COMAR script="service.py">System.Service</COMAR>
|
||||||
|
</Provides>
|
||||||
|
<AdditionalFiles>
|
||||||
|
<AdditionalFile target="/etc/conf.d/smartd" permission="0644" owner="root">smartmontools.sysconf</AdditionalFile>
|
||||||
|
</AdditionalFiles>
|
||||||
|
</Package>
|
||||||
|
<History>
|
||||||
|
<Update release="4">
|
||||||
|
<Date>2016-01-26</Date>
|
||||||
|
<Version>6.4</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Stefan Gronewold</Name>
|
||||||
|
<Email>groni@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="3">
|
||||||
|
<Date>2015-01-16</Date>
|
||||||
|
<Version>6.0</Version>
|
||||||
|
<Comment>configured without "/lib/systemd/system"</Comment>
|
||||||
|
<Name>Ayhan Yalçınsoy</Name>
|
||||||
|
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="2">
|
||||||
|
<Date>2014-03-09</Date>
|
||||||
|
<Version>6.0</Version>
|
||||||
|
<Comment>Rebuild</Comment>
|
||||||
|
<Name>Varol Maksutoğlu</Name>
|
||||||
|
<Email>waroi@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2012-11-14</Date>
|
||||||
|
<Version>6.0</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Osman Erkan</Name>
|
||||||
|
<Email>osman.erkan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</SpecFile>
|
||||||
<SpecFile>
|
<SpecFile>
|
||||||
<Source>
|
<Source>
|
||||||
<Name>squashfs-tools</Name>
|
<Name>squashfs-tools</Name>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
161091cb03e33c6950ce38056889e3157c84879d
|
968e0debd51b2b11ce2470c7e9705ee61239b3ae
|
||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
e7180d7512067ad8df7faef10326d7797fe747a2
|
f2d96aaecb2d1d774750b34dad81a003bde62e63
|
||||||
Reference in New Issue
Block a user