Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= fetchmail |
4 |
PORTNAME= fetchmail |
5 |
PORTVERSION= 6.3.26 |
5 |
PORTVERSION= 6.3.26 |
6 |
PORTREVISION= 3 |
6 |
PORTREVISION= 4 |
7 |
CATEGORIES= mail ipv6 |
7 |
CATEGORIES= mail ipv6 |
8 |
MASTER_SITES= SF/${PORTNAME}/branch_6.3/ \ |
8 |
MASTER_SITES= SF/${PORTNAME}/branch_6.3/ \ |
9 |
http://mandree.home.pages.de/${PORTNAME}/ |
9 |
http://mandree.home.pages.de/${PORTNAME}/ |
Lines 16-22
Link Here
|
16 |
|
16 |
|
17 |
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
17 |
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss |
18 |
|
18 |
|
19 |
# Note USERS can only contain a single word as parts below rely on that. |
|
|
20 |
USERS= ${PORTNAME} |
19 |
USERS= ${PORTNAME} |
21 |
GROUPS= ${USERS} |
20 |
GROUPS= ${USERS} |
22 |
|
21 |
|
Lines 24-31
Link Here
|
24 |
SHEBANG_FILES= fetchmailconf.py |
23 |
SHEBANG_FILES= fetchmailconf.py |
25 |
|
24 |
|
26 |
USE_RC_SUBR= fetchmail |
25 |
USE_RC_SUBR= fetchmail |
27 |
SUB_FILES= pkg-message pkg-install pkg-deinstall |
26 |
SUB_FILES= pkg-message |
28 |
SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} PORTNAME=${PORTNAME} |
|
|
29 |
|
27 |
|
30 |
GNU_CONFIGURE= yes |
28 |
GNU_CONFIGURE= yes |
31 |
USE_OPENSSL= yes |
29 |
USE_OPENSSL= yes |
Lines 36-96
Link Here
|
36 |
|
34 |
|
37 |
LDFLAGS+= -L${LOCALBASE}/lib |
35 |
LDFLAGS+= -L${LOCALBASE}/lib |
38 |
|
36 |
|
39 |
OPTIONS_DEFINE= X11 NLS NTLM GSSAPI POP2 DOCS |
37 |
OPTIONS_DEFINE= X11 NLS NTLM POP2 DOCS |
40 |
OPTIONS_DEFAULT= GSSAPI |
38 |
OPTIONS_SINGLE= GSSAPI |
|
|
39 |
OPTIONS_SINGLE_GSSAPI= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_NONE |
40 |
OPTIONS_DEFAULT= GSSAPI_BASE |
41 |
OPTIONS_SUB= yes |
41 |
OPTIONS_SUB= yes |
|
|
42 |
|
43 |
GSSAPI_BASE_USES= gssapi |
44 |
GSSAPI_BASE_CONFIGURE_ON= --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS} |
45 |
GSSAPI_HEIMDAL_USES= gssapi:heimdal |
46 |
GSSAPI_HEIMDAL_CONFIGURE_ON= --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS} |
47 |
GSSAPI_MIT_USES= gssapi:mit |
48 |
GSSAPI_MIT_CONFIGURE_ON= --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS} |
49 |
GSSAPI_NONE_CONFIGURE_ON= --without-gssapi |
50 |
|
42 |
X11_DESC= Python/Tkinter dependencies for ``fetchmailconf'' |
51 |
X11_DESC= Python/Tkinter dependencies for ``fetchmailconf'' |
43 |
POP2_DESC= POP2 Protocol support[obsolete] |
52 |
POP2_DESC= POP2 Protocol support[obsolete] |
44 |
|
53 |
|
45 |
NLS_USES= gettext |
54 |
NLS_USES= gettext |
46 |
NLS_CONFIGURE_ENABLE= nls |
55 |
NLS_CONFIGURE_ENABLE= nls |
47 |
NLS_CONFIGURE_ON= --enable-nls |
|
|
48 |
NLS_CONFIGURE_OFF= --disable-nls |
49 |
|
56 |
|
|
|
57 |
NTLM_CONFIGURE_ENABLE= NTLM |
58 |
NTLM_PORTDOCS= README.NTLM |
59 |
|
60 |
# POP2 is obsolete |
61 |
POP2_CONFIGURE_ENABLE= POP2 |
62 |
|
63 |
X11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:x11-toolkits/py-tkinter |
64 |
X11_USES= python |
65 |
X11_CONFIGURE_OFF= PYTHON=: |
66 |
X11_SUB_FILES_OFF= fetchmailconf |
67 |
|
50 |
PORTDOCS= FAQ FEATURES NEWS NOTES README README.SSL \ |
68 |
PORTDOCS= FAQ FEATURES NEWS NOTES README README.SSL \ |
51 |
design-notes.html fetchmail-FAQ.html fetchmail-features.html \ |
69 |
design-notes.html fetchmail-FAQ.html fetchmail-features.html \ |
52 |
esrs-design-notes.html |
70 |
esrs-design-notes.html |
53 |
|
71 |
|
54 |
.include <bsd.port.options.mk> |
72 |
#.include <bsd.port.options.mk> |
55 |
|
73 |
|
56 |
# Pop2 is obsolete |
|
|
57 |
.if ${PORT_OPTIONS:MPOP2} |
58 |
CONFIGURE_ARGS+= --enable-POP2 |
59 |
.endif |
60 |
|
61 |
.if ${PORT_OPTIONS:MX11} |
62 |
USES+= python |
63 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:x11-toolkits/py-tkinter |
64 |
PLIST_SUB+= NOX11="@comment " |
65 |
.else |
66 |
CONFIGURE_ARGS+= PYTHON=: |
67 |
SUB_FILES+= fetchmailconf |
68 |
PLIST_SUB+= NOX11="" |
69 |
.endif |
70 |
|
71 |
.if ${PORT_OPTIONS:MGSSAPI} |
72 |
.if !defined(KRB5_HOME) |
73 |
.if exists(${LOCALBASE}/lib/libkrb5.a) |
74 |
KRB5_HOME= ${LOCALBASE} |
75 |
.elif exists(/usr/lib/libkrb5.a) |
76 |
KRB5_HOME= /usr |
77 |
.endif |
78 |
.endif |
79 |
|
80 |
.if defined(KRB5_HOME) && !exists(${KRB5_HOME}/lib/libkrb5.a) |
81 |
BROKEN= KRB5_HOME is set but doesn\'t provide lib/libkrb5.a |
82 |
.endif |
83 |
|
84 |
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a) |
85 |
CONFIGURE_ARGS+= --with-gssapi=${KRB5_HOME} |
86 |
.endif |
87 |
.endif |
88 |
|
89 |
.if ${PORT_OPTIONS:MNTLM} |
90 |
CONFIGURE_ARGS+= --enable-NTLM |
91 |
PORTDOCS+= README.NTLM |
92 |
.endif |
93 |
|
94 |
post-patch: |
74 |
post-patch: |
95 |
.if !exists(/usr/lib/libcom_err.so) |
75 |
.if !exists(/usr/lib/libcom_err.so) |
96 |
@${REINPLACE_CMD} -e "s,-lcom_err,,g" ${WRKSRC}/configure |
76 |
@${REINPLACE_CMD} -e "s,-lcom_err,,g" ${WRKSRC}/configure |
Lines 99-105
Link Here
|
99 |
post-build: |
79 |
post-build: |
100 |
@${MAKE_CMD} -C ${WRKSRC} check |
80 |
@${MAKE_CMD} -C ${WRKSRC} check |
101 |
|
81 |
|
102 |
post-install: |
82 |
post-stage: |
|
|
83 |
${INSTALL} -d ${STAGEDIR}/var/run/fetchmail |
103 |
${INSTALL_DATA} ${FILESDIR}/fetchmailrc.sample \ |
84 |
${INSTALL_DATA} ${FILESDIR}/fetchmailrc.sample \ |
104 |
${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample |
85 |
${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample |
105 |
|
86 |
|