diff options
-rw-r--r-- | sysutils/smartmontools-devel/Makefile | 2 | ||||
-rw-r--r-- | sysutils/smartmontools-devel/files/smartd.sh | 5 | ||||
-rw-r--r-- | sysutils/smartmontools/Makefile | 2 | ||||
-rw-r--r-- | sysutils/smartmontools/files/smartd.sh | 5 |
4 files changed, 8 insertions, 6 deletions
diff --git a/sysutils/smartmontools-devel/Makefile b/sysutils/smartmontools-devel/Makefile index ed19379ec867..1424cb3d17bf 100644 --- a/sysutils/smartmontools-devel/Makefile +++ b/sysutils/smartmontools-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= smartmontools PORTVERSION= 5.30 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/sysutils/smartmontools-devel/files/smartd.sh b/sysutils/smartmontools-devel/files/smartd.sh index c8f3c66d586c..681b47d0c33a 100644 --- a/sysutils/smartmontools-devel/files/smartd.sh +++ b/sysutils/smartmontools-devel/files/smartd.sh @@ -15,13 +15,14 @@ # smartd_enable="NO" smartd_flags="" +smartd_pidfile="/var/run/smartd.pid" . %%RC_SUBR%% name="smartd" rcvar=`set_rcvar` command="%%PREFIX%%/sbin/smartd" -pidfile="/var/run/smartd.pid" +pidfile="${smartd_pidfile}" required_files="%%PREFIX%%/etc/smartd.conf" load_rc_config $name @@ -33,7 +34,7 @@ case "${smartd_flags}" in exit 1 ;; *) - smartd_flags="-p ${smartd_pidfile} ${smartd_flags}" + smartd_flags="-p ${pidfile} ${smartd_flags}" ;; esac diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile index ed19379ec867..1424cb3d17bf 100644 --- a/sysutils/smartmontools/Makefile +++ b/sysutils/smartmontools/Makefile @@ -7,7 +7,7 @@ PORTNAME= smartmontools PORTVERSION= 5.30 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/sysutils/smartmontools/files/smartd.sh b/sysutils/smartmontools/files/smartd.sh index c8f3c66d586c..681b47d0c33a 100644 --- a/sysutils/smartmontools/files/smartd.sh +++ b/sysutils/smartmontools/files/smartd.sh @@ -15,13 +15,14 @@ # smartd_enable="NO" smartd_flags="" +smartd_pidfile="/var/run/smartd.pid" . %%RC_SUBR%% name="smartd" rcvar=`set_rcvar` command="%%PREFIX%%/sbin/smartd" -pidfile="/var/run/smartd.pid" +pidfile="${smartd_pidfile}" required_files="%%PREFIX%%/etc/smartd.conf" load_rc_config $name @@ -33,7 +34,7 @@ case "${smartd_flags}" in exit 1 ;; *) - smartd_flags="-p ${smartd_pidfile} ${smartd_flags}" + smartd_flags="-p ${pidfile} ${smartd_flags}" ;; esac |