Lines 1-7
Link Here
|
1 |
# New ports collection makefile for: fetchmail |
1 |
# Created by: Ville Eerola <ve@sci.fi> |
2 |
# Date created: 25 Feb 2000 |
|
|
3 |
# Whom: Ville Eerola <ve@sci.fi> |
4 |
# |
5 |
# $FreeBSD: head/mail/fetchmail/Makefile 303362 2012-08-30 06:24:48Z mandree $ |
2 |
# $FreeBSD: head/mail/fetchmail/Makefile 303362 2012-08-30 06:24:48Z mandree $ |
6 |
# |
3 |
# |
7 |
# NOTE: The fetchmailconf program (an interactive program for |
4 |
# NOTE: The fetchmailconf program (an interactive program for |
Lines 11-22
Link Here
|
11 |
# want fetchmailconf to work, define the X11 option. |
8 |
# want fetchmailconf to work, define the X11 option. |
12 |
|
9 |
|
13 |
PORTNAME= fetchmail |
10 |
PORTNAME= fetchmail |
14 |
PORTVERSION= 6.3.22 |
11 |
PORTVERSION= 6.3.24 |
15 |
CATEGORIES= mail ipv6 |
12 |
CATEGORIES= mail ipv6 |
16 |
MASTER_SITES= BERLIOS/${PORTNAME}/ \ |
13 |
MASTER_SITES= SF/${PORTNAME}/branch_6.3/ \ |
17 |
SF/${PORTNAME}/branch_6.3/ \ |
14 |
http://mandree.home.pages.de/${PORTNAME}/ |
18 |
http://mandree.home.pages.de/${PORTNAME}/ \ |
|
|
19 |
SUNSITE/system/mail/pop/${PORTNAME}/ |
20 |
|
15 |
|
21 |
MAINTAINER= chalpin@cs.wisc.edu |
16 |
MAINTAINER= chalpin@cs.wisc.edu |
22 |
COMMENT= Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR |
17 |
COMMENT= Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR |
Lines 24-84
Link Here
|
24 |
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
19 |
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
25 |
|
20 |
|
26 |
# Note USERS can only contain a single word as parts below rely on that. |
21 |
# Note USERS can only contain a single word as parts below rely on that. |
27 |
USERS= ${PORTNAME} |
22 |
USERS= ${PORTNAME} |
28 |
GROUPS= ${USERS} |
23 |
GROUPS= ${USERS} |
29 |
|
24 |
|
30 |
USE_RC_SUBR= fetchmail |
25 |
USE_RC_SUBR= fetchmail |
31 |
FETCHMAILRC= ${PREFIX}/etc/fetchmailrc |
26 |
FETCHMAILRC= ${PREFIX}/etc/fetchmailrc |
32 |
SUB_FILES= pkg-message |
27 |
SUB_FILES= pkg-message |
33 |
PATCH_STRIP= -p1 |
|
|
34 |
|
28 |
|
35 |
USE_XZ= yes |
29 |
USE_XZ= yes |
36 |
USE_GMAKE= yes |
30 |
USE_GMAKE= yes |
37 |
MAKE_JOBS_SAFE= yes |
31 |
MAKE_JOBS_SAFE= yes |
38 |
GNU_CONFIGURE= yes |
32 |
GNU_CONFIGURE= yes |
39 |
USE_OPENSSL= yes |
33 |
USE_OPENSSL= yes |
40 |
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-SDPS \ |
34 |
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-SDPS \ |
41 |
--with-hesiod=no --enable-fallback=no PYTHON=: |
35 |
--without-hesiod --enable-fallback=no \ |
42 |
# bsd.openssl.mk will add the LDFLAGS to CONFIGURE_ENV: |
36 |
--with-ssl=${OPENSSLBASE} |
|
|
37 |
|
43 |
LDFLAGS+= -L${LOCALBASE}/lib |
38 |
LDFLAGS+= -L${LOCALBASE}/lib |
44 |
MAKE_ENV+= ${CONFIGURE_ENV} |
39 |
MAN1= fetchmail.1 |
45 |
MAN1= fetchmail.1 |
40 |
MLINKS= fetchmail.1 fetchmailconf.1 |
46 |
MLINKS= fetchmail.1 fetchmailconf.1 |
|
|
47 |
|
48 |
OPTIONS= X11 "Python/Tkinter dependencies for fetchmailconf" off \ |
49 |
NLS "National language support (NLS)." on \ |
50 |
NTLM "Build in support for NTLM/MSN authentication." off \ |
51 |
GSSAPI "Build GSSAPI/Kerberos 5 support" on |
52 |
|
41 |
|
53 |
.include <bsd.port.options.mk> |
42 |
OPTIONS_DEFINE= X11 NLS NTLM GSSAPI |
|
|
43 |
OPTIONS_DEFAULT= GSSAPI |
44 |
X11_DESC= Python/Tkinter dependencies for ``fetchmailconf'' |
45 |
NTLM_DESC= Build in support for NTLM/MSN authentication |
46 |
GSSAPI_DESC= Build GSSAPI/Kerberos 5 support |
54 |
|
47 |
|
55 |
.if defined(WITH_X11) |
48 |
PORTDOCS= FAQ FEATURES NEWS NOTES README README.SSL \ |
56 |
USE_PYTHON= yes |
49 |
design-notes.html fetchmail-FAQ.html fetchmail-features.html \ |
57 |
RUN_DEPENDS+= ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter |
50 |
esrs-design-notes.html |
58 |
.endif |
|
|
59 |
|
51 |
|
60 |
.include <bsd.port.pre.mk> |
52 |
.include <bsd.port.options.mk> |
61 |
|
53 |
|
62 |
# Pop2 is obsolete |
54 |
# Pop2 is obsolete |
63 |
.if defined(WITH_POP2) |
55 |
.if defined(WITH_POP2) |
64 |
CONFIGURE_ARGS+=--enable-POP2 |
56 |
CONFIGURE_ARGS+= --enable-POP2 |
65 |
.endif |
57 |
.endif |
66 |
|
58 |
|
67 |
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} |
59 |
.if ${PORT_OPTIONS:MX11} |
68 |
|
60 |
USE_PYTHON_RUN= yes |
69 |
DOCS= FAQ FEATURES NEWS NOTES README README.SSL \ |
61 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter |
70 |
design-notes.html fetchmail-FAQ.html fetchmail-features.html \ |
62 |
PLIST_SUB+= X11="" NOX11="@comment " |
71 |
esrs-design-notes.html |
63 |
.else |
|
|
64 |
CONFIGURE_ARGS+= PYTHON=: |
65 |
SUB_FILES+= fetchmailconf |
66 |
PLIST_SUB+= X11="@comment " NOX11="" |
67 |
.endif |
72 |
|
68 |
|
73 |
.if !defined(WITHOUT_NLS) |
69 |
.if ${PORT_OPTIONS:MNLS} |
74 |
CONFIGURE_ARGS+= --enable-nls |
70 |
CONFIGURE_ARGS+= --enable-nls |
75 |
PLIST_SUB+= NLS="" |
71 |
PLIST_SUB+= NLS="" |
76 |
USE_GETTEXT= yes |
72 |
USE_GETTEXT= yes |
77 |
.else |
73 |
.else |
78 |
CONFIGURE_ARGS+= --disable-nls |
74 |
CONFIGURE_ARGS+= --disable-nls |
79 |
PLIST_SUB+= NLS="@comment " |
75 |
PLIST_SUB+= NLS="@comment " |
80 |
.endif |
76 |
.endif |
81 |
|
77 |
|
|
|
78 |
.if ${PORT_OPTIONS:MGSSAPI} |
82 |
.if !defined(KRB5_HOME) |
79 |
.if !defined(KRB5_HOME) |
83 |
.if exists(${LOCALBASE}/lib/libkrb5.a) |
80 |
.if exists(${LOCALBASE}/lib/libkrb5.a) |
84 |
KRB5_HOME= ${LOCALBASE} |
81 |
KRB5_HOME= ${LOCALBASE} |
Lines 88-129
Link Here
|
88 |
.endif |
85 |
.endif |
89 |
|
86 |
|
90 |
.if defined(KRB5_HOME) && !exists(${KRB5_HOME}/lib/libkrb5.a) |
87 |
.if defined(KRB5_HOME) && !exists(${KRB5_HOME}/lib/libkrb5.a) |
91 |
BROKEN= KRB5_HOME is set but doesn't provide lib/libkrb5.a |
88 |
BROKEN= KRB5_HOME is set but doesn\'t provide lib/libkrb5.a |
92 |
.endif |
89 |
.endif |
93 |
|
90 |
|
94 |
.if defined(WITH_GSSAPI) |
|
|
95 |
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a) |
91 |
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a) |
96 |
CONFIGURE_ARGS += --with-gssapi=${KRB5_HOME} |
92 |
CONFIGURE_ARGS+= --with-gssapi=${KRB5_HOME} |
97 |
.endif |
93 |
.endif |
98 |
.endif |
94 |
.endif |
99 |
|
95 |
|
100 |
.if defined(WITH_NTLM) |
96 |
.if ${PORT_OPTIONS:MNTLM} |
101 |
CONFIGURE_ARGS += --enable-NTLM |
97 |
CONFIGURE_ARGS+= --enable-NTLM |
102 |
DOCS+= README.NTLM |
98 |
PORTDOCS+= README.NTLM |
103 |
PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%" |
|
|
104 |
.else |
105 |
PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%@comment " |
106 |
.endif |
99 |
.endif |
107 |
|
100 |
|
108 |
pre-patch: |
101 |
pre-patch: |
109 |
@${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,g" \ |
102 |
@${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,g" \ |
110 |
${WRKSRC}/fetchmailconf.py |
103 |
${WRKSRC}/fetchmailconf.py |
111 |
@${CP} ${FILESDIR}/fetchmailconf ${WRKDIR}/fetchmailconf |
|
|
112 |
@${REINPLACE_CMD} -e "s,@LOCALBASE@,${LOCALBASE},g" \ |
113 |
${WRKDIR}/fetchmailconf |
114 |
|
104 |
|
115 |
post-build: |
105 |
post-build: |
116 |
@cd ${WRKSRC} && ${MAKE} check |
106 |
@${MAKE} -C ${WRKSRC} check |
117 |
|
107 |
|
118 |
post-install: |
108 |
post-install: |
119 |
.if !defined(NOPORTDOCS) |
109 |
.if ${PORT_OPTIONS:MDOCS} |
120 |
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR} |
110 |
${MKDIR} ${DOCSDIR} |
121 |
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} |
111 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} |
122 |
.endif |
112 |
.endif |
123 |
|
113 |
|
|
|
114 |
.if empty(PORT_OPTIONS:MX11) |
124 |
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin |
115 |
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin |
125 |
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec |
116 |
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec |
126 |
|
117 |
.endif |
127 |
${MKDIR} -m 0755 "/var/run/${PORTNAME}" |
118 |
${MKDIR} -m 0755 "/var/run/${PORTNAME}" |
128 |
${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}" |
119 |
${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}" |
129 |
${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample |
120 |
${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample |
Lines 136-139
Link Here
|
136 |
@${CAT} ${PKGMESSAGE} |
127 |
@${CAT} ${PKGMESSAGE} |
137 |
@${ECHO_CMD} "" |
128 |
@${ECHO_CMD} "" |
138 |
|
129 |
|
139 |
.include <bsd.port.post.mk> |
130 |
.include <bsd.port.mk> |