View | Details | Raw Unified | Return to bug 125657
Collapse All | Expand All

(-)Makefile (-11 / +11 lines)
Lines 7-22 Link Here
7
7
8
PORTNAME=	milter-greylist-devel
8
PORTNAME=	milter-greylist-devel
9
DISTVERSION=	2.0b1
9
DISTVERSION=	2.0b1
10
PORTREVISION=	1
10
CATEGORIES=	mail
11
CATEGORIES=	mail
11
MASTER_SITES=	ftp://ftp.espci.fr/pub/milter-greylist/
12
MASTER_SITES=	ftp://ftp.espci.fr/pub/milter-greylist/
12
DISTNAME=	milter-greylist-${DISTVERSION}
13
DISTNAME=	milter-greylist-${DISTVERSION}
13
EXTRACT_SUFX=	.tgz
14
EXTRACT_SUFX=	.tgz
14
15
15
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	pgollucci@p6m7g8.com
16
COMMENT=	Easy-to-use greylist milter for sendmail (development)
17
COMMENT=	Easy-to-use greylist milter for sendmail (development)
17
18
19
.if !defined(NO_INSTALL_MANPAGES)
18
MAN5=		greylist.conf.5
20
MAN5=		greylist.conf.5
19
MAN8=		milter-greylist.8
21
MAN8=		milter-greylist.8
22
.endif
20
23
21
CFLAGS+=	${PTHREAD_CFLAGS}
24
CFLAGS+=	${PTHREAD_CFLAGS}
22
LIBS+=		${PTHREAD_LIBS}
25
LIBS+=		${PTHREAD_LIBS}
Lines 28-61 Link Here
28
31
29
ALL_TARGET=	milter-greylist
32
ALL_TARGET=	milter-greylist
30
33
31
USE_RC_SUBR=	yes
34
USE_RC_SUBR=	milter-greylist
32
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
35
SUB_FILES+=	pkg-message
33
36
34
CONFLICTS=	milter-greylist-[1-9]*.*
37
CONFLICTS=	milter-greylist-[1-9]*.*
35
38
36
post-extract:
37
	@${SED}	${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
38
		${FILESDIR}/milter-greylist.sh > ${WRKSRC}/milter-greylist.sh
39
40
do-install:
39
do-install:
41
	@${MKDIR} ${PREFIX}/etc/mail
40
	@${MKDIR} ${PREFIX}/etc/mail
42
	@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/bin
41
	@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/bin
42
.if !defined (NO_INSTALL_MANPAGES)
43
	@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5
43
	@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5
44
	@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8
44
	@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8
45
.endif
45
	@${INSTALL_DATA} ${WRKSRC}/greylist.conf \
46
	@${INSTALL_DATA} ${WRKSRC}/greylist.conf \
46
			${PREFIX}/etc/mail/greylist.conf.sample
47
			${PREFIX}/etc/mail/greylist.conf.sample
47
	@${INSTALL_SCRIPT} ${WRKSRC}/milter-greylist.sh ${PREFIX}/etc/rc.d/
48
48
49
post-install:
49
post-install:
50
	@${MKDIR} /var/milter-greylist
50
	@${MKDIR} /var/milter-greylist
51
	@${CHOWN} smmsp /var/milter-greylist
51
	@${CHOWN} smmsp /var/milter-greylist
52
.if !defined(NOPORTDOCS)
52
.if !defined(NOPORTDOCS)
53
	@${MKDIR} ${DOCSDIR}
53
	@${MKDIR} ${DOCSDIR}
54
	@${MKDIR} ${EXAMPLESDIR}
55
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
54
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
55
.endif
56
.if !defined (NOPORTEXAMPLES)
57
	@${MKDIR} ${EXAMPLESDIR}
56
	@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR}
58
	@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR}
57
.endif
59
.endif
58
59
	@${TEST} -f /var/db/milter-greylist/greylist.db && ( \
60
	@${TEST} -f /var/db/milter-greylist/greylist.db && ( \
60
		${ECHO} "***********************************************************"; \
61
		${ECHO} "***********************************************************"; \
61
		${ECHO} "***********************************************************"; \
62
		${ECHO} "***********************************************************"; \
Lines 69-75 Link Here
69
		${ECHO} "***********************************************************"; \
70
		${ECHO} "***********************************************************"; \
70
		${ECHO} "***********************************************************"; \
71
		${ECHO} "***********************************************************"; \
71
	) || ${TRUE}
72
	) || ${TRUE}
72
73
	@${CAT} ${PKGMESSAGE}
73
	@${CAT} ${PKGMESSAGE}
74
74
75
.include <bsd.port.mk>
75
.include <bsd.port.mk>
(-)pkg-message (-14 lines)
Removed Link Here
1
2
------------------------------------------------------------------------
3
                              IMPORTANT NOTE
4
5
 A sample configuration file has been installed in ${PREFIX}/etc/mail
6
 directory. Copy and edit it to suit your needs before launching
7
 milter-greylist.
8
9
 To run milter-greylist from startup, add miltergreylist_enable="YES"
10
 in your /etc/rc.conf or your /etc/rc.conf.local
11
12
 See ${DOCSDIR}/README for operation details.
13
14
------------------------------------------------------------------------
(-)pkg-plist (-4 / +3 lines)
Lines 1-12 Link Here
1
bin/milter-greylist
1
bin/milter-greylist
2
etc/mail/greylist.conf.sample
2
etc/mail/greylist.conf.sample
3
etc/rc.d/milter-greylist.sh
4
%%PORTDOCS%%%%DOCSDIR%%/README
3
%%PORTDOCS%%%%DOCSDIR%%/README
5
%%PORTDOCS%%%%EXAMPLESDIR%%/greylist.conf
4
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/greylist.conf
6
@exec /bin/mkdir -p /var/milter-greylist
5
@exec /bin/mkdir -p /var/milter-greylist
7
@exec /usr/sbin/chown smmsp /var/milter-greylist
6
@exec /usr/sbin/chown smmsp /var/milter-greylist
8
@exec [ -f /var/db/milter-greylist/greylist.db ] && printf '\n*\n************************************************************\n************************************************************\n***                                                       **\n***                      WARNING                          **\n***                                                       **\n*** The default dump file location has changed.           **\n*** Please move greylist.db from /var/db/milter-greylist/ **\n*** to /var/milter-greylist/                              **\n***                                                       **\n************************************************************\n************************************************************\n' ||true
7
@exec [ -f /var/db/milter-greylist/greylist.db ] && printf '\n*\n************************************************************\n************************************************************\n***                                                       **\n***                      WARNING                          **\n***                                                       **\n*** The default dump file location has changed.           **\n*** Please move greylist.db from /var/db/milter-greylist/ **\n*** to /var/milter-greylist/                              **\n***                                                       **\n************************************************************\n************************************************************\n' ||true
9
%%PORTDOCS%%@dirrm %%DOCSDIR%%
8
%%PORTDOCS%%@dirrm %%DOCSDIR%%
10
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
9
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
11
@unexec /bin/rmdir %D/etc/mail 2>/dev/null || true
10
@dirrmtry etc/mail
12
@unexec [ -f /var/milter-greylist/greylist.db ] || /bin/rmdir /var/milter-greylist || true
11
@unexec [ -f /var/milter-greylist/greylist.db ] || /bin/rmdir /var/milter-greylist || true
(-)files/milter-greylist.in (+33 lines)
Added Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/mail/milter-greylist-devel/files/milter-greylist.sh,v 1.1 2005/02/03 18:42:24 ume Exp $
3
4
# PROVIDE: miltergreylist
5
# REQUIRE: LOGIN
6
# BEFORE: sendmail
7
# KEYWORD: milter-greylist
8
9
# Define these miltergreylist_* variables in one of these files:
10
#       /etc/rc.conf
11
#       /etc/rc.conf.local
12
#       /etc/rc.conf.d/miltergreylist
13
#
14
# DO NOT CHANGE THESE DEFAULT VALUES HERE
15
#
16
17
. %%RC_SUBR%%
18
19
name="miltergreylist"
20
rcvar=`set_rcvar`
21
command="%%PREFIX%%/bin/milter-greylist"
22
23
load_rc_config $name
24
25
miltergreylist_enable=${miltergreylist_enable-"NO"}
26
miltergreylist_runas=${miltergreylist_runas-"smmsp"}
27
miltergreylist_pidfile=${miltergreylist_pidfile-"/var/run/milter-greylist.pid"}
28
miltergreylist_sockfile=${miltergreylist_sockfile-"/var/milter-greylist/milter-greylist.sock"}
29
miltergreylist_cfgfile=${miltergreylist_cfgfile-"%%PREFIX%%/etc/mail/greylist.conf"}
30
miltergreylist_flags=${miltergreylist_flags-"-P $miltergreylist_pidfile \
31
-f $miltergreylist_cfgfile -p $miltergreylist_sockfile -u $miltergreylist_runas"}
32
33
run_rc_command "$1"
(-)files/milter-greylist.sh (-32 lines)
Removed Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/mail/milter-greylist-devel/files/milter-greylist.sh,v 1.1 2005/02/03 18:42:24 ume Exp $
3
4
# PROVIDE: miltergreylist
5
# REQUIRE: LOGIN
6
# BEFORE: sendmail
7
# KEYWORD: milter-greylist
8
9
# Define these miltergreylist_* variables in one of these files:
10
#       /etc/rc.conf
11
#       /etc/rc.conf.local
12
#       /etc/rc.conf.d/miltergreylist
13
#
14
# DO NOT CHANGE THESE DEFAULT VALUES HERE
15
#
16
miltergreylist_enable=${miltergreylist_enable-"NO"}
17
miltergreylist_runas=${miltergreylist_runas-"smmsp"}
18
miltergreylist_pidfile=${miltergreylist_pidfile-"/var/run/milter-greylist.pid"}
19
miltergreylist_sockfile=${miltergreylist_sockfile-"/var/milter-greylist/milter-greylist.sock"}
20
miltergreylist_cfgfile=${miltergreylist_cfgfile-"%%PREFIX%%/etc/mail/greylist.conf"}
21
miltergreylist_flags=${miltergreylist_flags-"-P $miltergreylist_pidfile \
22
-f $miltergreylist_cfgfile -p $miltergreylist_sockfile -u $miltergreylist_runas"}
23
24
. %%RC_SUBR%%
25
26
name="miltergreylist"
27
rcvar=`set_rcvar`
28
command="%%PREFIX%%/bin/milter-greylist"
29
30
load_rc_config $name
31
32
run_rc_command "$1"
(-)files/pkg-message.in (+14 lines)
Added Link Here
1
2
------------------------------------------------------------------------
3
                              IMPORTANT NOTE
4
5
 A sample configuration file has been installed in ${PREFIX}/etc/mail
6
 directory. Copy and edit it to suit your needs before launching
7
 milter-greylist.
8
9
 To run milter-greylist from startup, add miltergreylist_enable="YES"
10
 in your /etc/rc.conf or your /etc/rc.conf.local
11
12
 See ${DOCSDIR}/README for operation details.
13
14
------------------------------------------------------------------------

Return to bug 125657