Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2002 22:55:38 +0200 (CEST)
From:      Peter Hollaubek <fifteen@inext.hu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38085: New port: sentinel
Message-ID:  <200205142055.g4EKtch0018021@home.fifteen.hu>

next in thread | raw e-mail | index | archive | help

>Number:         38085
>Category:       ports
>Synopsis:       New port: sentinel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 14 14:00:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Peter Hollaubek <fifteen@inext.hu>
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD home.fifteen.hu 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #4: Fri May 3 23:20:59 CEST 2002 root@home.fifteen.hu:/usr/obj/usr/src/sys/FIF i386


	
>Description:
	Sentinel is a simple, but flexible milter for sendmail. (a fixed sourceforge server for the first site, because on the http based one, the first server in bsd.ports.mk,  now it needs to choose on a webform)
>How-To-Repeat:
	
>Fix:

	

--- sentinel begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	sentinel
#	sentinel/Makefile
#	sentinel/distinfo
#	sentinel/pkg-comment
#	sentinel/pkg-descr
#	sentinel/pkg-plist
#	sentinel/files
#	sentinel/files/patch-aa
#	sentinel/files/patch-ac
#	sentinel/files/000.sentinel.sh
#
echo c - sentinel
mkdir -p sentinel > /dev/null 2>&1
echo x - sentinel/Makefile
sed 's/^X//' >sentinel/Makefile << 'END-of-sentinel/Makefile'
X# New ports collection makefile for:	sentinel
X# Date created:		14 May 2002
X# Whom:			Peter Hollaubek <fifteen@inext.hu>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sentinel
XPORTVERSION=	1.2b
XCATEGORIES=	mail
XMASTER_SITES=	ftp://ftp3.sourceforge.net/pub/sourceforge/smfilter/ \
X		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	smfilter
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	ports@FreeBSD.org
X
XMAKEFILE=	Makefile.FreeBSD
XALL_TARGET=	sentinel
X
Xdo-install:
X	${MKDIR} ${PREFIX}/sbin
X	${INSTALL_PROGRAM} ${WRKSRC}/sentinel ${PREFIX}/sbin
X	${MKDIR} ${PREFIX}/var/sentinel
X	${CHOWN} smmsp.smmsp ${PREFIX}/var/sentinel
X	${MKDIR} ${PREFIX}/etc/rc.d
X	${INSTALL_SCRIPT} ${FILESDIR}/000.sentinel.sh ${PREFIX}/etc/rc.d
X	${INSTALL_DATA} ${WRKSRC}/sentinel.cf.SAMPLE ${PREFIX}/etc/sentinel.cf.dist
X
Xpost-install:
X	strip ${PREFIX}/sbin/sentinel
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/sentinel
X	${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/sentinel
X.endif
X
X.include <bsd.port.mk>
END-of-sentinel/Makefile
echo x - sentinel/distinfo
sed 's/^X//' >sentinel/distinfo << 'END-of-sentinel/distinfo'
XMD5 (sentinel-1.2b.tar.gz) = b936a15306486fcfc6afd24f2170915c
END-of-sentinel/distinfo
echo x - sentinel/pkg-comment
sed 's/^X//' >sentinel/pkg-comment << 'END-of-sentinel/pkg-comment'
XSentinel is a sendmail milter API implementation
END-of-sentinel/pkg-comment
echo x - sentinel/pkg-descr
sed 's/^X//' >sentinel/pkg-descr << 'END-of-sentinel/pkg-descr'
XSentinel is a sendmail milter API implementation. This package might 
Xbe usefull for unix system administrators who is using freeware 
XSendmail. May be it's one more milter, but on the other side it's 
Xflexible enough to satisfy more or less subtle requirements for mail 
Xfiltering.
END-of-sentinel/pkg-descr
echo x - sentinel/pkg-plist
sed 's/^X//' >sentinel/pkg-plist << 'END-of-sentinel/pkg-plist'
Xsbin/sentinel
Xetc/sentinel.cf.dist
Xetc/rc.d/000.sentinel.sh
X@exec mkdir %D/var/sentinel
X@exec chown smmsp.smmsp %D/var/sentinel
X@dirrm var/sentinel
X%%PORTDOCS%%share/doc/sentinel/README
X%%PORTDOCS%%@dirrm share/doc/sentinel
END-of-sentinel/pkg-plist
echo c - sentinel/files
mkdir -p sentinel/files > /dev/null 2>&1
echo x - sentinel/files/patch-aa
sed 's/^X//' >sentinel/files/patch-aa << 'END-of-sentinel/files/patch-aa'
X--- Makefile.FreeBSD.orig	Tue May 14 16:05:07 2002
X+++ Makefile.FreeBSD	Tue May 14 16:05:38 2002
X@@ -2,12 +2,12 @@
X 
X CFLAGS = -O -I../../include
X 
X-LDFLAGS =  -L../libmilter -L../libsmutil -L../libsm -pthread
X+LDFLAGS =  -L../libmilter -pthread
X 
X-LIBS = -lmilter -lsmutil -lsm
X+LIBS = -lmilter
X 
X OBJS = sentinel.o
X 
X-sentinel:       $(OBJS)
X-                $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
X+sentinel: $(OBJS)
X+	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
X 
END-of-sentinel/files/patch-aa
echo x - sentinel/files/patch-ac
sed 's/^X//' >sentinel/files/patch-ac << 'END-of-sentinel/files/patch-ac'
X--- sentinel.cf.SAMPLE.orig	Tue May 14 17:18:45 2002
X+++ sentinel.cf.SAMPLE	Tue May 14 17:19:20 2002
X@@ -1,6 +1,6 @@
X [global]
X tmp:/var/tmp
X-log:/var/log/smfilter.log
X+log:/usr/local/var/sentinel/smfilter.log
X user:smmsp
X group:smmsp
X 
END-of-sentinel/files/patch-ac
echo x - sentinel/files/000.sentinel.sh
sed 's/^X//' >sentinel/files/000.sentinel.sh << 'END-of-sentinel/files/000.sentinel.sh'
X#!/bin/sh
X
Xif ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
X    echo "$0: Cannot determine the PREFIX" >&2
X    exit 1
Xfi
X
XSMFILTER=${PREFIX}/sbin/sentinel
XCONFIG=${PREFIX}/etc/sentinel.cf
XSOCKET=${PREFIX}/var/sentinel/sentinel.socket
X
Xcase "$1" in
Xstart)
X	if [ -x ${PREFIX}/sbin/sentinel -a -f ${PREFIX}/etc/sentinel.cf ]
X	then
X		if [ -f ${SOCKET} ]
X		then
X			killall sentinel
X			rm -f $SOCKET
X		fi
X		${PREFIX}/sbin/sentinel -c ${PREFIX}/etc/sentinel.cf -p unix:${SOCKET} -d && echo -n ' sentinel'
X	fi
X	;;
Xstop)
X		if [ -f ${SOCKET} ]
X		then
X			killall sentinel
X		fi
X	;;
X*)
X	echo "Usage: `basename $0` {start|stop}" >&2
X	;;
Xesac
X
Xexit 0
END-of-sentinel/files/000.sentinel.sh
exit
--- sentinel ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205142055.g4EKtch0018021>