diff -Naur monitord.orig/Makefile monitord/Makefile --- monitord.orig/Makefile Wed Sep 6 05:40:30 2006 +++ monitord/Makefile Thu Jun 7 13:43:11 2007 @@ -14,6 +14,8 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Service that restarts other standalone services +USE_RC_SUBR= monitord + MAN8= monitord.8 post-patch: @@ -22,5 +24,6 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/monitord.conf.sample \ ${PREFIX}/etc/monitord.conf.sample + @${CAT} ${PKGMESSAGE} .include diff -Naur monitord.orig/files/monitord.in monitord/files/monitord.in --- monitord.orig/files/monitord.in Thu Jan 1 03:00:00 1970 +++ monitord/files/monitord.in Thu Jun 7 13:09:20 2007 @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD: ports/sysutils/monitord/files/monitord.in,v 1 2007-06-07 12:48 lissyara Exp $ +# + +# PROVIDE: monitord +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable monitord: +# +#monitord_enable="YES" +# +# See monitord(8) for flags +# + +. %%RC_SUBR%% + +name="monitord" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/monitord" +required_files="%%PREFIX%%/etc/monitord.conf" + +# read settings, set default values +load_rc_config $name +: ${monitord_enable="NO"} +: ${monitord_flags="-f %%PREFIX%%/etc/monitord.conf"} + +run_rc_command "$1" diff -Naur monitord.orig/files/patch-zz monitord/files/patch-zz --- monitord.orig/files/patch-zz Thu Jan 1 03:00:00 1970 +++ monitord/files/patch-zz Thu Jun 7 13:23:07 2007 @@ -0,0 +1,11 @@ +--- Makefile.orig Thu Jun 7 13:16:14 2007 ++++ Makefile Thu Jun 7 13:16:41 2007 +@@ -24,8 +24,6 @@ + + all: $(TARGET) + +-$(TARGET): $(OBJECTS) +- $(CC) $(OBJECTS) -o $(TARGET) + + install: + $(INSTALL) -cs $(TARGET) /usr/local/sbin diff -Naur monitord.orig/pkg-message monitord/pkg-message --- monitord.orig/pkg-message Thu Jan 1 03:00:00 1970 +++ monitord/pkg-message Thu Jun 7 13:29:45 2007 @@ -0,0 +1,7 @@ +IMPORTANT NOTE: +=============== + +This port required procfs(5). +Add this line in your /etc/fstab: +proc /proc procfs rw 0 0 +