diff --git a/srcpkgs/smartmontools/patches/smartd.service.in.patch b/srcpkgs/smartmontools/patches/smartd.service.in.patch new file mode 100644 index 00000000000..b2b897e02c4 --- /dev/null +++ b/srcpkgs/smartmontools/patches/smartd.service.in.patch @@ -0,0 +1,18 @@ +Remove useless redhat specific stuff from it. + +--- smartd.service.in.orig 2012-12-10 23:46:12.941631937 +0100 ++++ smartd.service.in 2012-12-10 23:46:38.323942716 +0100 +@@ -1,12 +1,9 @@ + [Unit] + Description=Self Monitoring and Reporting Technology (SMART) Daemon +-After=syslog.target + + [Service] +-EnvironmentFile=-/usr/local/etc/sysconfig/smartmontools +-ExecStart=/usr/local/sbin/smartd -n $smartd_opts ++ExecStart=/usr/local/sbin/smartd -n + ExecReload=/bin/kill -HUP $MAINPID +-StandardOutput=syslog + + [Install] + WantedBy=multi-user.target diff --git a/srcpkgs/smartmontools/template b/srcpkgs/smartmontools/template new file mode 100644 index 00000000000..f89bc797e91 --- /dev/null +++ b/srcpkgs/smartmontools/template @@ -0,0 +1,25 @@ +# Template file for 'smartmontools' +pkgname=smartmontools +version=6.0 +revision=1 +build_style=gnu-configure +configure_args="--enable-drivedb --with-libcap-ng=yes + --with-systemdsystemunitdir=/usr/lib/systemd/system + --with-drivedbdir=/var/db/${pkgname}" +short_desc="S.M.A.R.T Monitoring Tools" +maintainer="Juan RP " +license="GPL-2" +homepage="http://smartmontools.sourceforge.net" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=9fe4ff2b7bcd00fde19db82bba168f5462ed6e857d3ef439495e304e3231d3a6 +long_desc=" + 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 + harddisks. In many cases, these utilities will provide advanced warning of + disk degradation and failure." + +conf_files="/etc/smartd.conf" +mutable_files="/var/db/smartmontools/drivedb.h" +systemd_services="smartd.service on" +makedepends="libcap-ng-devel"