Lines 10-27
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 |
|
12 |
|
|
|
13 |
LICENSE= GPLv2 LGPL21 |
14 |
LICENSE_COMB= dual |
15 |
|
13 |
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
16 |
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
14 |
|
17 |
|
15 |
# Note USERS can only contain a single word as parts below rely on that. |
18 |
# Note USERS can only contain a single word as parts below rely on that. |
16 |
USERS= ${PORTNAME} |
19 |
USERS= ${PORTNAME} |
17 |
GROUPS= ${USERS} |
20 |
GROUPS= ${USERS} |
18 |
|
21 |
|
|
|
22 |
USES= gmake shebangfix tar:xz |
23 |
SHEBANG_FILES= fetchmailconf.py |
24 |
python_OLD_CMD= /usr/bin/env python |
25 |
|
19 |
USE_RC_SUBR= fetchmail |
26 |
USE_RC_SUBR= fetchmail |
20 |
FETCHMAILRC= ${PREFIX}/etc/fetchmailrc |
27 |
SUB_FILES= pkg-message pkg-install pkg-deinstall |
21 |
SUB_FILES= pkg-message |
28 |
SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} PORTNAME=${PORTNAME} |
22 |
|
29 |
|
23 |
USE_XZ= yes |
|
|
24 |
USE_GMAKE= yes |
25 |
GNU_CONFIGURE= yes |
30 |
GNU_CONFIGURE= yes |
26 |
USE_OPENSSL= yes |
31 |
USE_OPENSSL= yes |
27 |
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-SDPS \ |
32 |
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-SDPS \ |
Lines 29-52
Link Here
|
29 |
--with-ssl=${OPENSSLBASE} |
34 |
--with-ssl=${OPENSSLBASE} |
30 |
|
35 |
|
31 |
LDFLAGS+= -L${LOCALBASE}/lib |
36 |
LDFLAGS+= -L${LOCALBASE}/lib |
32 |
MAN1= fetchmail.1 |
|
|
33 |
MLINKS= fetchmail.1 fetchmailconf.1 |
34 |
|
37 |
|
35 |
OPTIONS_DEFINE= X11 NLS NTLM GSSAPI |
38 |
OPTIONS_DEFINE= X11 NLS NTLM GSSAPI POP2 |
36 |
OPTIONS_DEFAULT= GSSAPI |
39 |
OPTIONS_DEFAULT= GSSAPI |
|
|
40 |
OPTIONS_SUB= yes |
37 |
X11_DESC= Python/Tkinter dependencies for ``fetchmailconf'' |
41 |
X11_DESC= Python/Tkinter dependencies for ``fetchmailconf'' |
38 |
NTLM_DESC= Build in support for NTLM/MSN authentication |
42 |
POP2_DESC= POP2 Protocol support[obsolete] |
39 |
GSSAPI_DESC= Build GSSAPI/Kerberos 5 support |
|
|
40 |
|
43 |
|
|
|
44 |
NLS_USES= gettext |
45 |
NLS_CONFIGURE_ENABLE= nls |
46 |
NLS_CONFIGURE_ON= --enable-nls |
47 |
NLS_CONFIGURE_OFF= --disable-nls |
48 |
|
41 |
PORTDOCS= FAQ FEATURES NEWS NOTES README README.SSL \ |
49 |
PORTDOCS= FAQ FEATURES NEWS NOTES README README.SSL \ |
42 |
design-notes.html fetchmail-FAQ.html fetchmail-features.html \ |
50 |
design-notes.html fetchmail-FAQ.html fetchmail-features.html \ |
43 |
esrs-design-notes.html |
51 |
esrs-design-notes.html |
44 |
|
52 |
|
45 |
NO_STAGE= yes |
|
|
46 |
.include <bsd.port.options.mk> |
53 |
.include <bsd.port.options.mk> |
47 |
|
54 |
|
48 |
# Pop2 is obsolete |
55 |
# Pop2 is obsolete |
49 |
.if defined(WITH_POP2) |
56 |
.if ${PORT_OPTIONS:MPOP2} |
50 |
CONFIGURE_ARGS+= --enable-POP2 |
57 |
CONFIGURE_ARGS+= --enable-POP2 |
51 |
.endif |
58 |
.endif |
52 |
|
59 |
|
Lines 53-74
Link Here
|
53 |
.if ${PORT_OPTIONS:MX11} |
60 |
.if ${PORT_OPTIONS:MX11} |
54 |
USE_PYTHON_RUN= yes |
61 |
USE_PYTHON_RUN= yes |
55 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter |
62 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter |
56 |
PLIST_SUB+= X11="" NOX11="@comment " |
63 |
PLIST_SUB+= NOX11="@comment " |
57 |
.else |
64 |
.else |
58 |
CONFIGURE_ARGS+= PYTHON=: |
65 |
CONFIGURE_ARGS+= PYTHON=: |
59 |
SUB_FILES+= fetchmailconf |
66 |
SUB_FILES+= fetchmailconf |
60 |
PLIST_SUB+= X11="@comment " NOX11="" |
67 |
PLIST_SUB+= NOX11="" |
61 |
.endif |
68 |
.endif |
62 |
|
69 |
|
63 |
.if ${PORT_OPTIONS:MNLS} |
|
|
64 |
CONFIGURE_ARGS+= --enable-nls |
65 |
PLIST_SUB+= NLS="" |
66 |
USES+= gettext |
67 |
.else |
68 |
CONFIGURE_ARGS+= --disable-nls |
69 |
PLIST_SUB+= NLS="@comment " |
70 |
.endif |
71 |
|
72 |
.if ${PORT_OPTIONS:MGSSAPI} |
70 |
.if ${PORT_OPTIONS:MGSSAPI} |
73 |
.if !defined(KRB5_HOME) |
71 |
.if !defined(KRB5_HOME) |
74 |
.if exists(${LOCALBASE}/lib/libkrb5.a) |
72 |
.if exists(${LOCALBASE}/lib/libkrb5.a) |
Lines 92-124
Link Here
|
92 |
PORTDOCS+= README.NTLM |
90 |
PORTDOCS+= README.NTLM |
93 |
.endif |
91 |
.endif |
94 |
|
92 |
|
95 |
pre-patch: |
|
|
96 |
@${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,g" \ |
97 |
${WRKSRC}/fetchmailconf.py |
98 |
|
99 |
post-build: |
93 |
post-build: |
100 |
@${MAKE} -C ${WRKSRC} check |
94 |
@${MAKE} -C ${WRKSRC} check |
101 |
|
95 |
|
102 |
post-install: |
96 |
post-install: |
103 |
.if ${PORT_OPTIONS:MDOCS} |
97 |
.if ${PORT_OPTIONS:MDOCS} |
104 |
${MKDIR} ${DOCSDIR} |
98 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
105 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} |
99 |
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
106 |
.endif |
100 |
.endif |
107 |
|
101 |
|
108 |
.if empty(PORT_OPTIONS:MX11) |
102 |
.if empty(PORT_OPTIONS:MX11) |
109 |
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin |
103 |
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin |
110 |
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec |
104 |
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec |
111 |
.endif |
105 |
.endif |
112 |
${MKDIR} -m 0755 "/var/run/${PORTNAME}" |
106 |
${INSTALL} ${FILESDIR}/fetchmailrc.sample \ |
113 |
${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}" |
107 |
${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample |
114 |
${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample |
|
|
115 |
if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \ |
116 |
${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \ |
117 |
${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \ |
118 |
fi |
119 |
|
108 |
|
120 |
@${ECHO_CMD} "" |
|
|
121 |
@${CAT} ${PKGMESSAGE} |
122 |
@${ECHO_CMD} "" |
123 |
|
124 |
.include <bsd.port.mk> |
109 |
.include <bsd.port.mk> |