diff options
Diffstat (limited to 'net-mail/smtptools')
-rw-r--r-- | net-mail/smtptools/Manifest | 7 | ||||
-rw-r--r-- | net-mail/smtptools/files/smtptools-0.2.3-autotools.patch | 120 | ||||
-rw-r--r-- | net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch | 61 | ||||
-rw-r--r-- | net-mail/smtptools/metadata.xml | 8 | ||||
-rw-r--r-- | net-mail/smtptools/smtptools-0.2.3.ebuild | 26 |
5 files changed, 222 insertions, 0 deletions
diff --git a/net-mail/smtptools/Manifest b/net-mail/smtptools/Manifest new file mode 100644 index 000000000000..679d0d5cc877 --- /dev/null +++ b/net-mail/smtptools/Manifest @@ -0,0 +1,7 @@ +AUX smtptools-0.2.3-autotools.patch 3951 SHA256 a03826e38d1c43bf5ef449bd891a570ef5dfca360c000032a3677ca1f0ca2f93 SHA512 3d5984bd432dc6ca7e52a8b7e8cb52e3a77ef7c3d42343388f55d8d71251a4c13fd008c907af735b966672ccdf80e4d4e64de9a64ea6117843556577ea2ddcd2 WHIRLPOOL bd3c8328be16c65501a65109514d015f697b3854978a916b71f3a6cd05e87d0c54394a4e6a8f420acbe3eb8c9f09a8d92839f225c2dc94b0149264d06888f9c2 +AUX smtptools-0.2.3-cleanups.patch 1878 SHA256 2208c60ca082ca2ac84bff751ce82c58302b2ac931db0072b63c582068aafe2b SHA512 5bd29abde5b8b80c5a1ed688baf9cc3abe9b9516228401e9395f56f8e5af4aa725774128f1571a8e501d305a8c7258122a9bcace716d8f7704f89bf3bb2b34ec WHIRLPOOL 9599caa5258e0e0aca60affc6f76ec5332a8eb80006a6773253f6d3e495f5b4f94de2772f252da1021283ccfcab6dd2fec21260eef5ed363f9aa18c98dcf161b +DIST smtptools-0.2.3.tar.gz 117859 SHA256 d0832fafea1d6a1a8981fc4455f41e228187331b035522fdc08f3b90f5301f89 SHA512 2d5f5a4fc5d25e5b652800047c7dcba62eb033919e485e42efd07be0e00062f9d89200dd0e65991a13b1366b5b28bb5c2d84d0468e71d05d1540178111b3cf2f WHIRLPOOL d21cc2f67e48556ee67d295ce5fe5263ca4bfef16e36bfd6781cb3175f24597b23b89b4009a33289e2b1397ae5fbe48405884b3c076784376037d925bdd0564d +EBUILD smtptools-0.2.3.ebuild 652 SHA256 428e435a8b5e7bada4a647e5c381d229fada25c1a4af7dc00184e872f08d9b0c SHA512 5a26ba5791236746f798ee48ebc11265cefa6a68a627b15b4e1a953d4ef28d2f237f2c78254e616290888ad607793c0f8719375877176e44c7d5021ac7e4dd6f WHIRLPOOL 949464f292414500485e30d63a4c74397bcd22df8540d87883a1f7c5b436eeb6a139771c57a27d3dcea7a4ad46b1b6b45d9631925045e029ba33fb2ae8f8bd09 +MISC ChangeLog 2516 SHA256 f1d0fff2aef4495e5e1f8aaca4f5a985fe36a1e7f97a566c558acbb04496e801 SHA512 0956d3c153957da1abe3cf39029fa8f894b0c45ac16f62eb1fae1d9ac029ce4dd1e3f1b3ad7a332857cf63feb629b7df02d1910db4d9ffbac123dbc2248addd9 WHIRLPOOL 08fad8db8f77c2cdf5bb7f8e52fb0b59fb37d3ee1b1dad2366df114d0c8270e5f3e53d147320f84844d83cf42fd8aef68e8721fb5943713c2568146924c1c917 +MISC ChangeLog-2015 1432 SHA256 538b0869ae9ecc6ea34b0516950a5a5bf6b1097c479a9bdbd7506ca51654bf5f SHA512 c144fe98ed23b480e149899b2fdbc7179bd6acdc4793ef1d4e1511eef2b67a0053eff1a476a39464c10225a3f5354486a53fbdd5d66593f6dcaf1066e501d788 WHIRLPOOL afcdc6a865c4c32f78abf001ba7cd3cb08a112f765e5ee3a77a8f30d2717e7b5aeccc616d4d7fbf62437daad7339bc20d88a9df1c761db3b2e576af9da65f24b +MISC metadata.xml 244 SHA256 856e819659934229aa18649e0c783b9714fa33065cb5113e7b667ed68392b39a SHA512 0e856f808459b6d83c6eaeee418d87d85385968a39e6c1871a0eb76c04b533bbba16996a6f18613b7c550da90c76843bd01237be9b9f290394048e904535653c WHIRLPOOL 2aa292ef66863766df8920a2ebd497218854f9a41724cdef1d63a93c94620fbea641a688af2bb374673773dd5b1b8afff80867c974f49d5600991ab44f9b8752 diff --git a/net-mail/smtptools/files/smtptools-0.2.3-autotools.patch b/net-mail/smtptools/files/smtptools-0.2.3-autotools.patch new file mode 100644 index 000000000000..9c051b90437f --- /dev/null +++ b/net-mail/smtptools/files/smtptools-0.2.3-autotools.patch @@ -0,0 +1,120 @@ +the autotools in this are ridiculously ancient (over 15 years old). +update them to something reasonable. + +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,7 +1,7 @@ + #noinst_SCRIPTS=systype + PACKAGE_VERSION=@PACKAGE@-@VERSION@ + # i can do that better ... +-AUTOMAKE_OPTIONS=no-dependencies ansi2knr readme-alpha 1.3 gnu ++AUTOMAKE_OPTIONS=no-dependencies readme-alpha gnu + man_MANS=smtpblast.1 usmtpd.1 tomaildir.1 maildirblast.1 rewriteheader.1 + EXTRA_DIST= attribs.h crc32ansi.h dirsysdep.h dns.h dynhash.h \ + dns_int.h filelock.h \ +@@ -41,31 +41,6 @@ maildirblast_SOURCES=maildirblast.c smtp.c runqueue.c \ + uosock_connect.c filelock.c uogetopt.c str2long.c str2ulong.c + maildirblast_LDADD=libdns.a libmta.a libstr.a libio.a @LIBOBJS@ + +-if HAVE_GNU_MAKE +-## We must create the .deps directory if it doesn't exist. We do it +-## in this strange way to make sure the .deps directory exists, +-## without trying to run mkdir for each compilation. +-## stolen from automake +-DEPS_MAGIC := $(shell mkdir deps > /dev/null 2>&1 || :) +-endif +- +-if HAVE_GNU_MAKE +-# no dependency tracking without GNU make +-## +-## automake depencency stuff is unreliable, it will not +-## recreate .deps/xxx.P if it has been removed. +-## and anyway, i dislike hidden directories. +--include $(addprefix ./deps/,$(SOURCES:.c=.d)) +-deps/%.d: %.c +-if HAVE_GCC_DEP +- @echo mkdep $< +- @$(COMPILE) -Wp,-MMD,./deps/$(@F) -E $< >/dev/null +-else +-# no dependency generating without GCC +- @exit 0 +-endif +-endif +- + rpm: $(PACKAGE_VERSION).tar.gz Specfile + $(srcdir)/buildrpm $(srcdir) + success: +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -1,4 +1,4 @@ +-AC_DEFUN(UO_HEADER_SYS_SELECT, ++AC_DEFUN([UO_HEADER_SYS_SELECT], + [AC_CACHE_CHECK([whether sys/time.h and sys/select.h may both be included], + lrzsz_cv_header_sys_select, + [AC_TRY_COMPILE([#include <sys/types.h> +@@ -6,7 +6,7 @@ AC_DEFUN(UO_HEADER_SYS_SELECT, + #include <sys/select.h>], + [struct tm *tp;], lrzsz_cv_header_sys_select=yes, lrzsz_cv_header_sys_select=no)]) + if test $lrzsz_cv_header_sys_select = no; then +-AC_DEFINE(SYS_TIME_WITHOUT_SYS_SELECT) ++AC_DEFINE(SYS_TIME_WITHOUT_SYS_SELECT, 1, [blah]) + fi + ]) + +--- a/configure.in ++++ b/configure.in +@@ -1,7 +1,9 @@ +-AC_INIT(smtpblast.c) +-AM_INIT_AUTOMAKE(smtptools, 0.2.3) ++AC_INIT(smtptools, 0.2.3) ++AM_INIT_AUTOMAKE + AM_CONFIG_HEADER(config.h) + ++AH_BOTTOM([#define P__(x) x]) ++ + if test "x$CFLAGS" = x ; then + if test "x$CC" = "xlcc" ; then + if test "x$_CFLAGS_LCC" != x ; then +@@ -23,38 +25,19 @@ AC_ARG_ENABLE(efence, + dnl Checks for programs. + AC_PROG_CC + AC_PROG_CPP +-if test "x$GCC" = xyes ; then +- AC_MSG_CHECKING([whether gcc supports -Wp,-MMD]) +- old="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS -Wp,-MMD,myconftest.out -E" +- AC_TRY_CPP(int main(void) {return 0;},test -s myconftest.out && GCC_DEP=yes) +- rm -f myconftest.out +- CPPFLAGS="$old"; +- if test "x$GCC_DEP" = xyes ; then AC_MSG_RESULT(yes) ; else AC_MSG_RESULT(no); fi +-fi +-if test "x$GCC_DEP" = xyes ; then : ; else +- AC_MSG_WARN([dependency tracking disabled]) +-fi + AM_CONDITIONAL(HAVE_GCC_DEP, test "x$GCC_DEP" = "xyes") ++AC_CHECK_TOOL(AR, ar) + AC_PROG_RANLIB + AC_CHECK_PROGS(MAKE,gnumake gmake make pmake,make) +-AC_MSG_CHECKING([for GNU make]) +- echo "include confMakefile2" >confMakefile1 +- echo "TESTFORGNUMAKE:" >confMakefile2 +- GNU_MAKE=no +- $MAKE -f confMakefile1 >/dev/null 2>/dev/null && GNU_MAKE=yes +- rm -f confMakefile2 confMakefile1 +- AC_MSG_RESULT($GNU_MAKE) +- AM_CONDITIONAL(HAVE_GNU_MAKE, test "x$GNU_MAKE" = "xyes") +- if test "x$GNU_MAKE" = "xno" ; then +- AC_MSG_WARN([dependencies disabled]) +- fi +-AM_C_PROTOTYPES + + dnl Checks for libraries. + if test "x$WANT_EFENCE" = x ; then : ; else + AC_CHECK_LIB(efence, main) + fi ++dnl glibc uses the symbol __dn_expand and provides a dn_expand define ++dnl which expands into __dn_expand. check for both. + AC_CHECK_LIB(resolv, dn_expand) ++AC_CHECK_LIB(resolv, __dn_expand) + dnl SCO needs this. + AC_CHECK_LIB(socket,syslog,,,) + dnl slowlartis needs this diff --git a/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch b/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch new file mode 100644 index 000000000000..6873cf390255 --- /dev/null +++ b/net-mail/smtptools/files/smtptools-0.2.3-cleanups.patch @@ -0,0 +1,61 @@ +--- smtptools/usmtpd.c ++++ smtptools/usmtpd.c +@@ -60,8 +60,8 @@ + /* run */ static const char *reminfo; + /* run */ static const char *relayclient; + +-/* opt */ static unsigned long read_timeout=1200; +-/* opt */ static unsigned long write_timeout=1200; ++/* opt */ static unsigned long u_read_timeout=1200; ++/* opt */ static unsigned long u_write_timeout=1200; + /* opt */ static char *log_spec_str=NULL; + /* opt */ static unsigned long aging=0; + +@@ -108,7 +108,7 @@ + "Use $QMAILQUEUE to override, overrides --maildir\n", "PATH"}, + {'r',"relaydb", UOGO_STRING,&relaydbname,1, + "Path to relaying control file", "FILE"}, +- {'R',"read-timeout", UOGO_ULONG,&read_timeout,0, ++ {'R',"read-timeout", UOGO_ULONG,&u_read_timeout,0, + "Timeout in seconds for reading from remote", "TIMEOUT"}, + {'s',"max-size", UOGO_ULONG,&maxsize,0, + "Maximum size of messages\noverridden by $DATABYTES", "LIMIT"}, +@@ -117,7 +117,7 @@ + "Used for DNS and envelope sender checking.\n" + "Default: accept messages during this time"}, + /*123456789012345678901234567890123456789012345678901234567890*/ +- {'W',"write-timeout", UOGO_ULONG,&write_timeout,0, ++ {'W',"write-timeout", UOGO_ULONG,&u_write_timeout,0, + "Timeout in seconds for writing to remote.","TIMEOUT"}, + {0,0} + }; +@@ -632,9 +632,9 @@ + } + + uoio_assign_r(&i,0,read,0); +- i.timeout=read_timeout; ++ i.timeout=u_read_timeout; + uoio_assign_w(&o,1,write,0); +- o.timeout=write_timeout; ++ o.timeout=u_write_timeout; + + if (rblcheck) do_rbl_check(&o); + +--- smtptools/relaydb.c ++++ smtptools/relaydb.c +@@ -1,4 +1,5 @@ + #include "config.h" ++#include <string.h> + #include <unistd.h> + #include <netinet/in.h> + #include <arpa/inet.h> +--- smtptools/uostr.h ++++ smtptools/uostr.h +@@ -1,6 +1,7 @@ + #ifndef UOSTR_H + #define UOSTR_H + ++#include <string.h> + #include "uocompiler.h" /* P__ */ + #include "attribs.h" + diff --git a/net-mail/smtptools/metadata.xml b/net-mail/smtptools/metadata.xml new file mode 100644 index 000000000000..1c3bc7b3fcef --- /dev/null +++ b/net-mail/smtptools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>net-mail@gentoo.org</email> + <name>Net-Mail</name> + </maintainer> +</pkgmetadata> diff --git a/net-mail/smtptools/smtptools-0.2.3.ebuild b/net-mail/smtptools/smtptools-0.2.3.ebuild new file mode 100644 index 000000000000..875d3efd46de --- /dev/null +++ b/net-mail/smtptools/smtptools-0.2.3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils autotools + +DESCRIPTION="A collection of tools to send or receive mails with SMTP" +HOMEPAGE="http://www.ohse.de/uwe/software/smtptools.html" +SRC_URI="ftp://ftp.ohse.de/uwe/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh x86" +IUSE="" + +RDEPEND="!net-mail/qtools" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-autotools.patch + mv configure.{in,ac} || die + rm acconfig.h || die + epatch "${FILESDIR}"/${P}-cleanups.patch + eautoreconf +} |