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

(-)mail/assp.new/Makefile (-1 / +1 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	assp
8
PORTNAME=	assp
9
PORTVERSION=	1.9.3.6
9
PORTVERSION=	1.9.3.7
10
PORTEPOCH=	1
10
PORTEPOCH=	1
11
CATEGORIES=	mail
11
CATEGORIES=	mail
12
MASTER_SITES=	http://www.ringofsaturn.com/distfiles/
12
MASTER_SITES=	http://www.ringofsaturn.com/distfiles/
(-)mail/assp.new/Makefile.orig (+165 lines)
Line 0 Link Here
1
# New ports collection makefile for:	assp
2
# Date created:				16 May 2005
3
# Whom:					J.R. Oldroyd <fbsd@opal.com>
4
#
5
# $FreeBSD: ports/mail/assp/Makefile,v 1.48 2012/06/12 20:54:33 jgh Exp $
6
#
7
8
PORTNAME=	assp
9
PORTVERSION=	1.9.3.6
10
PORTEPOCH=	1
11
CATEGORIES=	mail
12
MASTER_SITES=	http://www.ringofsaturn.com/distfiles/
13
DISTNAME=	${PORTNAME:U}_${PORTVERSION}-Install
14
15
MAINTAINER=	rnejdl@ringofsaturn.com
16
COMMENT=	Anti-Spam SMTP Proxy
17
18
USE_ZIP=	yes
19
NO_BUILD=	yes
20
USE_PERL5_RUN=	yes
21
22
MAN8=		assp.8 assplog.8
23
24
ASSP_USER=	assp
25
ASSP_GROUP=	assp
26
USERS=		${ASSP_USER}
27
GROUPS=		${ASSP_GROUP}
28
ASSP_HOME=	/var/db/assp
29
ASSP_LOG=	/var/log/assp
30
31
PLIST_SUB=	ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}"
32
33
SUB_FILES=	510.assp assp.8 assplog.8 assplog.pl pkg-install
34
SUB_LIST=	ASSP_USER="${ASSP_USER}" ASSP_GROUP="${ASSP_GROUP}" \
35
		ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}" \
36
		DATADIR="${DATADIR}" PERL="${PERL}"
37
38
USE_RC_SUBR=	${PORTNAME}
39
40
OPTIONS_DEFINE=	EMVALID LDAP SPF SRS SEND FBACKW ZLIB CLAMAV DNSBL MYSQL \
41
		MATCHRE SENDERB MIMEMOD SSL IPV6
42
43
EMVALID_DESC=	RFC822 recipient address validator
44
LDAP_DESC=	LDAP validation of recipient addresses
45
SPF_DESC=	SPF validation of client IP
46
SRS_DESC=	Sender Rewriting Scheme
47
SEND_DESC=	Resending .eml files
48
FBACKW_DESC=	File Reading Backwards
49
ZLIB_DESC=	HTTP Header Compression on Admin Interface
50
CLAMAV_DESC=	ClamAV virus scanner
51
DNSBL_DESC=	DNS block list checking
52
MYSQL_DESC=	Use MySQL db to store white/red/delaylists
53
MATCHRE_DESC=	Match IP ranges and CIDR blocks in lists
54
SENDERB_DESC=	Country Code checks
55
MIMEMOD_DESC=	Multiple Attachement detection
56
SSL_DESC=	SSL secure sockets support
57
IPV6_DESC=	IPv6 sockets support
58
59
OPTIONS_DEFAULT=	EMVALID SPF SRS SEND FBACKW ZLIB CLAMAV DNSBL MATCHRE SENDERB MIMEMOD SSL IPV6
60
61
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/${DISTNAME}/${PORTNAME:U}
62
63
.include <bsd.port.pre.mk>
64
65
66
RUN_DEPENDS+=	p5-Net-DNS>=0.68:${PORTSDIR}/dns/p5-Net-DNS
67
RUN_DEPENDS+=	p5-libwww>=6.04:${PORTSDIR}/www/p5-libwww \
68
		p5-HTML-Parser>=3.69:${PORTSDIR}/www/p5-HTML-Parser
69
70
.if ${PORT_OPTIONS:MEMVALID}
71
RUN_DEPENDS+=	p5-Email-Valid>=0.190:${PORTSDIR}/mail/p5-Email-Valid
72
.endif
73
74
.if ${PORT_OPTIONS:MLDAP}
75
RUN_DEPENDS+=	p5-perl-ldap>=0.4400:${PORTSDIR}/net/p5-perl-ldap
76
.endif
77
78
.if ${PORT_OPTIONS:MSPF}
79
RUN_DEPENDS+=	p5-Mail-SPF>=2.007:${PORTSDIR}/mail/p5-Mail-SPF
80
.endif
81
82
.if ${PORT_OPTIONS:MSRS}
83
RUN_DEPENDS+=	p5-Mail-SRS>=0.31:${PORTSDIR}/mail/p5-Mail-SRS
84
.endif
85
86
.if ${PORT_OPTIONS:MSEND}
87
RUN_DEPENDS+=	p5-Email-Send>=2.198:${PORTSDIR}/mail/p5-Email-Send
88
.endif
89
90
.if ${PORT_OPTIONS:MFBACKW}
91
RUN_DEPENDS+=	p5-File-ReadBackwards>=1.05:${PORTSDIR}/devel/p5-File-ReadBackwards
92
.endif
93
94
.if ${PORT_OPTIONS:MZLIB}
95
. if ${PERL_LEVEL} < 500903
96
RUN_DEPENDS+=	p5-IO-Compress>=2.052:${PORTSDIR}/archivers/p5-IO-Compress
97
. endif
98
.endif
99
100
.if ${PORT_OPTIONS:MCLAMAV}
101
RUN_DEPENDS+=	p5-File-Scan-ClamAV>=1.9.1:${PORTSDIR}/security/p5-File-Scan-ClamAV
102
PLIST_SUB+=	ASSP_CLAMAV=""
103
.else
104
PLIST_SUB+=	ASSP_CLAMAV="@comment "
105
.endif
106
107
.if ${PORT_OPTIONS:MDNSBL}
108
RUN_DEPENDS+=	p5-Net-DNS>=0.68:${PORTSDIR}/dns/p5-Net-DNS
109
.endif
110
111
.if ${PORT_OPTIONS:MMYSQL}
112
RUN_DEPENDS+=	p5-Tie-DBI>=1.05:${PORTSDIR}/databases/p5-Tie-DBI
113
.endif
114
115
.if ${PORT_OPTIONS:MMATCHRE}
116
RUN_DEPENDS+=	p5-Net-IP-Match-Regexp>=1.01:${PORTSDIR}/net-mgmt/p5-Net-IP-Match-Regexp
117
.endif
118
119
.if ${PORT_OPTIONS:MSENDERB}
120
RUN_DEPENDS+=	p5-Net-SenderBase>=1.02:${PORTSDIR}/mail/p5-Net-SenderBase
121
.endif
122
123
.if ${PORT_OPTIONS:MMIMEMOD}
124
RUN_DEPENDS+=	p5-Email-MIME>=1.910:${PORTSDIR}/mail/p5-Email-MIME
125
.endif
126
127
.if ${PORT_OPTIONS:MSSL}
128
RUN_DEPENDS+=	p5-IO-Socket-SSL>=1.74:${PORTSDIR}/security/p5-IO-Socket-SSL
129
.endif
130
131
.if ${PORT_OPTIONS:MIPV6}
132
RUN_DEPENDS+=	p5-IO-Socket-INET6>=2.69:${PORTSDIR}/net/p5-IO-Socket-INET6
133
.endif
134
135
EXTRACT_AFTER_ARGS=	-d ${PORTNAME}-${PORTVERSION}
136
137
post-patch:
138
	@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/*.pl
139
140
do-install:
141
	${MKDIR} ${DATADIR}
142
	${INSTALL_SCRIPT} ${WRKSRC}/assp.pl ${DATADIR}
143
	${INSTALL_SCRIPT} ${WRKSRC}/rebuildspamdb.pl ${DATADIR}
144
	${INSTALL_SCRIPT} ${WRKSRC}/stat.pl ${DATADIR}
145
146
	( cd ${WRKSRC} && ${COPYTREE_SHARE} "files images reports" \
147
		${DATADIR}/ "! -name '*.orig' ! -name '*.bak'" )
148
149
	${INSTALL_SCRIPT} ${WRKDIR}/assplog.pl ${PREFIX}/sbin/assplog
150
151
	${INSTALL_MAN} ${WRKDIR}/assp.8 ${MAN8PREFIX}/man/man8
152
	${INSTALL_MAN} ${WRKDIR}/assplog.8 ${MAN8PREFIX}/man/man8
153
154
	${MKDIR} ${PREFIX}/etc/periodic/daily
155
	${INSTALL_SCRIPT} ${WRKDIR}/510.assp ${PREFIX}/etc/periodic/daily/
156
157
.if ${PORT_OPTIONS:MDOCS}
158
	${MKDIR} ${DOCSDIR}
159
	${INSTALL_DATA} ${WRKSRC}/docs/*.htm ${DOCSDIR}
160
.endif
161
162
post-install:
163
	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
164
165
.include <bsd.port.post.mk>
(-)mail/assp.new/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (ASSP_1.9.3.6-Install.zip) = f317e98254cf0ca1139aac94b4d07629a2dce8ae94a43bb7f3d31e7bc1d57f19
1
SHA256 (ASSP_1.9.3.7-Install.zip) = ed48173914b53b61a603582da260763bec2d0116c30b5b99d648270e43898e80
2
SIZE (ASSP_1.9.3.6-Install.zip) = 862587
2
SIZE (ASSP_1.9.3.7-Install.zip) = 863635
(-)mail/assp.new/distinfo.orig (+2 lines)
Line 0 Link Here
1
SHA256 (ASSP_1.9.3.6-Install.zip) = f317e98254cf0ca1139aac94b4d07629a2dce8ae94a43bb7f3d31e7bc1d57f19
2
SIZE (ASSP_1.9.3.6-Install.zip) = 862587

Return to bug 169999