summaryrefslogtreecommitdiff
path: root/mail/elmo
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2004-08-07 15:42:12 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2004-08-07 15:42:12 +0000
commita0896f9e5d8e99f01e0284d375fa44cb743fc0b3 (patch)
tree3f95a6e1c33fa39dc63c98e74ab94a363344710c /mail/elmo
parentUpdate to 2.0.4 (diff)
Fix build with -stable.
Notes
Notes: svn path=/head/; revision=115562
Diffstat (limited to 'mail/elmo')
-rw-r--r--mail/elmo/Makefile5
-rw-r--r--mail/elmo/files/patch-src_elmoconf.pl10
-rw-r--r--mail/elmo/files/patch-src_str.c14
-rw-r--r--mail/elmo/pkg-message6
4 files changed, 34 insertions, 1 deletions
diff --git a/mail/elmo/Makefile b/mail/elmo/Makefile
index abf4a8d9d00f..28abe8f4cf09 100644
--- a/mail/elmo/Makefile
+++ b/mail/elmo/Makefile
@@ -37,7 +37,10 @@ pre-everything::
.endif
post-patch:
- @${REINPLACE_CMD} -e "s|/usr/bin/env perl|${PERL}|" \
+ @${REINPLACE_CMD} -e "s|/usr/bin/env perl|${PERL} -w|" \
${WRKSRC}/src/elmoconf.pl
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.post.mk>
diff --git a/mail/elmo/files/patch-src_elmoconf.pl b/mail/elmo/files/patch-src_elmoconf.pl
new file mode 100644
index 000000000000..0414ca2c7fc6
--- /dev/null
+++ b/mail/elmo/files/patch-src_elmoconf.pl
@@ -0,0 +1,10 @@
+--- src/elmoconf.pl.orig Sat Aug 7 11:30:51 2004
++++ src/elmoconf.pl Sat Aug 7 11:32:44 2004
+@@ -26,7 +26,6 @@
+ # This script sets up user's config file based on few simple questions.
+
+ use strict;
+-use warnings;
+
+ use constant VERSION => "1.48";
+
diff --git a/mail/elmo/files/patch-src_str.c b/mail/elmo/files/patch-src_str.c
new file mode 100644
index 000000000000..b06758e23c50
--- /dev/null
+++ b/mail/elmo/files/patch-src_str.c
@@ -0,0 +1,14 @@
+--- src/str.c.orig Sat Aug 7 11:07:36 2004
++++ src/str.c Sat Aug 7 11:22:37 2004
+@@ -217,7 +217,11 @@
+
+ while (1){
+ max_size = str->size - str->len - 1;
++#if (defined(__FreeBSD__) && __FreeBSD__ < 5)
++ copy = ap;
++#else
+ va_copy (copy, ap);
++#endif
+ n = vsnprintf (str->str + str->len, max_size, fmt, copy);
+ if (n > -1 && n < max_size){
+ str->len += n;
diff --git a/mail/elmo/pkg-message b/mail/elmo/pkg-message
new file mode 100644
index 000000000000..c6efcfd77ec4
--- /dev/null
+++ b/mail/elmo/pkg-message
@@ -0,0 +1,6 @@
+==============
+In order to use elmo, you must run the script elmoconf.pl,
+which will interactively create your elmo configuration file.
+Additionally, you must input some basic smtp settings if you
+want to be able to send messages.
+==============