Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

12
mail/cue/DESCR Normal file
View File

@@ -0,0 +1,12 @@
"Cue" is a small mail user agent (mail reader/writer).
Features:
- capable of handling Japanese and English (or ASCII) emails (no Latin1, sorry)
- S/MIME, PGP/MIME, MIME Multipart handling
- it looks just like mh-e or mew, but is much more lightweight. It is not
an elisp program but an independent program that uses curses.
Cue requires a couple of external programs, namely:
- a program to grab emails into folders, like inc from MH
- a program for sending emails, like sendmail
- an editor like vi

28
mail/cue/Makefile Normal file
View File

@@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.65 2013/02/06 23:22:41 jperkin Exp $
DISTNAME= cue-snap-20100426
PKGNAME= ${DISTNAME:S/snap-//}
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/cue/snap/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= # not available
COMMENT= Mh-e like mail user agent
LICENSE= modified-bsd
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q}
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
INSTALLATION_DIRS+= bin share/doc/cue share/examples/cue
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cue ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/sample.cuerc \
${DESTDIR}${PREFIX}/share/examples/cue
${INSTALL_DATA} ${WRKSRC}/cue.hlp ${DESTDIR}${PREFIX}/share/doc/cue
.include "options.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4
mail/cue/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:04:30 joerg Exp $
bin/cue
share/doc/cue/cue.hlp
share/examples/cue/sample.cuerc

8
mail/cue/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.34 2011/12/18 11:33:42 obache Exp $
SHA1 (cue-snap-20100426.tar.gz) = 37f758bb65a9b5e6089b23aabd655d2fdadc76e2
RMD160 (cue-snap-20100426.tar.gz) = cb908dc73c662ee22811cc4c09a64d81684eedea
Size (cue-snap-20100426.tar.gz) = 256759 bytes
SHA1 (patch-aa) = c83665ce01f9a56652a3ad650910f9b810cae4b4
SHA1 (patch-configure.in) = 3f7c2fe9ce3ab851d06cc6d4e31e8c3bdde6d709
SHA1 (patch-pgp.c) = 88f370cf04d8806c2df02653f7857460151c93f6

7
mail/cue/hacks.mk Normal file
View File

@@ -0,0 +1,7 @@
# $NetBSD: hacks.mk,v 1.1 2009/12/15 13:11:18 taca Exp $
.include "../../mk/compiler.mk"
.if ${PKGSRC_COMPILER} == "ido"
CPPFLAGS+= -DNO_ATTRIBUTE
.endif

24
mail/cue/options.mk Normal file
View File

@@ -0,0 +1,24 @@
# $NetBSD: options.mk,v 1.2 2012/06/12 15:45:57 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cue
PKG_SUPPORTED_OPTIONS= canna idea inet6
PKG_SUGGESTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6) && (${OPSYS} != "SunOS")
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if !empty(PKG_OPTIONS:Mcanna)
. include "../../inputmethod/canna-lib/buildlink3.mk"
CONFIGURE_ARGS+= --with-canna=${BUILDLINK_PREFIX.canna}
.else
CONFIGURE_ARGS+= --without-canna
.endif
.if !empty(PKG_OPTIONS:Midea)
CONFIGURE_ARGS+= --enable-idea
.endif

140
mail/cue/patches/patch-aa Normal file
View File

@@ -0,0 +1,140 @@
$NetBSD: patch-aa,v 1.7 2011/11/27 13:05:33 obache Exp $
* Prevent extra -O from being added to optimizer flags.
* Assume that DragonFly's getaddrinfo works.
* Fix an error with --enable-ipv6.
--- configure.orig 2009-12-16 05:51:12.000000000 +0000
+++ configure
@@ -1505,6 +1505,48 @@ $as_echo "$ac_res" >&6; }
} # ac_fn_c_check_func
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_c_try_run ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=$ac_status
+fi
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ return $ac_retval
+
+} # ac_fn_c_try_run
+
# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
@@ -1993,7 +2035,7 @@ netbsd*)
;;
esac
-OPTS="-O"
+OPTS=""
CFLAGS=""
# AC_PREFIX_PKG(VARIABLE, HEADER, LIBRARY, PATH [, IF-TRUE [, IF FALSE ] ])
@@ -2817,55 +2859,13 @@ $as_echo "yes" >&6; }
;;
esac
else
- if test "$cross_compiling" = yes; then :
+ if test "$cross_compiling" = yes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
ipv6=no
else
-
-# ac_fn_c_try_run LINENO
-# ----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
-# that executables *can* be run.
-ac_fn_c_try_run ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then :
- ac_retval=0
-else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=$ac_status
-fi
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
- return $ac_retval
-
-} # ac_fn_c_try_run
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* AF_INET6 avalable check */
#include <sys/types.h>
@@ -3432,6 +3432,7 @@ rm -f core *.core core.conftest.* gmon.o
fi
+if test ${OPSYS} != "DragonFly"; then
if test "$buggygetaddrinfo" = "yes"; then
if test "$ipv6" = "yes"; then
echo 'Fatal: You must get working getaddrinfo() function.'
@@ -3439,6 +3440,7 @@ if test "$buggygetaddrinfo" = "yes"; the
exit 1
fi
fi
+fi
# IDEA
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-idea option is specified" >&5

View File

@@ -0,0 +1,51 @@
$NetBSD: patch-configure.in,v 1.1 2011/11/27 13:05:33 obache Exp $
* Prevent extra -O from being added to optimizer flags.
* Assume that DragonFly's getaddrinfo works.
* Fix an error with --enable-ipv6.
--- configure.in.orig 2009-12-16 05:51:12.000000000 +0000
+++ configure.in
@@ -35,7 +35,7 @@ netbsd*)
;;
esac
-OPTS="-O"
+OPTS=""
CFLAGS=""
# AC_PREFIX_PKG(VARIABLE, HEADER, LIBRARY, PATH [, IF-TRUE [, IF FALSE ] ])
@@ -98,7 +98,7 @@ AC_ARG_ENABLE(ipv6,
;;
esac ],
- AC_TRY_RUN([ /* AF_INET6 avalable check */
+[ AC_TRY_RUN([ /* AF_INET6 avalable check */
#include <sys/types.h>
#include <sys/socket.h>
main()
@@ -117,7 +117,7 @@ main()
ipv6=no,
AC_MSG_RESULT(no)
ipv6=no
-))
+)])
ipv6type=unknown
ipv6lib=none
@@ -319,6 +319,7 @@ buggygetaddrinfo=yes,
AC_MSG_RESULT(buggy)
buggygetaddrinfo=yes)
+if test ${OPSYS} != "DragonFly"; then
if test "$buggygetaddrinfo" = "yes"; then
if test "$ipv6" = "yes"; then
echo 'Fatal: You must get working getaddrinfo() function.'
@@ -326,6 +327,7 @@ if test "$buggygetaddrinfo" = "yes"; the
exit 1
fi
fi
+fi
# IDEA
AC_MSG_CHECKING(if --enable-idea option is specified)

View File

@@ -0,0 +1,54 @@
$NetBSD: patch-pgp.c,v 1.1 2011/12/18 11:33:42 obache Exp $
* for OpenSSL without MD2 support.
--- pgp.c.orig 2009-12-16 05:51:12.000000000 +0000
+++ pgp.c
@@ -763,7 +763,9 @@ pgp_hashalg_md(int alg)
case PGP_HASH_SHA1: return EVP_sha1();
case PGP_HASH_RIPEMD160: return EVP_ripemd160();
case PGP_HASH_DWSHA: return NULL;
+#ifndef OPENSSL_NO_MD2
case PGP_HASH_MD2: return EVP_md2();
+#endif
case PGP_HASH_TIGER192: return NULL;
case PGP_HASH_HAVAL_5_160: return NULL;
}
@@ -1418,11 +1420,13 @@ pgp_comp_data(struct pgp_pkt *pkt)
static const EVP_MD *
pgp_asn1_md(u_char **pp, int len)
{
+#ifndef OPENSSL_NO_MD2
static const u_char asn1_md2[] = {
0x30, 0x20, 0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86,
0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02, 0x05, 0x00,
0x04, 0x10
};
+#endif
static const u_char asn1_md5[] = {
0x30, 0x20, 0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86,
0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05, 0x05, 0x00,
@@ -1437,11 +1441,13 @@ pgp_asn1_md(u_char **pp, int len)
0x03, 0x02, 0x1A, 0x05, 0x00, 0x04, 0x14
};
+#ifndef OPENSSL_NO_MD2
if (len > sizeof(asn1_md2)
&& memcmp(*pp, asn1_md2, sizeof(asn1_md2)) == 0) {
*pp += sizeof(asn1_md2);
return EVP_md2();
}
+#endif
if (len > sizeof(asn1_md5)
&& memcmp(*pp, asn1_md5, sizeof(asn1_md5)) == 0) {
*pp += sizeof(asn1_md5);
@@ -1969,7 +1975,9 @@ pgp_show_hashalg(int alg)
case PGP_HASH_SHA1: return "SHA1";
case PGP_HASH_RIPEMD160: return "RIPEMD160";
case PGP_HASH_DWSHA: return "DWSHA";
+#ifndef OPENSSL_NO_MD2
case PGP_HASH_MD2: return "MD2";
+#endif
case PGP_HASH_TIGER192: return "TIGER192";
case PGP_HASH_HAVAL_5_160: return "HAVAL-5-160";
}