add smartmontools Programs to control and monitor storage systems using the Self-Monitoring

This commit is contained in:
groni
2016-01-26 17:54:20 +01:00
parent 0d679b6988
commit 5b003fa80b
10 changed files with 229 additions and 2 deletions
+27
View File
@@ -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")