summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-12-30 21:11:49 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-12-30 21:11:49 +0000
commit4f1655130df42dd63fd30d8af9d4dbabae8cf09d (patch)
treed712ccc6c600e6b4fa0a46dbe3be53227e4355f0 /mail
parent- Fix problems with libintl (diff)
- Fix build with gcc 4.1
PR: ports/107343 Submitted by: Xavier Beaudouin <kiwi@oav.net> (maintainer)
Notes
Notes: svn path=/head/; revision=181091
Diffstat (limited to 'mail')
-rw-r--r--mail/lmtpd/Makefile16
-rw-r--r--mail/lmtpd/files/patch-lmtpconf.c19
-rw-r--r--mail/lmtpd/files/patch-re-re.c13
3 files changed, 40 insertions, 8 deletions
diff --git a/mail/lmtpd/Makefile b/mail/lmtpd/Makefile
index f16f75ae6e4c..562d49daea0d 100644
--- a/mail/lmtpd/Makefile
+++ b/mail/lmtpd/Makefile
@@ -24,16 +24,16 @@ OPTIONS+= BDB "Support for Berkeley DB" on
OPTIONS+= TRE "Support for TRE regexp (Approx regexp)" on
OPTIONS+= SIEVE "Support for SIEVE regexp (Approx regexp)" on
+.include <bsd.port.pre.mk>
+
.if defined(LMTPD_WITH_BDB_VER)
WITH_BDB_VER= ${LMTPD_WITH_BDB_VER}
.endif
-.include <bsd.port.pre.mk>
-
.for num in 3 4
.if defined(WITH_DB${num})
WITH_BDB= yes
-IGNORE= Use 'make config' to select Berkeley DB.
+IGNORE= use 'make config' to select Berkeley DB
OBSOLETE_BDB_VAR+= WITH_DB${num}
.endif
.endfor
@@ -111,11 +111,11 @@ post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
- ${FIND} ${PREFIX}/share/nls -type d -name 'fr_*8859*' ! -name fr_FR.ISO_8859-1 -exec basename {} \; | ${XARGS} -n1 -I % echo share/nls/%/filtercheck.cat >> ${TMPPLIST}
- ${FIND} ${PREFIX}/share/nls -type d -name 'fr_*.UTF-8' ! -name fr_FR.UTF-8 -exec basename {} \; | ${XARGS} -n1 -I % echo share/nls/%/filtercheck.cat >> ${TMPPLIST}
- ${FIND} ${PREFIX}/share/nls -type d -name 'en_*' -exec basename {} \; | ${XARGS} -n1 -I % echo share/nls/%/filtercheck.cat >> ${TMPPLIST}
- ${FIND} ${PREFIX}/share/nls -type d -name 'fr_*8859*' -exec basename {} \; | ${XARGS} -n1 -I _ -R 2 echo "@unexec if ! grep -q _ ${MTREE_FILE} ; then rmdir %D/share/nls/_ >/dev/null || true ; fi" >> ${TMPPLIST}
- ${FIND} ${PREFIX}/share/nls -type d -name 'fr_*.UTF-8' -exec basename {} \; | ${XARGS} -n1 -I _ -R 2 echo "@unexec if ! grep -q _ ${MTREE_FILE} ; then rmdir %D/share/nls/_ >/dev/null || true ; fi" >> ${TMPPLIST}
+ ${FIND} ${PREFIX}/share/nls -type d -name 'fr_*8859*' ! -name fr_FR.ISO_8859-1 -exec basename {} \; | ${XARGS} -n1 -I % ${ECHO_MSG} share/nls/%/filtercheck.cat >> ${TMPPLIST}
+ ${FIND} ${PREFIX}/share/nls -type d -name 'fr_*.UTF-8' ! -name fr_FR.UTF-8 -exec basename {} \; | ${XARGS} -n1 -I % ${ECHO_MSG} share/nls/%/filtercheck.cat >> ${TMPPLIST}
+ ${FIND} ${PREFIX}/share/nls -type d -name 'en_*' -exec basename {} \; | ${XARGS} -n1 -I % ${ECHO_MSG} share/nls/%/filtercheck.cat >> ${TMPPLIST}
+ ${FIND} ${PREFIX}/share/nls -type d -name 'fr_*8859*' -exec basename {} \; | ${XARGS} -n1 -I _ -R 2 ${ECHO_MSG} "@unexec if ! grep -q _ ${MTREE_FILE} ; then rmdir %D/share/nls/_ >/dev/null || true ; fi" >> ${TMPPLIST}
+ ${FIND} ${PREFIX}/share/nls -type d -name 'fr_*.UTF-8' -exec basename {} \; | ${XARGS} -n1 -I _ -R 2 ${ECHO_MSG} "@unexec if ! grep -q _ ${MTREE_FILE} ; then rmdir %D/share/nls/_ >/dev/null || true ; fi" >> ${TMPPLIST}
${FIND} ${PREFIX}/share/nls -type d -name 'en*' -exec basename {} \; | ${XARGS} -n1 -I _ -R 2 echo "@unexec if ! grep -q _ ${MTREE_FILE} ; then rmdir %D/share/nls/_ >/dev/null || true ; fi" >> ${TMPPLIST}
.include <bsd.port.post.mk>
diff --git a/mail/lmtpd/files/patch-lmtpconf.c b/mail/lmtpd/files/patch-lmtpconf.c
new file mode 100644
index 000000000000..f07f5a0aafb7
--- /dev/null
+++ b/mail/lmtpd/files/patch-lmtpconf.c
@@ -0,0 +1,19 @@
+--- lmtpconf.c.org 2004-10-26 17:59:50.000000000 +0200
++++ lmtpconf.c 2006-12-24 11:23:03.000000000 +0100
+@@ -197,6 +197,7 @@
+ return rl;
+ }
+
++static int readconf1(char *file, struct fstate *state, struct conf *spec);
+
+ static int setval(void *val, int type, char *args) {
+ switch(type) {
+@@ -392,8 +393,6 @@
+ return 0;
+ case FLAGS_INCLUDE:
+ if (args) {
+- static int readconf1(char *file, struct fstate *state,
+- struct conf *spec);
+ struct conf_state *cstate = val;
+ char *filename = args;
+ int ret = -1;
diff --git a/mail/lmtpd/files/patch-re-re.c b/mail/lmtpd/files/patch-re-re.c
new file mode 100644
index 000000000000..d5336aae3feb
--- /dev/null
+++ b/mail/lmtpd/files/patch-re-re.c
@@ -0,0 +1,13 @@
+--- re/re.c.orig 2004-10-26 17:59:51.000000000 +0200
++++ re/re.c 2006-12-24 11:29:14.000000000 +0100
+@@ -44,8 +44,8 @@
+ extern RE re_rfc822;
+ extern RE re_true;
+ extern RE re_false;
+-extern RE re_error;
+-extern RE re_error_memory;
++static RE re_error;
++static RE re_error_memory;
+ #if WITH_TRE
+ extern RE re_tre_extended;
+ char *re_tre_init(void);