pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/30199: sysutils/smartmontools fixes and enhancement
j+nbsd%2005.salmi.ch@localhost --> pkgsrc-bugs (2005-05-11 14:30:00 +0000):
> >Fix:
> I'll apply the patch to the PR asap;
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
diff -ru pkgsrc/sysutils/smartmontools.orig/Makefile
pkgsrc/sysutils/smartmontools/Makefile
--- pkgsrc/sysutils/smartmontools.orig/Makefile 2005-04-12 13:23:25.000000000
+0200
+++ pkgsrc/sysutils/smartmontools/Makefile 2005-05-11 16:10:47.000000000
+0200
@@ -19,6 +19,7 @@
CONF_FILES= ${EGDIR}/smartd.conf ${PKG_SYSCONFDIR}/smartd.conf
RCD_SCRIPTS= smartd
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/smartmontools
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
diff -ru pkgsrc/sysutils/smartmontools.orig/files/smartd.sh
pkgsrc/sysutils/smartmontools/files/smartd.sh
--- pkgsrc/sysutils/smartmontools.orig/files/smartd.sh 2004-10-22
14:12:22.000000000 +0200
+++ pkgsrc/sysutils/smartmontools/files/smartd.sh 2005-05-11
16:10:55.000000000 +0200
@@ -11,8 +11,11 @@
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="@VARBASE@/run/${name}.pid"
-smartd_flags="-p $pidfile"
-extra_commands="reload"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+command_args="-p $pidfile"
+extra_commands="reload check"
+check_precmd='[ "$rc_pid" ]'
+check_cmd='kill -USR1 $rc_pid'
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index