1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

add sentinel 1.2b

Sentinel is a sendmail milter API implementation

PR:		38085
Submitted by:	Peter Hollaubek <fifteen@inext.hu>
This commit is contained in:
Ying-Chieh Liao 2002-09-21 02:26:08 +00:00
parent 98b16dd4b3
commit 56e5247fbf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=66956
9 changed files with 118 additions and 0 deletions

View File

@ -225,6 +225,7 @@
SUBDIR += sendmail-ldap
SUBDIR += sendmail-old
SUBDIR += sendmail-sasl
SUBDIR += sentinel
SUBDIR += serialmail
SUBDIR += sigit
SUBDIR += sigrot

38
mail/sentinel/Makefile Normal file
View File

@ -0,0 +1,38 @@
# New ports collection makefile for: sentinel
# Date created: 14 May 2002
# Whom: Peter Hollaubek <fifteen@inext.hu>
#
# $FreeBSD$
#
PORTNAME= sentinel
PORTVERSION= 1.2b
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= smfilter
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
MAKEFILE= Makefile.FreeBSD
ALL_TARGET= sentinel
post-patch:
@${REINPLACE_CMD} -e "s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sentinel ${PREFIX}/sbin
@${MKDIR} ${PREFIX}/var/sentinel
${CHOWN} smmsp.smmsp ${PREFIX}/var/sentinel
${INSTALL_SCRIPT} ${FILESDIR}/000.sentinel.sh ${PREFIX}/etc/rc.d
${INSTALL_DATA} ${WRKSRC}/sentinel.cf.SAMPLE ${PREFIX}/etc/sentinel.cf.dist
post-install:
@${STRIP_CMD} ${PREFIX}/sbin/sentinel
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>

1
mail/sentinel/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (sentinel-1.2b.tar.gz) = ff166f7903569b5c5729e034e0ae8825

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -0,0 +1 @@
Sentinel is a sendmail milter API implementation

5
mail/sentinel/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
Sentinel is a sendmail milter API implementation. This package might
be usefull for unix system administrators who is using freeware
Sendmail. May be it's one more milter, but on the other side it's
flexible enough to satisfy more or less subtle requirements for mail
filtering.

8
mail/sentinel/pkg-plist Normal file
View File

@ -0,0 +1,8 @@
sbin/sentinel
etc/sentinel.cf.dist
etc/rc.d/000.sentinel.sh
@exec mkdir %D/var/sentinel
@exec chown smmsp.smmsp %D/var/sentinel
@dirrm var/sentinel
%%PORTDOCS%%share/doc/sentinel/README
%%PORTDOCS%%@dirrm share/doc/sentinel