diff --git a/hardware/disk/smartmontools/actions.py b/hardware/disk/smartmontools/actions.py
new file mode 100644
index 0000000000..8657c8026d
--- /dev/null
+++ b/hardware/disk/smartmontools/actions.py
@@ -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")
diff --git a/hardware/disk/smartmontools/comar/service.py b/hardware/disk/smartmontools/comar/service.py
new file mode 100644
index 0000000000..5b1f00150e
--- /dev/null
+++ b/hardware/disk/smartmontools/comar/service.py
@@ -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)
diff --git a/hardware/disk/smartmontools/files/smartmontools-5.38-defaultconf.patch b/hardware/disk/smartmontools/files/smartmontools-5.38-defaultconf.patch
new file mode 100644
index 0000000000..6762b7b7e1
--- /dev/null
+++ b/hardware/disk/smartmontools/files/smartmontools-5.38-defaultconf.patch
@@ -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.
diff --git a/hardware/disk/smartmontools/files/smartmontools.sysconf b/hardware/disk/smartmontools/files/smartmontools.sysconf
new file mode 100644
index 0000000000..75d591c5a5
--- /dev/null
+++ b/hardware/disk/smartmontools/files/smartmontools.sysconf
@@ -0,0 +1,4 @@
+# command line options for smartd
+smartd_opts="-q never"
+# autogenerated config file options
+# smartd_conf_opts="-H -m root"
diff --git a/hardware/disk/smartmontools/pspec.xml b/hardware/disk/smartmontools/pspec.xml
new file mode 100644
index 0000000000..c75cf38b4d
--- /dev/null
+++ b/hardware/disk/smartmontools/pspec.xml
@@ -0,0 +1,76 @@
+
+
+
+
+ smartmontools
+ http://smartmontools.sourceforge.net/
+
+ PisiLinux Community
+ admins@pisilinux.org
+
+ GPLv2+
+ app:console
+ Programs to control and monitor storage systems using the Self-Monitoring
+ 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.
+ mirrors://sourceforge/smartmontools/6.4/smartmontools-6.4.tar.gz
+
+
+
+
+
+
+
+ smartmontools
+
+ libgcc
+ libcap-ng
+
+
+ /etc
+ /lib/systemd/system
+ /usr/sbin
+ /usr/share/doc
+ /usr/share/man
+ /usr/share/smartmontools
+
+
+ smartmontools.sysconf
+
+
+ System.Service
+
+
+
+
+
+ 2016-01-26
+ 6.4
+ Version bump.
+ Stefan Gronewold
+ groni@pisilinux.org
+
+
+ 2015-01-16
+ 6.0
+ configured without "/lib/systemd/system"
+ Ayhan Yalçınsoy
+ ayhanyalcinsoy@pisilinux.org
+
+
+ 2014-03-09
+ 6.0
+ Rebuild
+ Varol Maksutoğlu
+ waroi@pisilinux.org
+
+
+ 2012-11-14
+ 6.0
+ First release
+ Osman Erkan
+ osman.erkan@pisilinux.org
+
+
+
diff --git a/hardware/disk/smartmontools/translations.xml b/hardware/disk/smartmontools/translations.xml
new file mode 100644
index 0000000000..56e03ddfae
--- /dev/null
+++ b/hardware/disk/smartmontools/translations.xml
@@ -0,0 +1,8 @@
+
+
+
+ smartmontools
+ Hard disk kontrol ve durumunu gösteren programlar
+ smartctl ve smartd adlı ATA ve SCSI diskleri kontrol ve durumlarını gösterir iki program.
+
+
diff --git a/pisi-index.xml b/pisi-index.xml
index dfccc23d18..690533c318 100644
--- a/pisi-index.xml
+++ b/pisi-index.xml
@@ -20707,6 +20707,76 @@
+
+
+ smartmontools
+ http://smartmontools.sourceforge.net/
+
+ PisiLinux Community
+ admins@pisilinux.org
+
+ GPLv2+
+ app:console
+ hardware.disk
+ Programs to control and monitor storage systems using the Self-Monitoring
+ Hard disk kontrol ve durumunu gösteren programlar
+ 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.
+ smartctl ve smartd adlı ATA ve SCSI diskleri kontrol ve durumlarını gösterir iki program.
+ mirrors://sourceforge/smartmontools/6.4/smartmontools-6.4.tar.gz
+ hardware/disk/smartmontools/pspec.xml
+
+
+ smartmontools
+
+ libgcc
+ libcap-ng
+
+
+ /etc
+ /lib/systemd/system
+ /usr/sbin
+ /usr/share/doc
+ /usr/share/man
+ /usr/share/smartmontools
+
+
+ System.Service
+
+
+ smartmontools.sysconf
+
+
+
+
+ 2016-01-26
+ 6.4
+ Version bump.
+ Stefan Gronewold
+ groni@pisilinux.org
+
+
+ 2015-01-16
+ 6.0
+ configured without "/lib/systemd/system"
+ Ayhan Yalçınsoy
+ ayhanyalcinsoy@pisilinux.org
+
+
+ 2014-03-09
+ 6.0
+ Rebuild
+ Varol Maksutoğlu
+ waroi@pisilinux.org
+
+
+ 2012-11-14
+ 6.0
+ First release
+ Osman Erkan
+ osman.erkan@pisilinux.org
+
+
+
squashfs-tools
diff --git a/pisi-index.xml.sha1sum b/pisi-index.xml.sha1sum
index 811a95f7b7..4974428fe7 100644
--- a/pisi-index.xml.sha1sum
+++ b/pisi-index.xml.sha1sum
@@ -1 +1 @@
-161091cb03e33c6950ce38056889e3157c84879d
\ No newline at end of file
+968e0debd51b2b11ce2470c7e9705ee61239b3ae
\ No newline at end of file
diff --git a/pisi-index.xml.xz b/pisi-index.xml.xz
index 8a6ac4d895..f1c396f400 100644
Binary files a/pisi-index.xml.xz and b/pisi-index.xml.xz differ
diff --git a/pisi-index.xml.xz.sha1sum b/pisi-index.xml.xz.sha1sum
index 35e4d6d7e2..c60b39b209 100644
--- a/pisi-index.xml.xz.sha1sum
+++ b/pisi-index.xml.xz.sha1sum
@@ -1 +1 @@
-e7180d7512067ad8df7faef10326d7797fe747a2
\ No newline at end of file
+f2d96aaecb2d1d774750b34dad81a003bde62e63
\ No newline at end of file