Vladimir Druzenko e52a4095e3 sysutils/smartmontools: Fix 3 issues
1. Start "smartd" service after "DAEMON" - smartd starts too early.
2. Exclude "mfid" device from automatic detection in daily "smart".
3. Add the ability to manually specify the "pass" device with parameters
   in "periodic.conf" for processing in daily "smart", example:
   daily_status_smart_devices="pass14,-dsat pass15,-dsat"

PR:		288538
Approved by:	Oleksii Samorukov <samm@FreeBSD.org> (3 explicit, 1 and 2 timeout > 1 month)
Co-authored-by:	Anton Saietskii <vsasjason@gmail.com>
2025-10-08 04:35:11 +03:00

47 lines
1.1 KiB
Makefile

PORTNAME= smartmontools
DISTVERSION= 7.5
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF
MAINTAINER= samm@FreeBSD.org
COMMENT= S.M.A.R.T. disk monitoring tools
WWW= https://www.smartmontools.org
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lib cpe
USE_RC_SUBR= smartd
GNU_CONFIGURE= yes
PORTDOCS= *
SUB_FILES= pkg-message smart
CONFIGURE_ARGS= --disable-dependency-tracking \
--enable-sample \
--with-gnupg=yes \
--with-initscriptdir=${PREFIX}/etc/rc.d \
--with-nvme-devicescan=yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's| install-initdDATA| |g' \
${PATCH_WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|install-drivedbinstDATA install-examplesDATA|install-drivedbinstDATA|g' \
${PATCH_WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|install-examplesSCRIPTS install-man|install-man|g' \
${PATCH_WRKSRC}/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
${INSTALL_SCRIPT} ${WRKDIR}/smart \
${STAGEDIR}${PREFIX}/etc/periodic/daily
${MV} ${STAGEDIR}${DATADIR}/drivedb.h \
${STAGEDIR}${DATADIR}/drivedb.h.sample
.include <bsd.port.mk>