blob: 04414f314565421d3ebf6199200d9632555db896 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= filtermail
PORTVERSION= 0.8.6
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://sourceforge.net/projects/mailfilter/files/Mailfilter/
DISTNAME= mailfilter-${PORTVERSION}
MAINTAINER= jmc-freebsd2@milibyte.co.uk
COMMENT= Filter mail on a POP3 server: saves downloading spam
WWW= http://mailfilter.sourceforge.net
LICENSE= GPLv3
USES= bison gmake localbase:ldflags ssl
# This port is filtermail, but the author called it mailfilter. To avoid a
# clash with another port called mailfilter, we change all files
# installed by this port from the form *mailfilter* to the form
# *filtermail*, and similarly the names in the man pages.
EXTRACT_CMD= ${GZIP_CMD}
EXTRACT_BEFORE_ARGS= -dc
EXTRACT_AFTER_ARGS= | ${SED} 's/[mM][aA][iI][lL][fF][iI][lL][tT][eE][rR]/filtermail/g' | ${TAR} -xf -
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
MAKE_JOBS_UNSAFE= yes
PLIST_FILES= bin/${PORTNAME} \
share/man/man1/${PORTNAME}.1.gz \
share/man/man5/${PORTNAME}ex.5.gz \
share/man/man5/${PORTNAME}rc.5.gz
post-patch:
@${REINPLACE_CMD} -e 's|filtermail.sourceforge|mailfilter.sourceforge|g' ${WRKSRC}/README
post-extract:
@${RM} ${WRKSRC}/src/getopt.h
.include <bsd.port.mk>
|