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

(-)Makefile (-5 / +2 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	postgrey
8
PORTNAME=	postgrey
9
PORTVERSION=	1.24
9
PORTVERSION=	1.26
10
CATEGORIES=	mail
10
CATEGORIES=	mail
11
MASTER_SITES=	http://isg.ee.ethz.ch/tools/postgrey/pub/
11
MASTER_SITES=	http://isg.ee.ethz.ch/tools/postgrey/pub/
12
12
Lines 18-24 Link Here
18
		${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
18
		${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
19
19
20
USE_PERL5_RUN=	yes
20
USE_PERL5_RUN=	yes
21
USE_RC_SUBR=	yes
21
USE_RC_SUBR=	postgrey
22
NO_BUILD=	yes
22
NO_BUILD=	yes
23
23
24
ETCFILES=	whitelist_clients whitelist_recipients
24
ETCFILES=	whitelist_clients whitelist_recipients
Lines 44-51 Link Here
44
	${REINPLACE_CMD} -e "s#/etc/#${PREFIX}/etc/#" ${WRKSRC}/postgrey
44
	${REINPLACE_CMD} -e "s#/etc/#${PREFIX}/etc/#" ${WRKSRC}/postgrey
45
45
46
pre-install:
46
pre-install:
47
	${SED}	-e 's#%%PREFIX%%#${PREFIX}#g' -e 's#%%RC_SUBR%%#${RC_SUBR}#g' \
48
		${FILESDIR}/postgrey.sh > ${WRKDIR}/postgrey.sh
49
	${SED}	-e 's#%%USER%%#${PGY_USERNAME}#g' -e 's#%%UID%%#${PGY_USERID}#g' \
47
	${SED}	-e 's#%%USER%%#${PGY_USERNAME}#g' -e 's#%%UID%%#${PGY_USERID}#g' \
50
		-e 's#%%GROUP%%#${PGY_GROUPNAME}#g' -e 's#%%GID%%#${PGY_GROUPID}#g' \
48
		-e 's#%%GROUP%%#${PGY_GROUPNAME}#g' -e 's#%%GID%%#${PGY_GROUPID}#g' \
51
		-e 's#%%PREFIX%%#${PREFIX}#g' -e 's#%%ETCFILES%%#${ETCFILES}#g' \
49
		-e 's#%%PREFIX%%#${PREFIX}#g' -e 's#%%ETCFILES%%#${ETCFILES}#g' \
Lines 56-62 Link Here
56
do-install:
54
do-install:
57
	${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin
55
	${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin
58
	${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport ${PREFIX}/sbin
56
	${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport ${PREFIX}/sbin
59
	${INSTALL_SCRIPT} ${WRKDIR}/postgrey.sh ${PREFIX}/etc/rc.d
60
	${MKDIR} ${PREFIX}/etc/postfix
57
	${MKDIR} ${PREFIX}/etc/postfix
61
.for i in ${ETCFILES}
58
.for i in ${ETCFILES}
62
	${INSTALL_DATA} ${WRKSRC}/postgrey_${i} ${PREFIX}/etc/postfix/dist-postgrey_${i}
59
	${INSTALL_DATA} ${WRKSRC}/postgrey_${i} ${PREFIX}/etc/postfix/dist-postgrey_${i}
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (postgrey-1.24.tar.gz) = db11f4da47ee28252cf2ddd160308d7e
1
MD5 (postgrey-1.26.tar.gz) = 7fb26d0d33abfcb14af53ae1f3f4f98a
2
SHA256 (postgrey-1.24.tar.gz) = 266506813ee56314ea3f2e96dbfe0c7cbfe8a8548f3718f2d0952b0370683b77
2
SHA256 (postgrey-1.26.tar.gz) = 7441bf6aaf5ef0098da3bfde407768889d4a85886c99bd8d159c6dd21f30e7cb
3
SIZE (postgrey-1.24.tar.gz) = 27444
3
SIZE (postgrey-1.26.tar.gz) = 29221
(-)pkg-plist (-1 lines)
Lines 2-8 Link Here
2
@unexec if cmp -s %D/etc/postfix/dist-postgrey_whitelist_clients %D/etc/postfix/postgrey_whitelist_clients; then rm -f %D/etc/postfix/postgrey_whitelist_clients; fi
2
@unexec if cmp -s %D/etc/postfix/dist-postgrey_whitelist_clients %D/etc/postfix/postgrey_whitelist_clients; then rm -f %D/etc/postfix/postgrey_whitelist_clients; fi
3
sbin/postgrey
3
sbin/postgrey
4
sbin/postgreyreport
4
sbin/postgreyreport
5
etc/rc.d/postgrey.sh
6
etc/postfix/dist-postgrey_whitelist_recipients
5
etc/postfix/dist-postgrey_whitelist_recipients
7
etc/postfix/dist-postgrey_whitelist_clients
6
etc/postfix/dist-postgrey_whitelist_clients
8
@dirrmtry etc/postfix
7
@dirrmtry etc/postfix
(-)files/postgrey.in (+44 lines)
Added Link Here
1
#!/bin/sh
2
# $FreeBSD$
3
#
4
5
# PROVIDE: postgrey
6
# REQUIRE: LOGIN
7
# BEFORE: mail
8
# KEYWORD: shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable postgrey:
12
#
13
# postgrey_enable="YES"
14
#
15
# See perldoc postgrey for flags
16
#
17
18
. %%RC_SUBR%%
19
20
name=postgrey
21
rcvar=`set_rcvar`
22
23
command=%%PREFIX%%/sbin/postgrey
24
required_dirs=/var/db/postgrey
25
extra_commands=reload
26
27
stop_postcmd=stop_postcmd
28
29
stop_postcmd()
30
{
31
  rm -f $pidfile
32
}
33
34
# set defaults
35
36
postgrey_enable=${postgrey_enable:-"NO"}
37
postgrey_pidfile=${postgrey_pidfile:-"/var/run/postgrey.pid"}
38
postgrey_flags=${postgrey_flags:-"--pidfile=${postgrey_pidfile} \
39
	--inet=10023 -d --user=postgrey --group=postgrey --dbdir=/var/db/postgrey"}
40
41
pidfile="${postgrey_pidfile}"
42
43
load_rc_config $name
44
run_rc_command "$1"
(-)files/postgrey.sh (-44 lines)
Removed Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/mail/postgrey/files/postgrey.sh,v 1.5 2006/02/20 20:47:14 dougb Exp $
3
#
4
5
# PROVIDE: postgrey
6
# REQUIRE: LOGIN
7
# BEFORE: mail
8
# KEYWORD: shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable postgrey:
12
#
13
# postgrey_enable="YES"
14
#
15
# See perldoc postgrey for flags
16
#
17
18
. %%RC_SUBR%%
19
20
name=postgrey
21
rcvar=`set_rcvar`
22
23
command=%%PREFIX%%/sbin/postgrey
24
required_dirs=/var/db/postgrey
25
extra_commands=reload
26
27
stop_postcmd=stop_postcmd
28
29
stop_postcmd()
30
{
31
  rm -f $pidfile
32
}
33
34
# set defaults
35
36
postgrey_enable=${postgrey_enable:-"NO"}
37
postgrey_pidfile=${postgrey_pidfile:-"/var/run/postgrey.pid"}
38
postgrey_flags=${postgrey_flags:-"--pidfile=${postgrey_pidfile} \
39
	--inet=10023 -d --user=postgrey --group=postgrey --dbdir=/var/db/postgrey"}
40
41
pidfile="${postgrey_pidfile}"
42
43
load_rc_config $name
44
run_rc_command "$1"

Return to bug 100291