summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorobache <obache>2008-10-30 13:01:00 +0000
committerobache <obache>2008-10-30 13:01:00 +0000
commit2daddb1311323343f5424924c4db1cc3a1d1cb7b (patch)
treeceac5f6ae6f264ef579bc40552b14072c1b3d2cb /mail
parent041c075ab938af47cb1a9ef5001a76eac73c6280 (diff)
downloadpkgsrc-2daddb1311323343f5424924c4db1cc3a1d1cb7b.tar.gz
Import heirloom-mailx-12.4 as mail/heirloom-mailx.
Based on PR 38262, some portability improvement and ipv6 support optionify. mailx (Heirloom Mailx; formerly nail) is a mail user agent derived from Berkeley Mail 8.1. It is intended to provide the functionality of the POSIX.2 mailx command with built-in support for MIME messages. This means it can handle international character sets as well as attachments. In recent system environments, nail is Unicode/UTF-8 capable. It further contains some minor enhancements like the ability to set a "From:" Address.
Diffstat (limited to 'mail')
-rw-r--r--mail/heirloom-mailx/DESCR6
-rw-r--r--mail/heirloom-mailx/MESSAGE12
-rw-r--r--mail/heirloom-mailx/Makefile56
-rw-r--r--mail/heirloom-mailx/PLIST7
-rw-r--r--mail/heirloom-mailx/distinfo9
-rw-r--r--mail/heirloom-mailx/options.mk16
-rw-r--r--mail/heirloom-mailx/patches/patch-ac13
-rw-r--r--mail/heirloom-mailx/patches/patch-ae20
-rw-r--r--mail/heirloom-mailx/patches/patch-af20
-rw-r--r--mail/heirloom-mailx/patches/patch-ag20
10 files changed, 179 insertions, 0 deletions
diff --git a/mail/heirloom-mailx/DESCR b/mail/heirloom-mailx/DESCR
new file mode 100644
index 00000000000..07b171d154f
--- /dev/null
+++ b/mail/heirloom-mailx/DESCR
@@ -0,0 +1,6 @@
+mailx (Heirloom Mailx; formerly nail) is a mail user agent derived from
+Berkeley Mail 8.1. It is intended to provide the functionality of the
+POSIX.2 mailx command with built-in support for MIME messages. This means
+it can handle international character sets as well as attachments. In
+recent system environments, nail is Unicode/UTF-8 capable. It further
+contains some minor enhancements like the ability to set a "From:" Address.
diff --git a/mail/heirloom-mailx/MESSAGE b/mail/heirloom-mailx/MESSAGE
new file mode 100644
index 00000000000..581ecc421cd
--- /dev/null
+++ b/mail/heirloom-mailx/MESSAGE
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+
+To avoid conflicts with native mailx installations create symbolic links:
+
+ ex.
+ % ln -s ${PREFIX}/bin/mailx ${PREFIX}/bin/Mailx
+ % ln -s ${PREFIX}/man/man1/mailx.1 ${PREFIX}/man/man1/Mailx.1
+
+Example configurations: ${PREFIX}/share/examples/mailx/nail.rc
+Alternate docs: ${PREFIX}/share/doc/html/mailx/mailx.1.html
+===========================================================================
diff --git a/mail/heirloom-mailx/Makefile b/mail/heirloom-mailx/Makefile
new file mode 100644
index 00000000000..062bb8b69d5
--- /dev/null
+++ b/mail/heirloom-mailx/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+#
+
+DISTNAME= mailx-12.4
+PKGNAME= heirloom-${DISTNAME}
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=heirloom/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= jgw@freeshell.org
+HOMEPAGE= http://heirloom.sourceforge.net/mailx.html
+COMMENT= BSD mail utility with MIME extensions
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c
+
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+= UCBINSTALL=${INSTALL:Q}
+BUILD_MAKE_FLAGS+= SYSCONFDIR=${PKG_SYSCONFDIR}
+INSTALL_MAKE_FLAGS+= SYSCONFDIR=${EGDIR}
+CPPFLAGS+= -DMIMEPATH=\"${PKG_SYSCONFDIR}/mime.types\"
+
+.if exists(/usr/include/paths.h)
+CPPFLAGS+= -DHAVE_PATHS_H
+.endif
+
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == "SunOS" || ${OPSYS} == "IRIX")
+MAKE_FLAGS+= SENDMAIL=/usr/lib/sendmail
+.else
+MAKE_FLAGS+= SENDMAIL=/usr/sbin/sendmail
+.endif
+
+.include "options.mk"
+
+SUBST_CLASSES+= sysconf
+SUBST_STAGE.sysconf= pre-build
+SUBST_FILES.sysconf= mime.c
+SUBST_SED.sysconf= -e 's;/etc/mime.types;${PKG_SYSCONFDIR}/mime.types;g'
+
+EGDIR= ${PREFIX}/share/examples/mailx
+
+DOCDIR= ${PREFIX}/share/doc/mailx
+
+CONF_FILES= ${EGDIR}/nail.rc ${PKG_SYSCONFDIR}/nail.rc
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/mailx.1.html ${DESTDIR}${DOCDIR}
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/heirloom-mailx/PLIST b/mail/heirloom-mailx/PLIST
new file mode 100644
index 00000000000..a7f01baaa8a
--- /dev/null
+++ b/mail/heirloom-mailx/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+bin/mailx
+man/man1/mailx.1
+share/doc/mailx/mailx.1.html
+share/examples/mailx/nail.rc
+@dirrm share/examples/mailx
+@dirrm share/doc/mailx
diff --git a/mail/heirloom-mailx/distinfo b/mail/heirloom-mailx/distinfo
new file mode 100644
index 00000000000..6bd74fc4453
--- /dev/null
+++ b/mail/heirloom-mailx/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+
+SHA1 (mailx-12.4.tar.bz2) = b1e105adf9d36269daf317dedf68b6e4cca404a7
+RMD160 (mailx-12.4.tar.bz2) = 8244d04d0a0058fdbe9867ca503c7cda8d580154
+Size (mailx-12.4.tar.bz2) = 271482 bytes
+SHA1 (patch-ac) = cb9d4b12f26bb5f90947e1dbcb06960de8144f11
+SHA1 (patch-ae) = 257317452b39d0b609885c637242145cf4e04c4d
+SHA1 (patch-af) = 22676bcb00593de777cf897c450e14130f3f0616
+SHA1 (patch-ag) = 20e3429d4f1164c5235a23c8ab772ff2b7fa7951
diff --git a/mail/heirloom-mailx/options.mk b/mail/heirloom-mailx/options.mk
new file mode 100644
index 00000000000..9e2a73691ff
--- /dev/null
+++ b/mail/heirloom-mailx/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.heirloom-mailx
+PKG_SUPPORTED_OPTIONS= inet6
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(IPV6_READY:M[Yy][Ee][Ss])
+PKG_SUGGESTED_OPTIONS+= inet6
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+MAKE_ENV+= IPv6=-DHAVE_IPv6_FUNCS
+.endif
diff --git a/mail/heirloom-mailx/patches/patch-ac b/mail/heirloom-mailx/patches/patch-ac
new file mode 100644
index 00000000000..b7d955fc1a1
--- /dev/null
+++ b/mail/heirloom-mailx/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+
+--- nail.rc.orig 2006-03-04 00:01:19.000000000 +0000
++++ nail.rc
+@@ -59,5 +59,8 @@ set autocollapse
+ ignore received in-reply-to message-id references
+ ignore mime-version content-transfer-encoding
+
++# Be xBSD compliant
++set bsdcompat
++
+ # Only include selected header fields when forwarding messages.
+ fwdretain subject date from to
diff --git a/mail/heirloom-mailx/patches/patch-ae b/mail/heirloom-mailx/patches/patch-ae
new file mode 100644
index 00000000000..ab6225effda
--- /dev/null
+++ b/mail/heirloom-mailx/patches/patch-ae
@@ -0,0 +1,20 @@
+$NetBSD: patch-ae,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+
+--- dotlock.c.orig 2006-03-20 15:49:46.000000000 +0000
++++ dotlock.c
+@@ -52,6 +52,15 @@ static char sccsid[] = "@(#)dotlock.c 2.
+ #define O_SYNC 0
+ #endif
+
++#ifdef HAVE_PATHS_H
++#include <paths.h>
++#endif
++
++#ifdef _PATH_MAILDIR
++#undef MAILSPOOL
++#define MAILSPOOL _PATH_MAILDIR
++#endif
++
+ static int maildir_access(const char *fname);
+ static int perhaps_setgid(const char *name, gid_t gid);
+ static int create_exclusive(const char *fname);
diff --git a/mail/heirloom-mailx/patches/patch-af b/mail/heirloom-mailx/patches/patch-af
new file mode 100644
index 00000000000..32e02a29d83
--- /dev/null
+++ b/mail/heirloom-mailx/patches/patch-af
@@ -0,0 +1,20 @@
+$NetBSD: patch-af,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+
+--- sendout.c.orig 2008-07-04 06:09:57.000000000 +0000
++++ sendout.c
+@@ -51,6 +51,15 @@ static char sccsid[] = "@(#)sendout.c 2.
+ #include <time.h>
+ #include "md5.h"
+
++#ifdef HAVE_PATHS_H
++#include <paths.h>
++#endif
++
++#ifdef _PATH_SENDMAIL
++#undef SENDMAIL
++#define SENDMAIL _PATH_SENDMAIL
++#endif
++
+ /*
+ * Mail -- a mail program
+ *
diff --git a/mail/heirloom-mailx/patches/patch-ag b/mail/heirloom-mailx/patches/patch-ag
new file mode 100644
index 00000000000..3d32c24200e
--- /dev/null
+++ b/mail/heirloom-mailx/patches/patch-ag
@@ -0,0 +1,20 @@
+$NetBSD: patch-ag,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
+
+--- v7.local.c.orig 2006-03-04 00:01:19.000000000 +0000
++++ v7.local.c
+@@ -56,6 +56,15 @@ static char sccsid[] = "@(#)v7.local.c 2
+ #include <fcntl.h>
+ #include <unistd.h>
+
++#ifdef HAVE_PATHS_H
++#include <paths.h>
++#endif
++
++#ifdef _PATH_MAILDIR
++#undef MAILSPOOL
++#define MAILSPOOL _PATH_MAILDIR
++#endif
++
+ /*
+ * Locate the user's mailbox file (ie, the place where new, unread
+ * mail is queued).