summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorcjep <cjep>2002-09-22 13:01:24 +0000
committercjep <cjep>2002-09-22 13:01:24 +0000
commit7398bdc5910f53dcf04031a75c57f8383eca54bc (patch)
tree0ffc00e513a70ea6aeaa00d093714ebfddf21ef0 /mail
parentb9d5ba06e6a039e31c822de4e32ffb63086fa07c (diff)
downloadpkgsrc-7398bdc5910f53dcf04031a75c57f8383eca54bc.tar.gz
Initial import of libESMTP-1.0rc1 into the NetBSD packages collection
as mail/libesmtp. Originally in PR#16146 from Alex Newman. libESMTP is a library to manage posting (or submission of) electronic mail using SMTP to a preconfigured Mail Transport Agent (MTA). It may be used as part of a Mail User Agent (MUA) or another program that needs to post electronic mail but where mail functionality is not the program's primary purpose.
Diffstat (limited to 'mail')
-rw-r--r--mail/libesmtp/DESCR6
-rw-r--r--mail/libesmtp/Makefile27
-rw-r--r--mail/libesmtp/PLIST23
-rw-r--r--mail/libesmtp/buildlink2.mk26
-rw-r--r--mail/libesmtp/distinfo6
-rw-r--r--mail/libesmtp/patches/patch-aa18
-rw-r--r--mail/libesmtp/patches/patch-ab13
7 files changed, 119 insertions, 0 deletions
diff --git a/mail/libesmtp/DESCR b/mail/libesmtp/DESCR
new file mode 100644
index 00000000000..c3129b6a3d8
--- /dev/null
+++ b/mail/libesmtp/DESCR
@@ -0,0 +1,6 @@
+libESMTP is a library to manage posting (or submission of) electronic
+mail using SMTP to a preconfigured Mail Transport Agent (MTA).
+
+It may be used as part of a Mail User Agent (MUA) or another program that
+needs to post electronic mail but where mail functionality is not
+the program's primary purpose.
diff --git a/mail/libesmtp/Makefile b/mail/libesmtp/Makefile
new file mode 100644
index 00000000000..546e3ccda83
--- /dev/null
+++ b/mail/libesmtp/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/09/22 13:01:24 cjep Exp $
+
+DISTNAME= libesmtp-1.0rc1
+CATEGORIES= mail devel
+MASTER_SITES= http://www.stafford.uklinux.net/libesmtp/ \
+ http://www.tobez.org/download/port-mirrors/mail/libesmtp/ \
+ http://www.borgsdemons.com/distfiles/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= dolemite@wuli.nu
+HOMEPAGE= http://www.stafford.uklinux.net/libesmtp/
+COMMENT= Library to manage posting of electronic mail
+
+BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf
+
+USE_BUILDLINK2= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--enable-all
+
+pre-configure:
+ cd ${WRKSRC}; ${LOCALBASE}/bin/autoconf
+
+.include "../../devel/pth/buildlink2.mk"
+.include "../../security/openssl/buildlink2.mk"
+.include "../../devel/libtool/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/libesmtp/PLIST b/mail/libesmtp/PLIST
new file mode 100644
index 00000000000..62be38d9e3d
--- /dev/null
+++ b/mail/libesmtp/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/22 13:01:24 cjep Exp $
+bin/libesmtp-config
+include/auth-client.h
+include/auth-plugin.h
+include/libesmtp.h
+lib/esmtp-plugins/sasl-cram-md5.a
+lib/esmtp-plugins/sasl-cram-md5.la
+lib/esmtp-plugins/sasl-cram-md5.so
+lib/esmtp-plugins/sasl-login.a
+lib/esmtp-plugins/sasl-login.la
+lib/esmtp-plugins/sasl-login.so
+lib/esmtp-plugins/sasl-ntlm.a
+lib/esmtp-plugins/sasl-ntlm.la
+lib/esmtp-plugins/sasl-ntlm.so
+lib/esmtp-plugins/sasl-plain.a
+lib/esmtp-plugins/sasl-plain.la
+lib/esmtp-plugins/sasl-plain.so
+lib/libesmtp.a
+lib/libesmtp.la
+lib/libesmtp.so
+lib/libesmtp.so.6
+lib/libesmtp.so.6.0
+@dirrm lib/esmtp-plugins
diff --git a/mail/libesmtp/buildlink2.mk b/mail/libesmtp/buildlink2.mk
new file mode 100644
index 00000000000..bf104cfe263
--- /dev/null
+++ b/mail/libesmtp/buildlink2.mk
@@ -0,0 +1,26 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2002/09/22 13:01:24 cjep Exp $
+
+.if !defined(LIBESMTP_BUILDLINK2_MK)
+LIBESMTP_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= libesmtp
+BUILDLINK_DEPENDS.libesmtp?= libesmtp>=1.0rc1
+BUILDLINK_PKGSRCDIR.libesmtp?= ../../mail/libesmtp
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.libesmtp=libesmtp
+BUILDLINK_PREFIX.libesmtp_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.libesmtp= include/libesmtp.h
+BUILDLINK_FILES.libesmtp+= include/auth-client.h
+BUILDLINK_FILES.libesmtp+= include/auth-plugin.h
+BUILDLINK_FILES.libesmtp+= lib/libesmtp.*
+LIBESMTP= -lesmtp
+.endif
+
+CONFIGURE_ENV+= LIBESMTP="${LIBESMTP}"
+MAKE_ENV+= LIBESMTP="${LIBESMTP}"
+
+BUILDLINK_TARGETS+= libesmtp-buildlink
+
+libesmtp-buildlink: _BUILDLINK_USE
+
+.endif # LIBESMTP_BUILDLINK2_MK
diff --git a/mail/libesmtp/distinfo b/mail/libesmtp/distinfo
new file mode 100644
index 00000000000..0d21f39fb6f
--- /dev/null
+++ b/mail/libesmtp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/09/22 13:01:24 cjep Exp $
+
+SHA1 (libesmtp-1.0rc1.tar.bz2) = ae74259df8457ce5efb6e838674cd9464ffda2ce
+Size (libesmtp-1.0rc1.tar.bz2) = 251615 bytes
+SHA1 (patch-aa) = 83f000765b7bf3b498f0fa2130360c1aae85a043
+SHA1 (patch-ab) = cc027b93ae55b84c1b569ddcdd2644d4f63a33a5
diff --git a/mail/libesmtp/patches/patch-aa b/mail/libesmtp/patches/patch-aa
new file mode 100644
index 00000000000..6ca930c4f37
--- /dev/null
+++ b/mail/libesmtp/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/09/22 13:01:25 cjep Exp $
+
+--- configure.in.orig Mon Jun 24 12:47:45 2002
++++ configure.in
+@@ -99,7 +99,13 @@
+ fi
+ AC_DEFINE(_ISOC9X_SOURCE,1,[ISO compliant code])
+ AC_DEFINE(_POSIX_C_SOURCE,199506L,[POSIX compliant code])
++ case $host_vendor-$host_os in
++ *netbsd*)
++ AC_DEFINE(_XOPEN_SOURCE,520,[NetBSD needs this for getaddrinfo])
++ ;;
++ *)
+ AC_DEFINE(_XOPEN_SOURCE,500,[Single Unix conformance])
++ esac
+ fi
+
+ dnl #########################################################################
diff --git a/mail/libesmtp/patches/patch-ab b/mail/libesmtp/patches/patch-ab
new file mode 100644
index 00000000000..534085c4c3c
--- /dev/null
+++ b/mail/libesmtp/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/09/22 13:01:25 cjep Exp $
+
+--- libesmtp-config.in.orig Wed Dec 12 14:30:37 2001
++++ libesmtp-config.in
+@@ -69,7 +69,7 @@
+ ;;
+
+ --libs)
+- echo @PTHREAD_LDFLAGS@ -L@libdir@ -lesmtp @LIBS@ @PTHREAD_LIBS@
++ echo @PTHREAD_LDFLAGS@ -L@libdir@ -Wl,-R@libdir@ -lesmtp @LIBS@ @PTHREAD_LIBS@
+ ;;
+
+ --plugindir)