View | Details | Raw Unified | Return to bug 185572 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-29 / +24 lines)
Lines 10-72 Link Here
10
MAINTAINER=	chalpin@cs.wisc.edu
10
MAINTAINER=	chalpin@cs.wisc.edu
11
COMMENT=	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
11
COMMENT=	Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR
12
LICENSE=	GPLv2 LGPL21
13
LICENSE_COMB=	dual
14
12
RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
15
RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
13
# Note USERS can only contain a single word as parts below rely on that.
16
# Note USERS can only contain a single word as parts below rely on that.
14
USERS=	${PORTNAME}
17
USERS=	${PORTNAME}
15
GROUPS=	${USERS}
18
GROUPS=	${USERS}
19
NULLDIR?=	# None. portlint compliance
16
USE_RC_SUBR=	fetchmail
20
USE_RC_SUBR=	fetchmail
17
FETCHMAILRC=	${PREFIX}/etc/fetchmailrc
21
FETCHMAILRC=	${PREFIX}/etc/fetchmailrc
18
SUB_FILES=	pkg-message
22
SUB_FILES=	pkg-message
19
USE_XZ=	yes
23
USE_XZ=		yes
20
USE_GMAKE=	yes
24
USE_GMAKE=	yes
21
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
22
USE_OPENSSL=	yes
26
USE_OPENSSL=	yes
27
NLS_USES=	gettext
23
CONFIGURE_ARGS=	--enable-opie --enable-RPA --enable-SDPS \
28
CONFIGURE_ARGS=	--enable-opie --enable-RPA --enable-SDPS \
24
		--without-hesiod --enable-fallback=no \
29
		--without-hesiod --enable-fallback=no \
25
		--with-ssl=${OPENSSLBASE}
30
		--with-ssl=${OPENSSLBASE}
26
LDFLAGS+=	-L${LOCALBASE}/lib
31
LDFLAGS+=	-L${LOCALBASE}/lib
27
MAN1=	fetchmail.1
32
OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI POP2
28
MLINKS=	fetchmail.1 fetchmailconf.1
29
OPTIONS_DEFINE=	X11 NLS NTLM GSSAPI
30
OPTIONS_DEFAULT=	GSSAPI
33
OPTIONS_DEFAULT=	GSSAPI
34
OPTIONS_SUB=	yes
31
X11_DESC=	Python/Tkinter dependencies for ``fetchmailconf''
35
X11_DESC=	Python/Tkinter dependencies for ``fetchmailconf''
32
NTLM_DESC=	Build in support for NTLM/MSN authentication
36
POP2_DESC=	POP2 Protocol support[obsolete]
33
GSSAPI_DESC=	Build GSSAPI/Kerberos 5 support
34
PORTDOCS=	FAQ FEATURES NEWS NOTES README README.SSL \
37
PORTDOCS=	FAQ FEATURES NEWS NOTES README README.SSL \
35
		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
38
		design-notes.html fetchmail-FAQ.html fetchmail-features.html \
36
		esrs-design-notes.html
39
		esrs-design-notes.html
37
NO_STAGE=	yes
38
.include <bsd.port.options.mk>
40
.include <bsd.port.options.mk>
39
# Pop2 is obsolete
41
# Pop2 is obsolete
40
.if defined(WITH_POP2)
42
.if ${PORT_OPTIONS:MPOP2}
41
CONFIGURE_ARGS+=	--enable-POP2
43
CONFIGURE_ARGS+=	--enable-POP2
42
.endif
44
.endif
43
.if ${PORT_OPTIONS:MX11}
45
.if ${PORT_OPTIONS:MX11}
44
USE_PYTHON_RUN=	yes
46
USE_PYTHON_RUN=	yes
45
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
47
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
46
PLIST_SUB+=	X11="" NOX11="@comment "
48
PLIST_SUB+=	NOX11="@comment "
47
.else
49
.else
48
CONFIGURE_ARGS+=	PYTHON=:
50
CONFIGURE_ARGS+=	PYTHON=:
49
SUB_FILES+=	fetchmailconf
51
SUB_FILES+=	fetchmailconf
50
PLIST_SUB+=	X11="@comment " NOX11=""
52
PLIST_SUB+=	NOX11=""
51
.endif
52
53
.if ${PORT_OPTIONS:MNLS}
54
CONFIGURE_ARGS+=	--enable-nls
55
PLIST_SUB+=	NLS=""
56
USES+=		gettext
57
.else
58
CONFIGURE_ARGS+=	--disable-nls
59
PLIST_SUB+=	NLS="@comment "
60
.endif
53
.endif
61
.if ${PORT_OPTIONS:MGSSAPI}
54
.if ${PORT_OPTIONS:MGSSAPI}
Lines 74-80 Link Here
74
.if exists(${LOCALBASE}/lib/libkrb5.a)
68
.if exists(${LOCALBASE}/lib/libkrb5.a)
75
KRB5_HOME=	${LOCALBASE}
69
KRB5_HOME=	${LOCALBASE}
76
.elif exists(/usr/lib/libkrb5.a)
70
.elif exists(/usr/lib/libkrb5.a)
77
KRB5_HOME=	/usr
71
KRB5_HOME=	${NULLDIR}/usr
78
.endif
72
.endif
79
.endif
73
.endif
Lines 101-120 Link Here
101
post-install:
95
post-install:
102
.if ${PORT_OPTIONS:MDOCS}
96
.if ${PORT_OPTIONS:MDOCS}
103
	${MKDIR} ${DOCSDIR}
97
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
104
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
98
	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
105
.endif
99
.endif
106
.if empty(PORT_OPTIONS:MX11)
100
.if empty(PORT_OPTIONS:MX11)
107
	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
101
	${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
108
	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
102
	${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
109
.endif
103
.endif
110
	${MKDIR} -m 0755 "/var/run/${PORTNAME}"
104
	${MKDIR} -m 0755 "${STAGEDIR}/var/run/${PORTNAME}"
111
	${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}"
105
	${CHOWN} "${USERS}:${GROUPS}" "${STAGEDIR}/var/run/${PORTNAME}"
112
	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
106
	${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample\
107
		${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
113
	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
108
	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
114
		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
109
		${CP} -p ${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample\
115
		${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
110
			${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
111
		${CHMOD} 600 ${STAGEDIR}${PREFIX}/etc/fetchmailrc ; \
116
	fi
112
	fi
117
	@${ECHO_CMD} ""
113
	@${ECHO_CMD} ""
(-)./pkg-plist (+2 lines)
Lines 1-6 Link Here
1
@comment $FreeBSD: mail/fetchmail/pkg-plist 315268 2013-03-26 08:56:28Z mandree $
1
@comment $FreeBSD: mail/fetchmail/pkg-plist 315268 2013-03-26 08:56:28Z mandree $
2
bin/fetchmail
2
bin/fetchmail
3
bin/fetchmailconf
3
bin/fetchmailconf
4
man/man1/fetchmail.1.gz
5
man/man1/fetchmailconf.1.gz
4
%%NOX11%%libexec/fetchmailconf.py
6
%%NOX11%%libexec/fetchmailconf.py
5
%%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
7
%%NLS%%share/locale/ca/LC_MESSAGES/fetchmail.mo
6
%%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo
8
%%NLS%%share/locale/cs/LC_MESSAGES/fetchmail.mo

Return to bug 185572