head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.6 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.4 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.2 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.1.0.16 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.14 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.12 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.10 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.8 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.6 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.4 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.2 pkgsrc-2009Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2011.11.27.13.05.33; author obache; state dead; branches; next 1.1; 1.1 date 2009.12.15.13.11.18; author taca; state Exp; branches; next ; desc @@ 1.2 log @Update cue to 20100426. Based on PR pkg/45557 by YAMAMOTO Takeshi. Some bug fixes include most of pkgsrc patches. @ text @$NetBSD: patch-af,v 1.1 2009/12/15 13:11:18 taca Exp $ * ZLIB => USE_ZLIB; it should simply use HAVE_ZLIB_H. --- decode.c.orig 2008-12-18 16:07:25.000000000 +0900 +++ decode.c @@@@ -41,9 +41,9 @@@@ #include #include -#ifdef ZLIB +#ifdef USE_ZLIB #include -#endif /* ZLIB */ +#endif /* USE_ZLIB */ #include "cue.h" #include "decode.h" @@@@ -910,7 +910,7 @@@@ decode_zip(struct decode *dp, char **pp, *pp = b64_getptr(&bs); } -#ifdef ZLIB +#ifdef USE_ZLIB /* decode x-gzip64 text */ static void @@@@ -987,7 +987,7 @@@@ decode_gzip64(struct decode *dp, char ** dp->noconv = 1; decode_base64(dp, pp, ep); } -#endif /* ZLIB */ +#endif /* USE_ZLIB */ /* decode 1 line body */ int @@@@ -1006,11 +1006,11 @@@@ decode_text(char **pp, char *ep, cbuf_t case FDB_ENC_B64: decode_base64(&d, pp, ep); break; -#ifdef ZLIB +#ifdef USE_ZLIB case FDB_ENC_GZ64: decode_gzip64(&d, pp, ep); break; -#endif /* ZLIB */ +#endif /* USE_ZLIB */ case FDB_ENC_UU: decode_uuencode(&d, pp, ep); break; @@@@ -1300,14 +1300,14 @@@@ save_part(struct state *state, int all) return; message_parseall(fdb); -#ifdef ZLIB +#ifdef USE_ZLIB if (!all && (fdb->flags & FDB_ENCODE) == FDB_ENC_ZIP) { if (fdb->lines - fdb->hdr_lines == 7) { fdb->filename = *fdb_read(fdb, fdb->lines - 1); singlezip = 1; } } -#endif /* ZLIB */ +#endif /* USE_ZLIB */ p = state->status; ep = state->status + sizeof(state->status); @@@@ -1384,11 +1384,11 @@@@ save_part(struct state *state, int all) else decode_base64(&d, &p, ep); break; -#ifdef ZLIB +#ifdef USE_ZLIB case FDB_ENC_GZ64: decode_gzip64(&d, &p, ep); break; -#endif /* ZLIB */ +#endif /* USE_ZLIB */ default: fwrite(CP(&fdb->buf_body), CL(&fdb->buf_body), 1, fp); break; @ 1.1 log @Overhaul mail/cue pacakge. * Add patches to fix build problem with OpenSSL 1.0.0 beta and later. * Generase "-DUSE_SSL" instead of "-DSSL". Similar changes are CANNA and ZLIB. (In the case of ZLIB, it could be change to use HAVE_ZLIB_H.) * Split Makefile to use hacks.mk and options.mk. * And miscellaneous pkglint clean up. There should be no functional change and fix PR pkg/42452. @ text @d1 1 a1 1 $NetBSD$ @