aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/monitord/Makefile3
-rw-r--r--sysutils/monitord/files/patch-aa6
-rw-r--r--sysutils/monitord/pkg-plist4
3 files changed, 9 insertions, 4 deletions
diff --git a/sysutils/monitord/Makefile b/sysutils/monitord/Makefile
index 5937b09e605f..4f92bbc18cb0 100644
--- a/sysutils/monitord/Makefile
+++ b/sysutils/monitord/Makefile
@@ -14,4 +14,7 @@ MAINTAINER= walt@erudition.net
MAN8= monitord.8
+post-install:
+ @${CP} ${WRKSRC}/monitord.conf ${PREFIX}/etc/monitord.conf.dist
+
.include <bsd.port.mk>
diff --git a/sysutils/monitord/files/patch-aa b/sysutils/monitord/files/patch-aa
index 76bab31d5f10..1c02b24e178a 100644
--- a/sysutils/monitord/files/patch-aa
+++ b/sysutils/monitord/files/patch-aa
@@ -1,5 +1,5 @@
---- Makefile.orig Thu Jun 15 12:17:14 2000
-+++ Makefile Tue Jun 20 12:28:02 2000
+--- Makefile.orig Thu Jun 15 11:17:14 2000
++++ Makefile Sun Jun 17 14:56:30 2001
@@ -6,7 +6,7 @@
TARGET = monitord
@@ -17,5 +17,5 @@
- $(INSTALL) -c $(TARGET).conf /usr/local/etc
- $(INSTALL) -c $(TARGET).8 $(MANDIR)/man8
+ $(BSD_INSTALL_PROGRAM) $(TARGET) $(PREFIX)/bin
-+ $(BSD_INSTALL_DATA) $(TARGET).conf $(PREFIX)/etc
++ if [ ! -e $(PREFIX)/etc/$(TARGET).conf ] ; then $(BSD_INSTALL_DATA) $(TARGET).conf $(PREFIX)/etc; fi
+ $(BSD_INSTALL_MAN) -c $(TARGET).8 $(MANDIR)/man8
diff --git a/sysutils/monitord/pkg-plist b/sysutils/monitord/pkg-plist
index 6926e2af1dd8..00506631c1af 100644
--- a/sysutils/monitord/pkg-plist
+++ b/sysutils/monitord/pkg-plist
@@ -1,2 +1,4 @@
-etc/monitord.conf
+@unexec if cmp -s %D/etc/monitord.conf %D/etc/monitord.conf.dist; then rm -f %D/etc/monitord.conf; fi
+etc/monitord.conf.dist
+@exec [ -f %B/monitord.conf ] || cp %B/%f %B/monitord.conf
bin/monitord