summaryrefslogtreecommitdiff
path: root/package/libesmtp
diff options
context:
space:
mode:
Diffstat (limited to 'package/libesmtp')
-rw-r--r--package/libesmtp/Makefile36
-rw-r--r--package/libesmtp/patches/patch-Makefile_am12
-rw-r--r--package/libesmtp/patches/patch-Makefile_in12
-rw-r--r--package/libesmtp/patches/patch-crammd5_Makefile_am12
-rw-r--r--package/libesmtp/patches/patch-crammd5_Makefile_in12
-rw-r--r--package/libesmtp/patches/patch-login_Makefile_am12
-rw-r--r--package/libesmtp/patches/patch-login_Makefile_in12
-rw-r--r--package/libesmtp/patches/patch-ntlm_Makefile_am12
-rw-r--r--package/libesmtp/patches/patch-ntlm_Makefile_in12
-rw-r--r--package/libesmtp/patches/patch-plain_Makefile_am12
-rw-r--r--package/libesmtp/patches/patch-plain_Makefile_in12
11 files changed, 156 insertions, 0 deletions
diff --git a/package/libesmtp/Makefile b/package/libesmtp/Makefile
new file mode 100644
index 000000000..ceeeec4fa
--- /dev/null
+++ b/package/libesmtp/Makefile
@@ -0,0 +1,36 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+# always use tab spaces as separator, no spaces
+PKG_NAME:= libesmtp
+PKG_VERSION:= 1.0.6
+PKG_RELEASE:= 1
+PKG_MD5SUM:= bf3915e627fd8f35524a8fdfeed979c8
+PKG_DESCR:= lib that implements the client side of the SMTP protocol
+PKG_SECTION:= libs/net
+PKG_URL:= http://www.stafford.uklinux.net/libesmtp/
+PKG_SITES:= http://www.stafford.uklinux.net/libesmtp/
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
+PKG_FLAVOURS_PKGNAME:= WITH_SSL
+PKGFD_WITH_SSL:= enable SSL support
+PKGFS_WITH_SSL:= libopenssl
+PKGFB_WITH_SSL:= openssl
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBESMTP,libesmtp,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+ifneq (${ADK_PACKAGE_LIBESMTP_WITH_SSL},)
+CONFIGURE_ARGS+= --with-openssl
+endif
+
+libesmtp-install:
+ $(INSTALL_DIR) $(IDIR_LIBESMTP)/usr/lib/esmtp-plugins
+ $(CP) $(WRKINST)/usr/lib/libesmtp.so* $(IDIR_LIBESMTP)/usr/lib/
+ $(CP) $(WRKINST)/usr/lib/esmtp-plugins/*.so \
+ $(IDIR_LIBESMTP)/usr/lib/esmtp-plugins/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libesmtp/patches/patch-Makefile_am b/package/libesmtp/patches/patch-Makefile_am
new file mode 100644
index 000000000..f2f3d9dac
--- /dev/null
+++ b/package/libesmtp/patches/patch-Makefile_am
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/Makefile.am 2010-08-09 22:25:24.000000000 +0200
++++ libesmtp-1.0.6/Makefile.am 2014-06-05 22:29:30.049704289 +0200
+@@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = gnu dist-bzip2
+ INCLUDES = -I$(srcdir) $(VERSION_FLAGS)
+ SUBDIRS = @subdirs@ @SASL_PLUGINS@
+ DIST_SUBDIRS = @subdirs@ @DIST_PLUGINS@
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+ ACLOCAL_AMFLAGS = -I m4
+
+ lib_LTLIBRARIES = libesmtp.la
diff --git a/package/libesmtp/patches/patch-Makefile_in b/package/libesmtp/patches/patch-Makefile_in
new file mode 100644
index 000000000..94e8e12fe
--- /dev/null
+++ b/package/libesmtp/patches/patch-Makefile_in
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/Makefile.in 2010-08-09 22:25:56.000000000 +0200
++++ libesmtp-1.0.6/Makefile.in 2014-06-05 22:26:57.239828607 +0200
+@@ -293,7 +293,7 @@ AUTOMAKE_OPTIONS = gnu dist-bzip2
+ INCLUDES = -I$(srcdir) $(VERSION_FLAGS)
+ SUBDIRS = @subdirs@ @SASL_PLUGINS@
+ DIST_SUBDIRS = @subdirs@ @DIST_PLUGINS@
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+ ACLOCAL_AMFLAGS = -I m4
+ lib_LTLIBRARIES = libesmtp.la
+ libesmtp_la_SOURCES = auth-client.c base64.c concatenate.c errors.c \
diff --git a/package/libesmtp/patches/patch-crammd5_Makefile_am b/package/libesmtp/patches/patch-crammd5_Makefile_am
new file mode 100644
index 000000000..c640852b7
--- /dev/null
+++ b/package/libesmtp/patches/patch-crammd5_Makefile_am
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/crammd5/Makefile.am 2010-08-08 17:45:57.000000000 +0200
++++ libesmtp-1.0.6/crammd5/Makefile.am 2014-06-05 22:29:43.615693205 +0200
+@@ -3,7 +3,7 @@
+ libdir = @plugindir@
+
+ INCLUDES = -I@srcdir@
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+
+ lib_LTLIBRARIES = sasl-cram-md5.la
+
diff --git a/package/libesmtp/patches/patch-crammd5_Makefile_in b/package/libesmtp/patches/patch-crammd5_Makefile_in
new file mode 100644
index 000000000..d20c19ff2
--- /dev/null
+++ b/package/libesmtp/patches/patch-crammd5_Makefile_in
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/crammd5/Makefile.in 2010-08-09 22:25:56.000000000 +0200
++++ libesmtp-1.0.6/crammd5/Makefile.in 2014-06-05 22:27:13.400815451 +0200
+@@ -225,7 +225,7 @@ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ INCLUDES = -I@srcdir@
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+ lib_LTLIBRARIES = sasl-cram-md5.la
+ sasl_cram_md5_la_SOURCES = client-crammd5.c hmacmd5.c hmacmd5.h
+ sasl_cram_md5_la_LDFLAGS = -module -avoid-version @CRAMMD5_LIBS@
diff --git a/package/libesmtp/patches/patch-login_Makefile_am b/package/libesmtp/patches/patch-login_Makefile_am
new file mode 100644
index 000000000..4ba39571a
--- /dev/null
+++ b/package/libesmtp/patches/patch-login_Makefile_am
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/login/Makefile.am 2010-08-08 17:45:56.000000000 +0200
++++ libesmtp-1.0.6/login/Makefile.am 2014-06-05 22:29:47.310690185 +0200
+@@ -5,7 +5,7 @@ libdir = @plugindir@
+ INCLUDES = -I@srcdir@
+
+ lib_LTLIBRARIES = sasl-login.la
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+
+ sasl_login_la_SOURCES = client-login.c
+ sasl_login_la_LDFLAGS = -module -avoid-version
diff --git a/package/libesmtp/patches/patch-login_Makefile_in b/package/libesmtp/patches/patch-login_Makefile_in
new file mode 100644
index 000000000..713ca64c0
--- /dev/null
+++ b/package/libesmtp/patches/patch-login_Makefile_in
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/login/Makefile.in 2010-08-09 22:25:56.000000000 +0200
++++ libesmtp-1.0.6/login/Makefile.in 2014-06-05 22:27:23.719807056 +0200
+@@ -227,7 +227,7 @@ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ INCLUDES = -I@srcdir@
+ lib_LTLIBRARIES = sasl-login.la
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+ sasl_login_la_SOURCES = client-login.c
+ sasl_login_la_LDFLAGS = -module -avoid-version
+ all: all-am
diff --git a/package/libesmtp/patches/patch-ntlm_Makefile_am b/package/libesmtp/patches/patch-ntlm_Makefile_am
new file mode 100644
index 000000000..94928b0a3
--- /dev/null
+++ b/package/libesmtp/patches/patch-ntlm_Makefile_am
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/ntlm/Makefile.am 2010-08-08 17:45:56.000000000 +0200
++++ libesmtp-1.0.6/ntlm/Makefile.am 2014-06-05 22:29:51.995686387 +0200
+@@ -3,7 +3,7 @@
+ libdir = @plugindir@
+
+ INCLUDES = -I@srcdir@
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+
+ lib_LTLIBRARIES = sasl-ntlm.la
+
diff --git a/package/libesmtp/patches/patch-ntlm_Makefile_in b/package/libesmtp/patches/patch-ntlm_Makefile_in
new file mode 100644
index 000000000..b335f8253
--- /dev/null
+++ b/package/libesmtp/patches/patch-ntlm_Makefile_in
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/ntlm/Makefile.in 2010-08-09 22:25:56.000000000 +0200
++++ libesmtp-1.0.6/ntlm/Makefile.in 2014-06-05 22:27:36.420796718 +0200
+@@ -226,7 +226,7 @@ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ INCLUDES = -I@srcdir@
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+ lib_LTLIBRARIES = sasl-ntlm.la
+ sasl_ntlm_la_SOURCES = client-ntlm.c ntlmdes.c ntlmstruct.c ntlm.h
+ sasl_ntlm_la_LDFLAGS = -module -avoid-version @NTLM_LIBS@
diff --git a/package/libesmtp/patches/patch-plain_Makefile_am b/package/libesmtp/patches/patch-plain_Makefile_am
new file mode 100644
index 000000000..a22054804
--- /dev/null
+++ b/package/libesmtp/patches/patch-plain_Makefile_am
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/plain/Makefile.am 2010-08-08 17:45:54.000000000 +0200
++++ libesmtp-1.0.6/plain/Makefile.am 2014-06-05 22:29:56.668682572 +0200
+@@ -3,7 +3,7 @@
+ libdir = @plugindir@
+
+ INCLUDES = -I@srcdir@
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+
+ lib_LTLIBRARIES = sasl-plain.la
+
diff --git a/package/libesmtp/patches/patch-plain_Makefile_in b/package/libesmtp/patches/patch-plain_Makefile_in
new file mode 100644
index 000000000..d5c694b87
--- /dev/null
+++ b/package/libesmtp/patches/patch-plain_Makefile_in
@@ -0,0 +1,12 @@
+ prevent doubly passing our CFLAGS
+--- libesmtp-1.0.6.orig/plain/Makefile.in 2010-08-09 22:25:56.000000000 +0200
++++ libesmtp-1.0.6/plain/Makefile.in 2014-06-05 22:27:42.146792037 +0200
+@@ -226,7 +226,7 @@ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ INCLUDES = -I@srcdir@
+-AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
++AM_CFLAGS = @EXTRA_CFLAGS@
+ lib_LTLIBRARIES = sasl-plain.la
+ sasl_plain_la_SOURCES = client-plain.c
+ sasl_plain_la_LDFLAGS = -module -avoid-version