summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2013-12-02 22:26:22 +0000
committerasau <asau@pkgsrc.org>2013-12-02 22:26:22 +0000
commit6c92b5cfc45ac37c560a19fc9aa914986b80e900 (patch)
treed0e149649d38df3a013841693c66e7f4c3afab8e /sysutils
parentb76263553a8ddeb876b76da18b3777ba4ce3e0d0 (diff)
downloadpkgsrc-6c92b5cfc45ac37c560a19fc9aa914986b80e900.tar.gz
Install the script that generates warning mail messages. From Petar Bogdanovic in private mail.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/smartmontools/MESSAGE11
-rw-r--r--sysutils/smartmontools/Makefile8
2 files changed, 18 insertions, 1 deletions
diff --git a/sysutils/smartmontools/MESSAGE b/sysutils/smartmontools/MESSAGE
new file mode 100644
index 00000000000..0f922301d4a
--- /dev/null
+++ b/sysutils/smartmontools/MESSAGE
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2013/12/02 22:26:22 asau Exp $
+
+smartd warning emails
+---------------------
+
+Since smartmontools release 6.1, smartd runs ${PKG_SYSCONFDIR}/smartd_warning.sh
+to generate warning emails. If requested, it will also run executable
+plugin scripts from ${PKG_SYSCONFDIR}/smartd_warning.d.
+
+===========================================================================
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile
index c63521c9104..81081f56aa6 100644
--- a/sysutils/smartmontools/Makefile
+++ b/sysutils/smartmontools/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2013/08/20 11:07:13 shattered Exp $
+# $NetBSD: Makefile,v 1.23 2013/12/02 22:26:22 asau Exp $
DISTNAME= smartmontools-6.2
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=smartmontools/}
@@ -18,8 +19,13 @@ USE_LANGUAGES= c c++
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
+OWN_DIRS= ${PKG_SYSCONFDIR}/smartd_warning.d
+
EGDIR= ${PREFIX}/share/examples/smartmontools
CONF_FILES= ${EGDIR}/smartd.conf ${PKG_SYSCONFDIR}/smartd.conf
+CONF_FILES_PERMS= ${EGDIR}/smartd_warning.sh \
+ ${PKG_SYSCONFDIR}/smartd_warning.sh \
+ ${ROOT_USER} ${ROOT_GROUP} 0755
RCD_SCRIPTS= smartd
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}