summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-07-15 11:44:44 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-07-15 11:44:44 +0000
commite627b227747c6ef4144e1c04398dea531c4cdc74 (patch)
tree7e8abecb9d269dad825c7f9f1d773faf15f1f422 /mail-mta
parentStable for amd64, wrt bug #424165 (diff)
downloadhistorical-e627b227747c6ef4144e1c04398dea531c4cdc74.tar.gz
historical-e627b227747c6ef4144e1c04398dea531c4cdc74.tar.bz2
historical-e627b227747c6ef4144e1c04398dea531c4cdc74.zip
Update 2.64 patchset to include the Solaris patch instead of having it in $FILESDIR; simplify prefix handling by not doing any permission handling there (it would otherwise create a security issue); rename configure.in for compatibility with future autoconf. Remove old version and its patches.
Package-Manager: portage-2.2.0_alpha117/cvs/Linux x86_64
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/ssmtp/ChangeLog15
-rw-r--r--mail-mta/ssmtp/Manifest34
-rw-r--r--mail-mta/ssmtp/files/CVE-2008-3962-r2.patch20
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.61-darwin7.patch10
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.62-authpass.patch12
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.62-darwin-crypto.patch18
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.62-from_format_fix.patch22
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.62-maxsysuid-conf.patch17
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.62-maxsysuid.patch37
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.62-solaris-basename-conflict.patch38
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.62-strndup.patch32
-rw-r--r--mail-mta/ssmtp/files/ssmtp-2.64-uint32_t.patch129
-rw-r--r--mail-mta/ssmtp/ssmtp-2.62-r8.ebuild118
-rw-r--r--mail-mta/ssmtp/ssmtp-2.64-r2.ebuild23
14 files changed, 41 insertions, 484 deletions
diff --git a/mail-mta/ssmtp/ChangeLog b/mail-mta/ssmtp/ChangeLog
index a71951321184..8d0be6e3ecc2 100644
--- a/mail-mta/ssmtp/ChangeLog
+++ b/mail-mta/ssmtp/ChangeLog
@@ -1,6 +1,19 @@
# ChangeLog for mail-mta/ssmtp
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.123 2012/06/04 21:13:39 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.124 2012/07/15 11:44:43 flameeyes Exp $
+
+ 15 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+ -files/CVE-2008-3962-r2.patch, -files/ssmtp-2.61-darwin7.patch,
+ -files/ssmtp-2.62-authpass.patch, -files/ssmtp-2.62-darwin-crypto.patch,
+ -files/ssmtp-2.62-from_format_fix.patch,
+ -files/ssmtp-2.62-maxsysuid-conf.patch, -files/ssmtp-2.62-maxsysuid.patch,
+ -files/ssmtp-2.62-solaris-basename-conflict.patch,
+ -files/ssmtp-2.62-strndup.patch, -files/ssmtp-2.64-uint32_t.patch,
+ -ssmtp-2.62-r8.ebuild, ssmtp-2.64-r2.ebuild:
+ Update 2.64 patchset to include the Solaris patch instead of having it in
+ $FILESDIR; simplify prefix handling by not doing any permission handling there
+ (it would otherwise create a security issue); rename configure.in for
+ compatibility with future autoconf. Remove old version and its patches.
04 Jun 2012; Zac Medico <zmedico@gentoo.org> ssmtp-2.62-r8.ebuild,
ssmtp-2.64-r2.ebuild:
diff --git a/mail-mta/ssmtp/Manifest b/mail-mta/ssmtp/Manifest
index e575d5ceabde..675571421eb6 100644
--- a/mail-mta/ssmtp/Manifest
+++ b/mail-mta/ssmtp/Manifest
@@ -1,27 +1,19 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
-AUX CVE-2008-3962-r2.patch 649 RMD160 bca92bab9b8ac1f832e0c2533f5b0ab02cdb0a48 SHA1 235a5fc08cee4c059e0b9bb6c213089a54796abd SHA256 90b337f4e87ac01f84c5e032f75161a9c4d57d566422bc8bdc4d4064e1c5dc16
-AUX ssmtp-2.61-darwin7.patch 194 RMD160 45a0b135de548b0d1c42be61c4925d2d41411ff4 SHA1 068ff9d600a299524066e1f1050785693e7d6449 SHA256 d79e8a34ed46168bf0e5a05b56f4f62f65a334e893a12b53bf1642db29051dd5
-AUX ssmtp-2.62-authpass.patch 389 RMD160 edff4efbd796f49364fb78499a16c48280047218 SHA1 415cdd30d8c96b1d0ed9b04b92642c2f65546d28 SHA256 b51392e40f4b22f4bb48e159059fc33a6cad6964d9445c3adabf1f65e65ae17d
-AUX ssmtp-2.62-darwin-crypto.patch 306 RMD160 22a85dc723bd3e4468a2c84ce63768847e9af2b6 SHA1 e94b96982371d2aeefc3e5b9e90a752af69eebee SHA256 249787eddebef81d9eeee7f2d012a370bf25ddb6364cef67ba9aaf41af5c3214
-AUX ssmtp-2.62-from_format_fix.patch 543 RMD160 a4289a8eda3c0f5f03e3fcd5823ddb3cd6d89930 SHA1 72ba0f392714b39e237cee97ad9582dc3456a9fb SHA256 8d48bd527cda1e8c9fda7e80b6cb7d403a009d8a9576a6ca7f358245e34abcf9
-AUX ssmtp-2.62-maxsysuid-conf.patch 667 RMD160 9a515e40aedc8eb8784cc7bb9b75b55536877f42 SHA1 af175c8fd039fcd7a125b2c3f3eba80bd69006dd SHA256 634d8e1e66d9a1c13aa4b75de37194899d12ed069b7cd651c3f49e361745b99e
-AUX ssmtp-2.62-maxsysuid.patch 1185 RMD160 a6a4a1dc23a74170b52e84a1e34149258e08b7b6 SHA1 9da033da95e9ac04046969d60914cd64f1405e47 SHA256 49201b47eb88e860d0a07777aa895127c2415bc170faacdefc376c221a595961
-AUX ssmtp-2.62-solaris-basename-conflict.patch 836 RMD160 832fff541bd43e59c0f6cc8abedf99463f70b156 SHA1 392b36d436f9897956e6d856652afd4f1c90f383 SHA256 791476ebc0b35daeba271d563f2e75d5dd3169dc2bb163ba6934bfa0f2f3f2c7
-AUX ssmtp-2.62-strndup.patch 682 RMD160 d56434a83ec6bb49cafb67846e0082551d1a3be3 SHA1 9b8328c8ea1410683dd13cc770582658e33d716e SHA256 2ce7b4526db527656bfb9cde41f940e5da23b9fb2089a6b5b9bd4bae6dfa07ab
-AUX ssmtp-2.64-uint32_t.patch 4074 RMD160 e1f26587a54921d01e6e083dc6b481e309fb2fcd SHA1 1b383e8cd2e657671ad0024f177f84b4d9321dcd SHA256 9fdfbd07bca5503b389bbf47e2171db5b58d2c851b2c85982ec315c2041053c6
-DIST ssmtp-2.64-patches-2.tar.bz2 3933 RMD160 fc00fec6cca1ad5b4a20785ae5a88a95bb368a23 SHA1 b3b1153d619aeada5b21e1a87678d9f0c31fb68b SHA256 33f04430f0365b43f123798338aea37c94162bfba6594b324bd681278874d1b0
-DIST ssmtp_2.62.orig.tar.gz 57127 RMD160 1c16b2d50224f4d29813a34f87a3480e66892b36 SHA1 5c15aafb252f6cb11e4b93140a1457b6cb0d0fb8 SHA256 e2a0a5379cd0bbb0b4b0304abeba7a8f60aa85275982c5d7930c319e7f284ed1
-DIST ssmtp_2.64.orig.tar.bz2 52501 RMD160 ea6472e52a499c39d1d8ce7e13add9d8e9accbfb SHA1 db0cc6b4f82ab8b4c79335933db9c4db706324d1 SHA256 22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36
-EBUILD ssmtp-2.62-r8.ebuild 3332 RMD160 b67c7d7ecd54e949addebf5d08092eab24a23cd9 SHA1 5d61c4b77b5178c9f7bdbac2662bf5e3f16cbe36 SHA256 5a736c7cfef983f1bef410d6a2c9962911fd185bb8c08198eb58f9775db5e07d
-EBUILD ssmtp-2.64-r2.ebuild 2943 RMD160 e021e9fa7d5d1cdb2d6412528f0a30553b269e0f SHA1 5315745d79050aac54eb31bb30a437adbbb08378 SHA256 04b59864cc9174be76f76721fe31834e861d2ab828f7c8188ddb150dfd482836
-MISC ChangeLog 21624 RMD160 59ec4e2f4539fae7c46000fe9931be21a6b91eaa SHA1 4c87fed8cff9e1128310d3d5c22431c1cf000efd SHA256 824575a79d999c54090c768f54cae5b118c99d8af9a52ca997297ef0cb638dcc
-MISC metadata.xml 377 RMD160 3d66bb69090682e6cfc9c31689a2b16cc6bac01a SHA1 785687ef241d1e96e16a391eec3a68fa69b2197c SHA256 499381ad2c8edf885d6293acfe68cf4b77fdcfc20d80841791704848f6e63bd9
+DIST ssmtp-2.64-patches-3.tar.bz2 5128 SHA256 8414329b529b58197e6425ec75387f9bfc02e088cbef7ee83be80bf549ca4140 SHA512 140ca571705ee45ca2d6718b456ab028e3aaeb910a64230d8143a29de837eb3be8f16641f21f56f2c5112867512fabdc952886701d596f0bb303fc1524a1ad46 WHIRLPOOL e4ae24baaa91a424b32cced5111f640e9c3265b2f077f220f894884a7973b3ee4a887bf1113d36a167404c8e6a7123d9bb1bcd95e1a79aada3fd494b2d8b2a0f
+DIST ssmtp_2.64.orig.tar.bz2 52501 SHA256 22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36 SHA512 911752e744420adf58552b9cf3a6e558d8b39103e5ad33a9ed4429b9a3a2091f7674aac11fe9bbd66747a61cdabe6bd638b80efcaadc86b057c12e2e235cca72 WHIRLPOOL afa8d41b18c5be632b5b85ca483f1d2ef889d943a5a99fe0c4fe877655148313e3f031308a4126e23c6fa7bcbae009a5804071f6c77f36b092a51aeba259fea8
+EBUILD ssmtp-2.64-r2.ebuild 3071 SHA256 5bba12f10cf46ca6994a21cc0cc202700ce059e4026b0835b3a4b0deab6a9ca7 SHA512 2259b5be0b2cd233d9316aff6c604ce61f761b3882a7bbf3e714fb6c940355df5e37910902c32fc31faac39b2a630e28e9ed9b1c6a4196899af703799b2bc441 WHIRLPOOL c828b55f09d7f48a01f41ee8c439872838ab71b30736f852fcf9e2ce614db06c42c66c3081e5c9a9a0b80d3908cc597169e8d012c41235a82a4f557959cbd68e
+MISC ChangeLog 22417 SHA256 968e3c86892b4813cbf60162910d65dd366600fe32bef211920f596f8d6dbed5 SHA512 595b46c391be502667731c05d6840fa4de4b9f06439892aad9a6db9e1a67c11c2f1edab68b1a01d6be598ceabc6ea249181fec1c6a5a5d3060f74958a0641976 WHIRLPOOL 540c9718ee0d89890c737dc5a8ccf0176cc6adb50e7907f542db05d5f2e360f5fa88aca5689ca3ce4117b8f28a80e68c118eb7a4152bacfc9155dd46c73b0505
+MISC metadata.xml 377 SHA256 499381ad2c8edf885d6293acfe68cf4b77fdcfc20d80841791704848f6e63bd9 SHA512 69b5733dfaaa75cc7f79266c4868bf987cc586db206e03df1c22205a36d7b747c7bef815dc15d49b935e0b9143587343355142f54b6cfc4a7c281c67f03ef069 WHIRLPOOL ab26e18cdf24d6686a1f647cf8992cd5f39b9eaa093ee842735a7e31639c72c2d9353279d80be1300fca07de27a4cfa5dc5caab4f15e403fe64a1c27d4c4299d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEARECAAYFAk/NJQkACgkQ/ejvha5XGaPi3QCg1LxkrykmUkKRs+a2xvqHO8jS
-jVIAnjy0MuglY3c48B6gAYgGkzfuZ4TI
-=iJ0P
+iQEcBAEBCAAGBQJQAq06AAoJEBzRPIrUMBNCqy8H/R5hZqmsFCbhriEsk/YXbBjW
+A/08a8DlFI8MsXzlFrGxxxO9kz4ixyaDpdH5V5buTAY4KqcEDAbGas3wIyXdnVjF
+BkJ8Kp5jay9AhPaeoY1k4YB++/3FRir6T2JRudglOLr2Ma1Cyf/8Vq4i/0CWtnWf
+9MeACI65bw9LYXxxmfuHTp7+LhJfzIkTubuA9pHXM2FoR9inhBaSwqmiPzDQz220
+1VywQzdpCUtYceJqMSH4Tn+E0OK2v/PMefdFbaBENw6ZBuu/tBdg+Y9cUiMjV+Iz
+ehUz8rZH7j3PVZhtmdNBuZ0vOrOd+r2XQmaSQPjQ4Dlb8hf3EsOJexZQ8g43dLk=
+=1wMC
-----END PGP SIGNATURE-----
diff --git a/mail-mta/ssmtp/files/CVE-2008-3962-r2.patch b/mail-mta/ssmtp/files/CVE-2008-3962-r2.patch
deleted file mode 100644
index dad814a17a9d..000000000000
--- a/mail-mta/ssmtp/files/CVE-2008-3962-r2.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- ssmtp.c.orig 2009-02-18 15:17:23.000000000 +0200
-+++ ssmtp.c 2009-02-18 15:19:54.000000000 +0200
-@@ -1376,7 +1376,7 @@
- ssize_t outbytes = 0;
-
- va_start(ap, format);
-- if(vsnprintf(buf, (BUF_SZ - 2), format, ap) == -1) {
-+ if(vsnprintf(buf, BUF_SZ, format, ap) == -1) {
- die("smtp_write() -- vsnprintf() failed");
- }
- va_end(ap);
-@@ -1643,7 +1643,7 @@
-
- /* don't hang forever when reading from stdin */
- while(!feof(stdin) && timeout < MEDWAIT) {
-- if (!fgets(buf, sizeof(buf), stdin)) {
-+ if (!fgets(buf, sizeof(buf)-2, stdin)) {
- /* if nothing was received, then no transmission
- * over smtp should be done */
- sleep(1);
diff --git a/mail-mta/ssmtp/files/ssmtp-2.61-darwin7.patch b/mail-mta/ssmtp/files/ssmtp-2.61-darwin7.patch
deleted file mode 100644
index 8f6aaec76c4b..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.61-darwin7.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- ssmtp-2.61/ssmtp.c
-+++ ssmtp-2.61/ssmtp.c
-@@ -14,6 +14,7 @@
- */
- #define VERSION "2.60.4"
-
-+#include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <sys/param.h>
diff --git a/mail-mta/ssmtp/files/ssmtp-2.62-authpass.patch b/mail-mta/ssmtp/files/ssmtp-2.62-authpass.patch
deleted file mode 100644
index 5d6aae9a5104..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.62-authpass.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- ssmtp.c 2008-09-26 02:13:48.000000000 -0600
-+++ ssmtp.c.new 2008-09-26 02:15:41.000000000 -0600
-@@ -1056,7 +1042,8 @@
- }
- }
- else if(strcasecmp(p, "AuthPass") == 0 && !auth_pass) {
-- if((auth_pass = strdup(q)) == (char *)NULL) {
-+ auth_pass = firsttok(&rightside, " \n\t");
-+ if(auth_pass == (char *)NULL) {
- die("parse_config() -- strdup() failed");
- }
-
diff --git a/mail-mta/ssmtp/files/ssmtp-2.62-darwin-crypto.patch b/mail-mta/ssmtp/files/ssmtp-2.62-darwin-crypto.patch
deleted file mode 100644
index 94b52d60a883..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.62-darwin-crypto.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Fix linking error:
-
-Undefined symbols:
- "_X509_free", referenced from:
- _smtp_open in ssmtp.o
-ld: symbol(s) not found
-
-
---- configure.in
-+++ configure.in
-@@ -53,6 +53,6 @@
- if test x$enableval = xyes ; then
- AC_DEFINE(HAVE_SSL)
-- LIBS="$LIBS -lssl"
-+ LIBS="$LIBS -lssl -lcrypto"
- fi
- enableval=""
-
diff --git a/mail-mta/ssmtp/files/ssmtp-2.62-from_format_fix.patch b/mail-mta/ssmtp/files/ssmtp-2.62-from_format_fix.patch
deleted file mode 100644
index 119cea2c29f8..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.62-from_format_fix.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- ssmtp.c.old 2009-09-11 11:51:01.000000000 +0200
-+++ ssmtp.c 2009-09-11 11:52:10.000000000 +0200
-@@ -455,7 +455,7 @@
- */
- char *from_format(char *str, bool_t override_from)
- {
-- char buf[(BUF_SZ + 1)];
-+ char buf[(BUF_SZ + 1)] = "";
-
- if(override_from) {
- if(minus_f) {
-@@ -484,6 +484,10 @@
- if(snprintf(buf, BUF_SZ, "\"%s\" <%s>", gecos, str) == -1) {
- die("from_format() -- snprintf() failed");
- }
-+ } else {
-+ if(snprintf(buf, BUF_SZ, "%s", str) == -1) {
-+ die("from_format() -- snprintf() failed");
-+ }
- }
- }
-
diff --git a/mail-mta/ssmtp/files/ssmtp-2.62-maxsysuid-conf.patch b/mail-mta/ssmtp/files/ssmtp-2.62-maxsysuid-conf.patch
deleted file mode 100644
index 8e51c5e3c3e4..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.62-maxsysuid-conf.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- ssmtp.orig.conf 2004-07-23 00:58:48.000000000 -0500
-+++ ssmtp.conf 2008-07-14 14:11:34.000000000 -0500
-@@ -2,10 +2,13 @@
- # /etc/ssmtp.conf -- a config file for sSMTP sendmail.
- #
-
--# The person who gets all mail for userids < 1000
-+# The person who gets all mail for userids < MinUserId
- # Make this empty to disable rewriting.
- root=postmaster
-
-+# All mail delivered to userid >= MinUserId goes to user, not root.
-+#MinUserId=1000
-+
- # The place where the mail goes. The actual machine name is required
- # no MX records are consulted. Commonly mailhosts are named mail.domain.com
- # The example will fit if you are in domain.com and your mailhub is so named.
diff --git a/mail-mta/ssmtp/files/ssmtp-2.62-maxsysuid.patch b/mail-mta/ssmtp/files/ssmtp-2.62-maxsysuid.patch
deleted file mode 100644
index fef53c4116b5..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.62-maxsysuid.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- ssmtp.orig.c 2004-07-23 00:58:48.000000000 -0500
-+++ ssmtp.c 2008-07-14 16:03:08.000000000 -0500
-@@ -76,6 +76,7 @@ int log_level = 1;
- #else
- int log_level = 0;
- #endif
-+int minuserid = MAXSYSUID+1;
- int port = 25;
- #ifdef INET6
- int p_family = PF_UNSPEC; /* Protocol family used in SMTP connection */
-@@ -641,7 +642,7 @@ char *rcpt_remap(char *str)
- {
- struct passwd *pw;
- if((root==NULL) || strlen(root)==0 || strchr(str, '@') ||
-- ((pw = getpwnam(str)) == NULL) || (pw->pw_uid > MAXSYSUID)) {
-+ ((pw = getpwnam(str)) == NULL) || (pw->pw_uid >= minuserid)) {
- return(append_domain(str)); /* It's not a local systems-level user */
- }
- else {
-@@ -814,6 +815,17 @@ bool_t read_config()
- log_event(LOG_INFO, "Set Root=\"%s\"\n", root);
- }
- }
-+ else if(strcasecmp(p, "MinUserId") == 0) {
-+ if((r = strdup(q)) == (char *)NULL) {
-+ die("parse_config() -- strdup() failed");
-+ }
-+
-+ minuserid = atoi(r);
-+
-+ if(log_level > 0) {
-+ log_event(LOG_INFO, "Set MinUserId=\"%d\"\n", minuserid);
-+ }
-+ }
- else if(strcasecmp(p, "MailHub") == 0) {
- if((mailhost = strdup(q)) == (char *)NULL) {
- die("parse_config() -- strdup() failed");
diff --git a/mail-mta/ssmtp/files/ssmtp-2.62-solaris-basename-conflict.patch b/mail-mta/ssmtp/files/ssmtp-2.62-solaris-basename-conflict.patch
deleted file mode 100644
index 362ba5948fa8..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.62-solaris-basename-conflict.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-This function overshadows the one from libc on Solaris, and guess what,
-is hence never called. Since the original one has an entirely different
-contract, it results in unconditional segfaults lateron, so always use
-the internal copy as it's small enough not to care.
-
---- ssmtp.c
-+++ ssmtp.c
-@@ -223,11 +223,10 @@
- exit(1);
- }
-
--#ifndef _GNU_SOURCE
- /*
--basename() -- Return last element of path
-+xbasename() -- Return last element of path
- */
--char *basename(char *str)
-+char *xbasename(char *str)
- {
- char *p;
-
-@@ -238,7 +237,6 @@
-
- return(strdup(p));
- }
--#endif /* _GNU_SOURCE */
-
- /*
- strip_pre_ws() -- Return pointer to first non-whitespace character
-@@ -2058,7 +2056,7 @@
- (void)signal(SIGTTOU, SIG_IGN);
-
- /* Set the globals */
-- prog = basename(argv[0]);
-+ prog = xbasename(argv[0]);
-
- hostname = xgethostname();
-
diff --git a/mail-mta/ssmtp/files/ssmtp-2.62-strndup.patch b/mail-mta/ssmtp/files/ssmtp-2.62-strndup.patch
deleted file mode 100644
index a4434ebf08bb..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.62-strndup.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-Compensate for platforms that don't have strndup, like Solaris
-
---- configure.in
-+++ configure.in
-@@ -30,7 +30,7 @@
- dnl Checks for library functions.
- AC_TYPE_SIGNAL
- AC_FUNC_VPRINTF
--AC_CHECK_FUNCS(gethostname socket strdup strstr)
-+AC_CHECK_FUNCS(gethostname socket strdup strndup strstr)
-
- dnl Check for optional features
- AC_ARG_ENABLE(logfile,
---- ssmtp.c
-+++ ssmtp.c
-@@ -842,7 +842,16 @@
- if (!rest) {
- return NULL;
- }
-+#ifdef HAVE_STRNDUP
- tok=strndup(*s,rest-(*s));
-+#else
-+ {
-+ size_t len = rest - (*s);
-+ tok = malloc(sizeof(char) * (len + 1));
-+ memcpy(tok, *s, len);
-+ tok[len] = '\0';
-+ }
-+#endif
- if (!tok) {
- die("firsttok() -- strndup() failed");
- }
diff --git a/mail-mta/ssmtp/files/ssmtp-2.64-uint32_t.patch b/mail-mta/ssmtp/files/ssmtp-2.64-uint32_t.patch
deleted file mode 100644
index cc4ab466e6f0..000000000000
--- a/mail-mta/ssmtp/files/ssmtp-2.64-uint32_t.patch
+++ /dev/null
@@ -1,129 +0,0 @@
-Use C99 standard's uint32_t
-
---- md5auth/md5.h
-+++ md5auth/md5.h
-@@ -23,10 +23,12 @@
- documentation and/or software.
- */
-
-+#include <stdint.h>
-+
- /* MD5 context. */
- typedef struct {
-- u_int32_t state[4]; /* state (ABCD) */
-- u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
-+ uint32_t state[4]; /* state (ABCD) */
-+ uint32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
- unsigned char buffer[64]; /* input buffer */
- } MD5_CTX;
-
---- md5auth/md5c.c
-+++ md5auth/md5c.c
-@@ -46,11 +46,11 @@
- #define S43 15
- #define S44 21
-
--static void MD5Transform PROTO_LIST ((u_int32_t [4], unsigned char [64]));
-+static void MD5Transform PROTO_LIST ((uint32_t [4], unsigned char [64]));
- static void Encode PROTO_LIST
-- ((unsigned char *, u_int32_t *, unsigned int));
-+ ((unsigned char *, uint32_t *, unsigned int));
- static void Decode PROTO_LIST
-- ((u_int32_t *, unsigned char *, unsigned int));
-+ ((uint32_t *, unsigned char *, unsigned int));
- static void MD5_memcpy PROTO_LIST ((POINTER, POINTER, unsigned int));
- static void MD5_memset PROTO_LIST ((POINTER, int, unsigned int));
-
-@@ -75,22 +75,22 @@
- Rotation is separate from addition to prevent recomputation.
- */
- #define FF(a, b, c, d, x, s, ac) { \
-- (a) += F ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
-+ (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
- (a) = ROTATE_LEFT ((a), (s)); \
- (a) += (b); \
- }
- #define GG(a, b, c, d, x, s, ac) { \
-- (a) += G ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
-+ (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
- (a) = ROTATE_LEFT ((a), (s)); \
- (a) += (b); \
- }
- #define HH(a, b, c, d, x, s, ac) { \
-- (a) += H ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
-+ (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
- (a) = ROTATE_LEFT ((a), (s)); \
- (a) += (b); \
- }
- #define II(a, b, c, d, x, s, ac) { \
-- (a) += I ((b), (c), (d)) + (x) + (u_int32_t)(ac); \
-+ (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
- (a) = ROTATE_LEFT ((a), (s)); \
- (a) += (b); \
- }
-@@ -124,10 +124,10 @@
- index = (unsigned int)((context->count[0] >> 3) & 0x3F);
-
- /* Update number of bits */
-- if ((context->count[0] += ((u_int32_t)inputLen << 3))
-- < ((u_int32_t)inputLen << 3))
-+ if ((context->count[0] += ((uint32_t)inputLen << 3))
-+ < ((uint32_t)inputLen << 3))
- context->count[1]++;
-- context->count[1] += ((u_int32_t)inputLen >> 29);
-+ context->count[1] += ((uint32_t)inputLen >> 29);
-
- partLen = 64 - index;
-
-@@ -184,10 +184,10 @@
- /* MD5 basic transformation. Transforms state based on block.
- */
- static void MD5Transform (state, block)
--u_int32_t state[4];
-+uint32_t state[4];
- unsigned char block[64];
- {
-- u_int32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];
-+ uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];
-
- Decode (x, block, 64);
-
-@@ -273,12 +273,12 @@
- MD5_memset ((POINTER)x, 0, sizeof (x));
- }
-
--/* Encodes input (u_int32_t) into output (unsigned char). Assumes len is
-+/* Encodes input (uint32_t) into output (unsigned char). Assumes len is
- a multiple of 4.
- */
- static void Encode (output, input, len)
- unsigned char *output;
--u_int32_t *input;
-+uint32_t *input;
- unsigned int len;
- {
- unsigned int i, j;
-@@ -291,19 +291,19 @@
- }
- }
-
--/* Decodes input (unsigned char) into output (u_int32_t). Assumes len is
-+/* Decodes input (unsigned char) into output (uint32_t). Assumes len is
- a multiple of 4.
- */
- static void Decode (output, input, len)
--u_int32_t *output;
-+uint32_t *output;
- unsigned char *input;
- unsigned int len;
- {
- unsigned int i, j;
-
- for (i = 0, j = 0; j < len; i++, j += 4)
-- output[i] = ((u_int32_t)input[j]) | (((u_int32_t)input[j+1]) << 8) |
-- (((u_int32_t)input[j+2]) << 16) | (((u_int32_t)input[j+3]) << 24);
-+ output[i] = ((uint32_t)input[j]) | (((uint32_t)input[j+1]) << 8) |
-+ (((uint32_t)input[j+2]) << 16) | (((uint32_t)input[j+3]) << 24);
- }
-
- /* Note: Replace "for loop" with standard memcpy if possible.
diff --git a/mail-mta/ssmtp/ssmtp-2.62-r8.ebuild b/mail-mta/ssmtp/ssmtp-2.62-r8.ebuild
deleted file mode 100644
index 1d2505022bbd..000000000000
--- a/mail-mta/ssmtp/ssmtp-2.62-r8.ebuild
+++ /dev/null
@@ -1,118 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r8.ebuild,v 1.11 2012/06/04 21:13:39 zmedico Exp $
-
-EAPI="3"
-
-inherit eutils toolchain-funcs autotools user
-
-DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub"
-HOMEPAGE="ftp://ftp.debian.org/debian/pool/main/s/ssmtp/"
-SRC_URI="mirror://debian/pool/main/s/ssmtp/${P/-/_}.orig.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
-IUSE="ssl ipv6 md5sum maxsysuid"
-
-DEPEND="ssl? ( dev-libs/openssl )"
-RDEPEND="${DEPEND}
- net-mail/mailbase
- !net-mail/mailwrapper
- !mail-mta/courier
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp
- !mail-mta/nbsmtp
- !mail-mta/netqmail
- !mail-mta/nullmailer
- !mail-mta/postfix
- !mail-mta/qmail-ldap
- !mail-mta/sendmail"
-
-S="${WORKDIR}/${PN}"
-
-pkg_setup() {
- enewgroup ssmtp
-}
-
-src_prepare() {
- # Allow to specify the last used system user id, bug #231866
- if use maxsysuid; then
- epatch "${FILESDIR}"/${P}-maxsysuid.patch
- epatch "${FILESDIR}"/${P}-maxsysuid-conf.patch
- fi
-
- #
- epatch "${FILESDIR}/${P}-from_format_fix.patch"
-
- # CVE-2008-3962
- epatch "${FILESDIR}/CVE-2008-3962-r2.patch"
-
- # Fix AuthPass parsing (bug #238724)
- epatch "${FILESDIR}/${P}-authpass.patch"
-
- epatch "${FILESDIR}/${PN}-2.61-darwin7.patch"
- epatch "${FILESDIR}/${P}-strndup.patch"
- epatch "${FILESDIR}/${P}-darwin-crypto.patch"
- epatch "${FILESDIR}/${P}-solaris-basename-conflict.patch"
- eautoreconf
-
- # Respect LDFLAGS (bug #152197)
- sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
-}
-
-src_configure() {
- tc-export CC LD
-
- econf \
- --sysconfdir="${EPREFIX}"/etc/ssmtp \
- $(use_enable ssl) \
- $(use_enable ipv6 inet6) \
- $(use_enable md5sum md5auth)
-}
-
-src_compile() {
- make clean || die
- make etcdir="${EPREFIX}"/etc || die
-}
-
-src_install() {
- dosbin ssmtp || die
-
- doman ssmtp.8 ssmtp.conf.5 || die
- dodoc INSTALL README TLS CHANGELOG_OLD || die
- newdoc ssmtp.lsm DESC || die
-
- insinto /etc/ssmtp
- doins ssmtp.conf revaliases || die
-
- local conffile="${ED}etc/ssmtp/ssmtp.conf"
-
- # Sorry about the weird indentation, I couldn't figure out a cleverer way
- # to do this without having horribly >80 char lines.
- sed -i -e "s:^hostname=:\n# Gentoo bug #47562\\
-# Commenting the following line will force ssmtp to figure\\
-# out the hostname itself.\n\\
-# hostname=:" \
- "${conffile}" || die "sed failed"
-
- # Comment rewriteDomain (bug #243364)
- sed -i -e "s:^rewriteDomain=:#rewriteDomain=:" "${conffile}"
-
- # Set restrictive perms on ssmtp.conf as per #187841, #239197
- # Protect the ssmtp configfile from being readable by regular users as it
- # may contain login/password data to auth against a the mailhub used.
- fowners root:ssmtp /etc/ssmtp/ssmtp.conf
- fperms 640 /etc/ssmtp/ssmtp.conf
-
- fowners root:ssmtp /usr/sbin/ssmtp
- fperms 2711 /usr/sbin/ssmtp
-
- dosym ../sbin/ssmtp /usr/lib/sendmail || die
- dosym ../sbin/ssmtp /usr/bin/sendmail || die
- dosym ssmtp /usr/sbin/sendmail || die
- dosym ../sbin/ssmtp /usr/bin/mailq || die
- dosym ../sbin/ssmtp /usr/bin/newaliases || die
-}
diff --git a/mail-mta/ssmtp/ssmtp-2.64-r2.ebuild b/mail-mta/ssmtp/ssmtp-2.64-r2.ebuild
index ec25abe4a57a..a64f805edc7e 100644
--- a/mail-mta/ssmtp/ssmtp-2.64-r2.ebuild
+++ b/mail-mta/ssmtp/ssmtp-2.64-r2.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ssmtp-2.64-r2.ebuild,v 1.12 2012/06/04 21:13:39 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ssmtp-2.64-r2.ebuild,v 1.13 2012/07/15 11:44:43 flameeyes Exp $
EAPI="4"
-PATCHSET=2
+PATCHSET=3
WANT_AUTOMAKE=none
@@ -44,14 +44,18 @@ RDEPEND="${DEPEND}
REQUIRED_USE="gnutls? ( ssl )"
pkg_setup() {
- enewgroup ssmtp
+ if ! use prefix; then
+ enewgroup ssmtp
+ fi
}
src_prepare() {
EPATCH_SUFFIX="patch" EPATCH_SOURCE="${WORKDIR}/patches" \
epatch
- epatch "${FILESDIR}"/${P}-uint32_t.patch
+ # let's start by not using configure.in anymore as future autoconf
+ # versions will not support it.
+ mv configure.in configure.ac || die
eautoconf
}
@@ -94,11 +98,12 @@ src_install() {
# Set restrictive perms on ssmtp.conf as per #187841, #239197
# Protect the ssmtp configfile from being readable by regular users as it
# may contain login/password data to auth against a the mailhub used.
- use prefix || fowners root:ssmtp /etc/ssmtp/ssmtp.conf
- fperms 640 /etc/ssmtp/ssmtp.conf
-
- use prefix || fowners root:ssmtp /usr/sbin/ssmtp
- fperms 2711 /usr/sbin/ssmtp
+ if ! use prefix; then
+ fowners root:ssmtp /etc/ssmtp/ssmtp.conf
+ fperms 640 /etc/ssmtp/ssmtp.conf
+ fowners root:ssmtp /usr/sbin/ssmtp
+ fperms 2711 /usr/sbin/ssmtp
+ fi
if use mta; then
dosym ../sbin/ssmtp /usr/lib/sendmail