mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
59 lines
2.0 KiB
Tcl
59 lines
2.0 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup github 1.0
|
|
|
|
set real_version 7.5
|
|
github.setup smartmontools smartmontools [string map {. _} $real_version] RELEASE_
|
|
version $real_version
|
|
categories sysutils
|
|
license GPL-2+
|
|
|
|
maintainers {gmail.com:rjvbertin @RJVB} openmaintainer
|
|
|
|
description SMART hard drive monitoring
|
|
|
|
long_description \
|
|
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. In many cases, these utilities will provide advanced warning \
|
|
of disk degradation and failure.
|
|
|
|
homepage https://www.smartmontools.org/
|
|
|
|
github.tarball_from releases
|
|
distname ${github.project}-${version}
|
|
checksums rmd160 a82d3d82ab8e451ef4a795b08e6c4183463eef53 \
|
|
sha256 690b83ca331378da9ea0d9d61008c4b22dde391387b9bbad7f29387f2595f76e \
|
|
size 1122317
|
|
|
|
configure.args --without-savestates \
|
|
--without-attributelog \
|
|
--enable-sample \
|
|
--with-libcap-ng=no
|
|
|
|
platform darwin {
|
|
if {${configure.cxx_stdlib} eq "libstdc++"} {
|
|
configure.args-append \
|
|
--with-cxx11-option=no
|
|
}
|
|
}
|
|
|
|
destroot.keepdirs ${destroot}${prefix}/var/run \
|
|
${destroot}${prefix}/var/lib/smartmontools
|
|
|
|
default_variants +savestates +attributelog
|
|
|
|
variant savestates description {Use default smartd state files} {
|
|
configure.args-replace --without-savestates --with-savestates
|
|
}
|
|
|
|
variant attributelog description {Use default smartd attribute log files} {
|
|
configure.args-replace --without-attributelog --with-attributelog
|
|
}
|
|
|
|
startupitem.create yes
|
|
startupitem.name smartd
|
|
startupitem.executable ${prefix}/sbin/smartd -n
|