6 |
|
# |
7 |
|
|
8 |
|
PORTNAME?= alpine |
9 |
< |
PORTVERSION= 2.00 |
9 |
> |
PORTVERSION= 2.20 |
10 |
|
PORTREVISION?= 1 |
11 |
|
CATEGORIES?= mail news ipv6 |
12 |
< |
MASTER_SITES= ftp://ftp.cac.washington.edu/alpine/ \ |
13 |
< |
http://dougbarton.us/Downloads/alpine-${PORTVERSION}/ |
12 |
> |
MASTER_SITES= http://patches.freeiz.com/alpine/release/src/ |
13 |
|
DIST_SUBDIR= alpine-${PORTVERSION} |
14 |
|
|
15 |
|
MAINTAINER= ports@MidnightBSD.org |
17 |
|
|
18 |
|
LICENSE= apache2 |
19 |
|
|
20 |
< |
OPTIONS+= THREADS "Compile with thread support" on \ |
21 |
< |
MOUSE "Enable mouse support for xterm" on \ |
22 |
< |
NLS "National Language Support" off \ |
23 |
< |
ISPELL "Use ispell instead of aspell as default speller" off \ |
24 |
< |
NOSPELL "Use no default speller (overrides both)" off |
20 |
> |
OPTIONS_DEFINE= DOCS SSL THREADS MOUSE NLS ISPELL NOSPELL |
21 |
> |
OPTIONS_DEFAULT+= DOCS SSL THREADS MOUSE |
22 |
> |
SSL_DESC= Build with SSL (installs: security/openssl if pre 10.x) |
23 |
> |
MOUSE_DESC= Enable mouse support for xterm |
24 |
> |
ISPELL_DESC= Use ispell instead of aspell as default speller |
25 |
> |
NOSPELL_DESC= Use no default speller (overrides both) |
26 |
> |
|
27 |
|
.if !defined(PICO_ALPINE_SLAVE) |
28 |
< |
OPTIONS+= PICO "Build and install pico, the default editor" on \ |
29 |
< |
IPV6 "Add support for IPv6" on \ |
30 |
< |
LDAP "Add support for LDAP" off \ |
31 |
< |
PASSFILE "Support for a stored password file (DANGEROUS)" off \ |
32 |
< |
CONS25 "Add a patch to support color for default console" off \ |
33 |
< |
QUOTA "Add a patch for disk quota checking on IMAP" off \ |
34 |
< |
MAILDIR "Add a patch for maildir support" off |
28 |
> |
|
29 |
> |
OPTIONS_DEFINE+= PICO IPV6 LDAP PASSFILE CONS25 MAILDIR SSL |
30 |
> |
OPTIONS_DEFAULT+= PICO SSL |
31 |
> |
PICO_DESC= Build and install pico, the default editor |
32 |
> |
PASSFILE_DESC= Support for a stored password file (DANGEROUS) |
33 |
> |
CONS25_DESC= Add a patch to support color for default console |
34 |
> |
MAILDIR_DESC= Add a patch for maildir support |
35 |
|
.endif |
36 |
|
|
37 |
< |
USES= tar:bzip2 |
37 |
> |
USES= libtool ncurses tar:xz |
38 |
> |
|
39 |
|
MAKE_JOBS_UNSAFE= yes |
40 |
|
|
41 |
|
GNU_CONFIGURE= yes |
42 |
|
|
43 |
+ |
THREADS_CONFIGURE_WITH= pthread |
44 |
+ |
MOUSE_CONFIGURE_ENABLE= mouse |
45 |
+ |
NLS_CONFIGURE_ENABLE= nls |
46 |
+ |
IPV6_CONFIGURE_WITH= ipv6 |
47 |
+ |
SSL_USES= openssl |
48 |
+ |
|
49 |
|
.if !defined(PICO_ALPINE_SLAVE) |
50 |
+ |
|
51 |
+ |
PORTDOCSbase= LICENSE NOTICE README |
52 |
+ |
PORTDOCSdoc= brochure.txt |
53 |
+ |
PORTDOCShtml= tech-notes/background.html tech-notes/cmd-line.html \ |
54 |
+ |
tech-notes/config-notes.html tech-notes/config.html \ |
55 |
+ |
tech-notes/index.html tech-notes/installation.html \ |
56 |
+ |
tech-notes/introduction.html tech-notes/low-level.html \ |
57 |
+ |
tech-notes/tech-notes.txt |
58 |
+ |
PORTDOCS= ${PORTDOCSbase} ${PORTDOCSdoc} ${PORTDOCShtml} |
59 |
+ |
|
60 |
|
CONFIGURE_ARGS+=--with-system-pinerc=${PREFIX}/etc/alpine.conf \ |
61 |
|
--with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \ |
62 |
|
--with-password-prog=/usr/bin/passwd \ |
63 |
< |
--with-system-mail-directory=/var/mail \ |
64 |
< |
--enable-background-post --without-krb5 --without-tcl |
63 |
> |
--with-system-mail-directory=/var/mail |
64 |
> |
|
65 |
|
.endif |
66 |
< |
CONFIGURE_ARGS+=--with-debug-level=2 |
66 |
> |
CONFIGURE_ARGS+=--with-debug-level=2 \ |
67 |
> |
--enable-background-post --without-krb5 --without-tcl |
68 |
|
|
69 |
< |
USE_OPENSSL= yes |
69 |
> |
MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}" |
70 |
|
|
71 |
< |
.include <bsd.port.pre.mk> |
71 |
> |
.include <bsd.mport.options.mk> |
72 |
|
|
73 |
< |
.if !defined(WITHOUT_THREADS) |
74 |
< |
CONFIGURE_ARGS+= --with-pthread |
73 |
> |
.if ${PORT_OPTIONS:MSSL} |
74 |
> |
USE_OPENSSL= yes |
75 |
> |
CONFIGURE_ARGS+= --with-ssl-dir=${OPENSSLDIR} \ |
76 |
> |
--with-ssl-include-dir=${OPENSSLINC} \ |
77 |
> |
--with-ssl-lib-dir=${OPENSSLLIB} \ |
78 |
> |
--with-ssl-certs-dir=${OPENSSLDIR}/certs |
79 |
|
.else |
80 |
< |
CONFIGURE_ARGS+= --without-pthread |
80 |
> |
CONFIGURE_ARGS+= --without-ssl |
81 |
|
.endif |
82 |
|
|
83 |
< |
.if !defined(WITHOUT_MOUSE) |
61 |
< |
CONFIGURE_ARGS+= --enable-mouse |
62 |
< |
.else |
63 |
< |
CONFIGURE_ARGS+= --disable-mouse |
64 |
< |
.endif |
83 |
> |
.include <bsd.port.pre.mk> |
84 |
|
|
85 |
< |
.if defined(WITH_NLS) |
86 |
< |
CONFIGURE_ARGS+= --enable-nls |
68 |
< |
.else |
69 |
< |
CONFIGURE_ARGS+= --disable-nls |
70 |
< |
.endif |
71 |
< |
|
72 |
< |
.if !defined(WITH_NOSPELL) |
73 |
< |
.if !defined(WITH_ISPELL) |
85 |
> |
.if ! ${PORT_OPTIONS:MNOSPELL} |
86 |
> |
.if ! ${PORT_OPTIONS:MISPELL} |
87 |
|
CONFIGURE_ARGS+=--with-interactive-spellcheck=${LOCALBASE}/bin/aspell |
88 |
< |
BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell |
89 |
< |
RUN_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell |
88 |
> |
BUILD_DEPENDS+= aspell:textproc/aspell |
89 |
> |
RUN_DEPENDS+= aspell:textproc/aspell |
90 |
|
.else |
91 |
|
CONFIGURE_ARGS+= --with-interactive-spellcheck=${LOCALBASE}/bin/ispell |
92 |
< |
BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell |
93 |
< |
RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell |
92 |
> |
BUILD_DEPENDS+= ispell:textproc/aspell-ispell |
93 |
> |
RUN_DEPENDS+= ispell:textproc/aspell-ispell |
94 |
|
.endif |
95 |
|
.else |
96 |
|
CONFIGURE_ARGS+=--without-simple-spellcheck --without-interactive-spellcheck |
97 |
|
.endif |
98 |
|
|
99 |
|
.if !defined(PICO_ALPINE_SLAVE) |
100 |
< |
.if !defined(WITHOUT_PICO) |
101 |
< |
RUN_DEPENDS+= pico:${PORTSDIR}/editors/pico-alpine |
100 |
> |
.if ${PORT_OPTIONS:MPICO} |
101 |
> |
RUN_DEPENDS+= pico:editors/pico-alpine |
102 |
|
.endif |
103 |
|
|
104 |
< |
.if !defined(WITHOUT_IPV6) |
92 |
< |
CONFIGURE_ARGS+= --with-ipv6 |
93 |
< |
.else |
94 |
< |
CONFIGURE_ARGS+= --without-ipv6 |
95 |
< |
.endif |
96 |
< |
|
97 |
< |
.if defined(WITH_LDAP) |
104 |
> |
.if ${PORT_OPTIONS:MLDAP} |
105 |
|
USE_OPENLDAP= yes |
106 |
< |
CONFIGURE_ARGS+= --with-ldap --with-ldap-dir=${LOCALBASE} |
106 |
> |
CONFIGURE_ARGS+= --with-ldap-dir=${LOCALBASE} |
107 |
|
.else |
108 |
|
CONFIGURE_ARGS+= --without-ldap |
109 |
|
.endif |
110 |
|
|
111 |
< |
.if defined(WITH_PASSFILE) |
111 |
> |
.if ${PORT_OPTIONS:MPASSFILE} |
112 |
|
ALPINE_PASSFILE?= .alpine.pwd |
113 |
|
CONFIGURE_ARGS+= --with-passfile=.alpine.pwd |
114 |
|
.endif |
115 |
|
|
116 |
< |
.if defined(WITH_CONS25) |
117 |
< |
EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c |
116 |
> |
.if ${PORT_OPTIONS:MMAILDIR} |
117 |
> |
PATCH_SITES= http://patches.freeiz.com/alpine/patches/alpine-${PORTVERSION}/ |
118 |
> |
PATCHFILES+= maildir.patch.gz:-p1 |
119 |
|
.endif |
120 |
|
|
121 |
< |
.if defined(WITH_QUOTA) || defined(WITH_MAILDIR) |
122 |
< |
PATCH_SITES= http://staff.washington.edu/chappa/alpine/patches/alpine-${PORTVERSION}/ \ |
115 |
< |
http://dougbarton.us/Downloads/alpine-${PORTVERSION}/ \ |
116 |
< |
${MASTER_SITE_FREEBSD_LOCAL} |
117 |
< |
PATCH_SITE_SUBDIR= dougb/alpine-${PORTVERSION}/ |
118 |
< |
PATCH_DIST_ARGS+= -E --quiet -d ${PATCH_WRKSRC} -p1 |
121 |
> |
.if ${PORT_OPTIONS:MCONS25} |
122 |
> |
EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c |
123 |
|
.endif |
124 |
|
|
121 |
– |
.if defined(WITH_QUOTA) |
122 |
– |
PATCHFILES+= quota.patch.gz |
123 |
– |
.endif |
124 |
– |
|
125 |
– |
.if defined(WITH_MAILDIR) |
126 |
– |
PATCHFILES+= maildir.patch.gz |
127 |
– |
.endif |
128 |
– |
|
129 |
– |
.if !defined(WITHOUT_SSL) |
130 |
– |
MAKE_ARGS+= SSLINCLUDE=${OPENSSLINC} SSLLIB=${OPENSSLLIB} |
131 |
– |
CONFIGURE_ARGS+= --with-ssl-dir=${OPENSSLDIR} \ |
132 |
– |
--with-ssl-certs-dir=${OPENSSLDIR}/certs |
133 |
– |
.else |
134 |
– |
CONFIGURE_ARGS+= --without-ssl |
135 |
– |
.endif |
136 |
– |
|
137 |
– |
MAN1= alpine.1 rpdump.1 rpload.1 |
138 |
– |
|
139 |
– |
pre-patch: |
140 |
– |
@${CHMOD} -R u+w ${WRKSRC} |
141 |
– |
|
125 |
|
post-patch: |
126 |
|
@${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed |
127 |
|
@${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \ |
139 |
|
${WRKSRC}/imap/src/osdep/unix/Makefile.presed \ |
140 |
|
> ${WRKSRC}/imap/src/osdep/unix/Makefile |
141 |
|
@for i in ${WRKSRC}/README ${WRKSRC}/doc/alpine.1 \ |
142 |
< |
${WRKSRC}/doc/tech-notes.txt ${WRKSRC}/doc/tech-notes/*.html \ |
142 |
> |
${WRKSRC}/doc/*.txt \ |
143 |
> |
${WRKSRC}/doc/tech-notes/*.txt \ |
144 |
> |
${WRKSRC}/doc/tech-notes/*.html \ |
145 |
|
${WRKSRC}/pith/pine.hlp ; do \ |
146 |
|
${CP} $$i $$i.presed ; \ |
147 |
< |
${SED} -e "s:/usr/local/etc/:${PREFIX}/etc/:g" \ |
148 |
< |
-e "s:/usr/local/lib/:${PREFIX}/etc/:g" \ |
147 |
> |
${SED} -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \ |
148 |
> |
-e "s:/usr/local/pine.conf:${PREFIX}/etc/pine.conf:g" \ |
149 |
> |
-e "s:pine\.conf:alpine.conf:g" \ |
150 |
> |
-e "s:/usr/local:${PREFIX}:g" \ |
151 |
|
-e "s:@@PREFIX@@:${PREFIX}:g" \ |
165 |
– |
-e "s:/usr/local/pine.conf:${PREFIX}/etc/alpine.conf:g" \ |
152 |
|
$$i.presed > $$i ; \ |
153 |
|
done |
154 |
|
|
155 |
|
post-install: |
156 |
< |
.if !defined(NOPORTDOCS) |
157 |
< |
${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} ${DOCSDIR} \ |
158 |
< |
${DOCSDIR}/tech-notes |
159 |
< |
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} |
160 |
< |
${INSTALL_DATA} ${WRKSRC}/NOTICE ${DOCSDIR} |
161 |
< |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
162 |
< |
${INSTALL_DATA} ${WRKSRC}/doc/brochure.txt ${DOCSDIR} |
163 |
< |
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${DOCSDIR} |
164 |
< |
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes/*.html ${DOCSDIR}/tech-notes |
156 |
> |
${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample |
157 |
> |
.if ${PORT_OPTIONS:MDOCS} |
158 |
> |
${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes |
159 |
> |
.for f in ${PORTDOCSbase} |
160 |
> |
${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} |
161 |
> |
.endfor |
162 |
> |
.for f in ${PORTDOCSdoc} |
163 |
> |
${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR} |
164 |
> |
.endfor |
165 |
> |
.for f in ${PORTDOCShtml} |
166 |
> |
${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes |
167 |
> |
.endfor |
168 |
|
.endif |
169 |
< |
${PREFIX}/bin/alpine -P ${PREFIX}/etc/alpine.conf -conf >${WRKSRC}/alpine.conf |
170 |
< |
${INSTALL_DATA} ${WRKSRC}/alpine.conf ${PREFIX}/etc/alpine.conf |
169 |
> |
|
170 |
> |
# PKG_PREFIX=${STAGEDIR}${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
171 |
> |
# @${CAT} ${PKGMESSAGE} |
172 |
|
|
173 |
|
.endif # !defined(PICO_ALPINE_SLAVE) |
174 |
|
|