diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-09-21 02:26:08 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-09-21 02:26:08 +0000 |
commit | 56e5247fbfdbf5610b6629d93bef435a8f0c44ca (patch) | |
tree | 878d229a3d5b9688c4e7a76cee1372ac68e0dcde /mail/sentinel/files | |
parent | 98b16dd4b38f65206c34dd2cecdb75d65c817661 (diff) |
Notes
Diffstat (limited to 'mail/sentinel/files')
-rw-r--r-- | mail/sentinel/files/000.sentinel.sh | 35 | ||||
-rw-r--r-- | mail/sentinel/files/patch-Makefile.FreeBSD | 19 | ||||
-rw-r--r-- | mail/sentinel/files/patch-sentinel.cf.SAMPLE | 10 |
3 files changed, 64 insertions, 0 deletions
diff --git a/mail/sentinel/files/000.sentinel.sh b/mail/sentinel/files/000.sentinel.sh new file mode 100644 index 000000000000..db8fcf043587 --- /dev/null +++ b/mail/sentinel/files/000.sentinel.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +SMFILTER=${PREFIX}/sbin/sentinel +CONFIG=${PREFIX}/etc/sentinel.cf +SOCKET=${PREFIX}/var/sentinel/sentinel.socket + +case "$1" in +start) + if [ -x ${PREFIX}/sbin/sentinel -a -f ${PREFIX}/etc/sentinel.cf ] + then + if [ -f ${SOCKET} ] + then + killall sentinel + rm -f $SOCKET + fi + ${PREFIX}/sbin/sentinel -c ${PREFIX}/etc/sentinel.cf -p unix:${SOCKET} -d && echo -n ' sentinel' + fi + ;; +stop) + if [ -f ${SOCKET} ] + then + killall sentinel + fi + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/mail/sentinel/files/patch-Makefile.FreeBSD b/mail/sentinel/files/patch-Makefile.FreeBSD new file mode 100644 index 000000000000..29e6622cb8db --- /dev/null +++ b/mail/sentinel/files/patch-Makefile.FreeBSD @@ -0,0 +1,19 @@ +--- Makefile.FreeBSD.orig Tue May 14 16:05:07 2002 ++++ Makefile.FreeBSD Tue May 14 16:05:38 2002 +@@ -2,12 +2,12 @@ + + CFLAGS = -O -I../../include + +-LDFLAGS = -L../libmilter -L../libsmutil -L../libsm -pthread ++LDFLAGS = -L../libmilter -pthread + +-LIBS = -lmilter -lsmutil -lsm ++LIBS = -lmilter + + OBJS = sentinel.o + +-sentinel: $(OBJS) +- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) ++sentinel: $(OBJS) ++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + diff --git a/mail/sentinel/files/patch-sentinel.cf.SAMPLE b/mail/sentinel/files/patch-sentinel.cf.SAMPLE new file mode 100644 index 000000000000..cb97f1f89d90 --- /dev/null +++ b/mail/sentinel/files/patch-sentinel.cf.SAMPLE @@ -0,0 +1,10 @@ +--- sentinel.cf.SAMPLE.orig Tue May 14 17:18:45 2002 ++++ sentinel.cf.SAMPLE Tue May 14 17:19:20 2002 +@@ -1,6 +1,6 @@ + [global] + tmp:/var/tmp +-log:/var/log/smfilter.log ++log:/usr/local/var/sentinel/smfilter.log + user:smmsp + group:smmsp + |