Am Wed, Nov 16, 2022 at 05:48:54PM +0000 schrieb Klemens Nanni:
> On Wed, Nov 16, 2022 at 06:25:16PM +0100, Moviuro wrote:
> > I suggest smartmontools be packaged in a way that the smartd_warning.sh
> > code is available to the smartd(8) daemon. FWIW, archlinux and FreeBSD
> > package that script respectively:
> >
> > * in /usr/share/smartmontools/smartd_warning.sh
> > * in /usr/local/etc/smartd_warning.sh
> This does a copy rather than symlink, probably just an oversight.
>
> Feedback? OK?
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/sysutils/smartmontools/Makefile,v
> retrieving revision 1.47
> diff -u -p -r1.47 Makefile
> --- Makefile 11 Mar 2022 19:58:02 -0000 1.47
> +++ Makefile 16 Nov 2022 17:46:26 -0000
> @@ -3,6 +3,7 @@ COMMENT= control and monitor storage sy
> # XXX at update time check whether C++11 is actually needed
> DISTNAME= smartmontools-7.3
> CATEGORIES= sysutils
> +REVISION= 0
>
> HOMEPAGE= https://www.smartmontools.org/
>
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/sysutils/smartmontools/pkg/PLIST,v
> retrieving revision 1.9
> diff -u -p -r1.9 PLIST
> --- pkg/PLIST 1 Mar 2022 09:53:01 -0000 1.9
> +++ pkg/PLIST 16 Nov 2022 17:47:21 -0000
> @@ -26,3 +26,4 @@ share/examples/smartmontools/Example7
> share/examples/smartmontools/Example8
> share/examples/smartmontools/README
> share/examples/smartmontools/smartd_warning.sh
> +@sample ${SYSCONFDIR}/smartd_warning.sh
Tested on two systems and works