Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+4 -6
View File
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.36 2015/08/18 07:31:11 wiz Exp $
# $NetBSD: Makefile,v 1.40 2016/05/14 16:13:10 bsiegert Exp $
#
DISTNAME= alpine-2.11
PKGREVISION= 3
DISTNAME= alpine-2.20
CATEGORIES= mail
MASTER_SITES= http://patches.freeiz.com/alpine/release/src/
EXTRACT_SUFX= .tar.xz
@@ -19,6 +18,7 @@ CONFIGURE_ARGS+= --with-ssl-include-dir=${SSLBASE}/include
CONFIGURE_ARGS+= --with-ssl-lib-dir=${SSLBASE}/lib
CONFIGURE_ARGS+= --with-system-pinerc=${PKG_SYSCONFDIR}/pine.conf
CONFIGURE_ARGS+= --with-system-fixed-pinerc=${PKG_SYSCONFDIR}/pine.conf.fixed
CONFIGURE_ARGS+= --with-passfile=.pine-passfile
# disabled, for Web Alpine Support
CONFIGURE_ARGS+= --without-tcl
@@ -33,15 +33,13 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
CONFIGURE_ARGS+= --without-pthread
.endif
.if ${OPSYS} == "Darwin"
# mach/mach.h defines panic, differently.
SUBST_CLASSES+= panic
SUBST_CLASSES.Darwin+= panic
SUBST_STAGE.panic= pre-configure
SUBST_MESSAGE.panic= Renaming the panic function
SUBST_FILES.panic= */*.c
SUBST_FILES.panic+= pith/util.h
SUBST_SED.panic+= -e 's,panic(,Panic(,g'
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/alpine/alpine ${DESTDIR}${PREFIX}/bin/alpine
+6 -6
View File
@@ -1,10 +1,10 @@
$NetBSD: distinfo,v 1.19 2014/01/06 03:52:38 htodd Exp $
$NetBSD: distinfo,v 1.22 2016/05/14 16:13:10 bsiegert Exp $
SHA1 (alpine-2.11.tar.xz) = 656556f5d2e5ec7e3680d1760cd02aa3a0072c46
RMD160 (alpine-2.11.tar.xz) = ea4b2d87500d1aa1b424033ec3263e3cf3c53814
Size (alpine-2.11.tar.xz) = 4403188 bytes
SHA1 (patch-aa) = c306613a297d61591d577b6968a31fc85b03f852
SHA1 (patch-ab) = f0983d8c0123b06a2970eb2736b04afad1502450
SHA1 (alpine-2.20.tar.xz) = 05f4908a347969b77b684cc8b995d4aaa1506155
RMD160 (alpine-2.20.tar.xz) = c6aed347725cc62f32e23017cf192335513dbd55
SHA512 (alpine-2.20.tar.xz) = 1c3947669f5d17428e404e1106188bc2efb541cb78eb1f87092c0388bf360ca03073530e7b5fde86085c99b198c817756cc7e007a9db6a5de60f883275a7e72c
Size (alpine-2.20.tar.xz) = 4841816 bytes
SHA1 (patch-imap_src_c-client_auth_gss.c) = 622b18f03074f87036f5469323125b4c855d9ce5
SHA1 (patch-imap_src_mtest_mtest.c) = 089837ea9482e6cdcbde4c774cc71f96071171c9
SHA1 (patch-imap_src_osdep_unix_Makefile.gss) = ca09bc26a139c68afe8ac1f99be54bd1fc0e77f0
SHA1 (patch-imap_src_osdep_unix_kerb_mit.c) = c77d5ee1e8aee30811c2df0562caa375ed270c0e
-25
View File
@@ -1,25 +0,0 @@
$NetBSD: patch-aa,v 1.4 2009/05/17 17:34:01 plunky Exp $
include <time.h> and <utime.h> so that where time_t has been changed to 64-bit
values on NetBSD, we we get correctly referred to __utime50() which can handle
64-bit values. This fixes a problem where mailbox mtimes were being reset to 0
Note that this actually causes some build warnings as the code uses
"time_t tp[2]" instead of "struct utimbuf tp" (contains two time_t values)
Although the <os_bsi.h> file says it is used for BSDI, it seems to be used by
NetBSD and OpenBSD, both of which have the <utime.h> and <time.h>
- plunky
--- imap/src/osdep/unix/os_bsi.h.orig 2008-06-04 19:18:34.000000000 +0100
+++ imap/src/osdep/unix/os_bsi.h 2009-05-17 18:00:44.000000000 +0100
@@ -34,6 +34,8 @@
#include <fcntl.h>
#include <syslog.h>
#include <sys/file.h>
+#include <time.h>
+#include <utime.h>
#include "env_unix.h"
-23
View File
@@ -1,23 +0,0 @@
$NetBSD: patch-ab,v 1.4 2009/08/06 20:01:50 plunky Exp $
OpenSSL provides a version of STRING that conflicts with the Alpine
internal version. Since we don't use it, just define it away for now..
--- imap/src/osdep/unix/ssl_unix.c.orig 2009-08-06 20:45:06.000000000 +0100
+++ imap/src/osdep/unix/ssl_unix.c
@@ -27,6 +27,7 @@
*/
#define crypt ssl_private_crypt
+#define STRING ssl_private_STRING
#include <x509v3.h>
#include <ssl.h>
#include <err.h>
@@ -36,6 +37,7 @@
#include <crypto.h>
#include <rand.h>
#undef crypt
+#undef STRING
#define SSLBUFLEN 8192
#define SSLCIPHERLIST "ALL:!LOW"
@@ -0,0 +1,216 @@
$NetBSD: patch-imap_src_mtest_mtest.c,v 1.2 2016/05/14 16:13:10 bsiegert Exp $
- patch up buffer handling (required to build on openbsd)
--- imap/src/mtest/mtest.c.orig 2015-01-12 05:12:25.000000000 +0000
+++ imap/src/mtest/mtest.c
@@ -151,6 +151,7 @@ void mm (MAILSTREAM *stream,long debug)
void *sdb = NIL;
char cmd[MAILTMPLEN],tmp[MAILTMPLEN];
char *s, *arg;
+ size_t argmax;
unsigned long i;
unsigned long last = 0;
BODY *body;
@@ -158,7 +159,9 @@ void mm (MAILSTREAM *stream,long debug)
while (stream) {
prompt ("MTest> ",cmd, sizeof(cmd)); /* prompt user, get command */
/* get argument */
- if (arg = strchr (cmd,' ')) *arg++ = '\0';
+ if (arg)
+ argmax = sizeof(cmd) - (arg - cmd);
+
switch (*ucase (cmd)) { /* dispatch based on command */
case 'B': /* Body command */
if (arg) last = atoi (arg);
@@ -185,7 +188,8 @@ void mm (MAILSTREAM *stream,long debug)
break;
}
arg = cmd;
- sprintf (arg,"%lu",last);
+ argmax = sizeof(cmd);
+ snprintf (arg, argmax, "%lu",last);
}
if (last && (last <= stream->nmsgs))
mail_setflag (stream,arg,"\\DELETED");
@@ -198,6 +202,7 @@ void mm (MAILSTREAM *stream,long debug)
case 'F': /* Find command */
if (!arg) {
arg = "%";
+ argmax = 0;
if (s = sm_read (tmp,&sdb)) {
puts ("Local network subscribed mailboxes:");
do if (*s == '{') (mm_lsub (NIL,NIL,s,NIL));
@@ -251,7 +256,7 @@ void mm (MAILSTREAM *stream,long debug)
}
/* get the new mailbox */
while (!(stream = mail_open (stream,arg,debug))) {
- prompt ("Mailbox: ",arg, sizeof(arg));
+ prompt ("Mailbox: ",arg, argmax);
if (!arg[0]) break;
}
last = 0;
@@ -323,7 +328,8 @@ void mm (MAILSTREAM *stream,long debug)
break;
}
arg = cmd;
- sprintf (arg,"%lu",last);
+ argmax = sizeof(cmd);
+ snprintf (arg, argmax, "%lu",last);
}
if (last > 0 && last <= stream->nmsgs)
mail_clearflag (stream,arg,"\\DELETED");
@@ -384,7 +390,7 @@ void overview_header (MAILSTREAM *stream
tmp[3] = elt->answered ? 'A' : ' ';
tmp[4] = elt->deleted ? 'D' : ' ';
mail_parse_date (&selt,ov->date);
- sprintf (tmp+5,"%4lu) ",elt->msgno);
+ snprintf (tmp+5, sizeof(tmp)-5, "%4lu) ",elt->msgno);
mail_date (tmp+11,&selt);
tmp[17] = ' ';
tmp[18] = '\0';
@@ -394,19 +400,20 @@ void overview_header (MAILSTREAM *stream
for (adr = ov->from; adr && !adr->host; adr = adr->next);
if (adr) { /* if a personal name exists use it */
if (!(t = adr->personal))
- sprintf (t = tmp+400,"%s@%s",adr->mailbox,adr->host);
+ snprintf (t = tmp+400, sizeof(tmp)-400, "%s@%s",adr->mailbox,adr->host);
memcpy (tmp+18,t,(size_t) min (20,(long) strlen (t)));
}
strcat (tmp," ");
if (i = elt->user_flags) {
strcat (tmp,"{");
+ /* XXX bounds? */
while (i) {
strcat (tmp,stream->user_flags[find_rightmost_bit (&i)]);
if (i) strcat (tmp," ");
}
strcat (tmp,"} ");
}
- sprintf (tmp + strlen (tmp),"%.25s (%lu chars)",
+ snprintf (tmp + strlen (tmp), 400 - strlen(tmp), "%.25s (%lu chars)",
ov->subject ? ov->subject : " ",ov->optional.octets);
puts (tmp);
}
@@ -423,6 +430,7 @@ void header (MAILSTREAM *stream,long msg
unsigned long i;
char tmp[MAILTMPLEN];
char *t;
+ size_t len;
MESSAGECACHE *cache = mail_elt (stream,msgno);
mail_fetchstructure (stream,msgno,NIL);
tmp[0] = cache->recent ? (cache->seen ? 'R': 'N') : ' ';
@@ -430,7 +438,7 @@ void header (MAILSTREAM *stream,long msg
tmp[2] = cache->flagged ? 'F' : ' ';
tmp[3] = cache->answered ? 'A' : ' ';
tmp[4] = cache->deleted ? 'D' : ' ';
- sprintf (tmp+5,"%4lu) ",cache->msgno);
+ snprintf (tmp+5, sizeof(tmp)-5, "%4lu) ",cache->msgno);
mail_date (tmp+11,cache);
tmp[17] = ' ';
tmp[18] = '\0';
@@ -445,7 +453,9 @@ void header (MAILSTREAM *stream,long msg
strcat (tmp,"} ");
}
mail_fetchsubject (t = tmp + strlen (tmp),stream,msgno,(long) 25);
- sprintf (t += strlen (t)," (%lu chars)",cache->rfc822_size);
+ len = strlen (t);
+ t += len;
+ snprintf (t, sizeof(tmp)-len, " (%lu chars)",cache->rfc822_size);
puts (tmp);
}
@@ -459,31 +469,57 @@ void display_body (BODY *body,char *pfx,
{
char tmp[MAILTMPLEN];
char *s = tmp;
+ size_t len, smax = sizeof(tmp);
PARAMETER *par;
PART *part; /* multipart doesn't have a row to itself */
if (body->type == TYPEMULTIPART) {
/* if not first time, extend prefix */
- if (pfx) sprintf (tmp,"%s%ld.",pfx,++i);
+ if (pfx) snprintf (tmp, sizeof(tmp), "%s%ld.",pfx,++i);
else tmp[0] = '\0';
for (i = 0,part = body->nested.part; part; part = part->next)
display_body (&part->body,tmp,i++);
}
else { /* non-multipart, output oneline descriptor */
if (!pfx) pfx = ""; /* dummy prefix if top level */
- sprintf (s," %s%ld %s",pfx,++i,body_types[body->type]);
- if (body->subtype) sprintf (s += strlen (s),"/%s",body->subtype);
- if (body->description) sprintf (s += strlen (s)," (%s)",body->description);
- if (par = body->parameter) do
- sprintf (s += strlen (s),";%s=%s",par->attribute,par->value);
+ snprintf (s, smax, " %s%ld %s",pfx,++i,body_types[body->type]);
+ if (body->subtype) {
+ len = strlen(s);
+ s += len;
+ smax -= len;
+ snprintf (s, smax, "/%s",body->subtype);
+ }
+ if (body->description) {
+ len = strlen(s);
+ s += len;
+ smax -= len;
+ snprintf (s, smax, " (%s)",body->description);
+ }
+ if (par = body->parameter) do {
+ len = strlen(s);
+ s += len;
+ smax -= len;
+ snprintf (s, smax, ";%s=%s",par->attribute,par->value);
+ }
while (par = par->next);
- if (body->id) sprintf (s += strlen (s),", id = %s",body->id);
+ if (body->id) {
+ len = strlen(s);
+ s += len;
+ smax -= len;
+ snprintf (s, smax, ", id = %s",body->id);
+ }
switch (body->type) { /* bytes or lines depending upon body type */
case TYPEMESSAGE: /* encapsulated message */
case TYPETEXT: /* plain text */
- sprintf (s += strlen (s)," (%lu lines)",body->size.lines);
+ len = strlen(s);
+ s += len;
+ smax -= len;
+ snprintf (s, smax, " (%lu lines)",body->size.lines);
break;
default:
- sprintf (s += strlen (s)," (%lu bytes)",body->size.bytes);
+ len = strlen(s);
+ s += len;
+ smax -= len;
+ snprintf (s, smax, " (%lu bytes)",body->size.bytes);
break;
}
puts (tmp); /* output this line */
@@ -492,7 +528,7 @@ void display_body (BODY *body,char *pfx,
(body = body->nested.msg->body)) {
if (body->type == TYPEMULTIPART) display_body (body,pfx,i-1);
else { /* build encapsulation prefix */
- sprintf (tmp,"%s%ld.",pfx,i);
+ snprintf (tmp, sizeof(tmp), "%s%ld.",pfx,i);
display_body (body,tmp,(long) 0);
}
}
@@ -711,10 +747,13 @@ void mm_login (NETMBX *mb,char *user,cha
if (curhst) fs_give ((void **) &curhst);
curhst = (char *) fs_get (1+strlen (mb->host));
strcpy (curhst,mb->host);
- sprintf (s = tmp,"{%s/%s",mb->host,mb->service);
- if (*mb->user) sprintf (tmp+strlen (tmp),"/user=%s",strcpy (user,mb->user));
- if (*mb->authuser) sprintf (tmp+strlen (tmp),"/authuser=%s",mb->authuser);
- if (*mb->user) strcat (s = tmp,"} password:");
+ snprintf (s = tmp, sizeof(tmp), "{%s/%s",mb->host,mb->service);
+ if (*mb->user) snprintf (tmp+strlen (tmp), sizeof(tmp)-strlen(tmp), "/user=%s",strcpy (user,mb->user));
+ if (*mb->authuser) snprintf (tmp+strlen (tmp), sizeof(tmp)-strlen(tmp), "/authuser=%s",mb->authuser);
+ if (*mb->user) {
+ s = tmp;
+ snprintf(tmp+strlen(tmp), sizeof(tmp)-strlen(tmp), "%s", "} password:");
+ }
else {
printf ("%s} username: ",tmp);
fgets (user,NETMAXUSER-1,stdin);