head	1.64;
access;
symbols
	pkgsrc-2026Q1:1.64.0.16
	pkgsrc-2026Q1-base:1.64
	pkgsrc-2025Q4:1.64.0.14
	pkgsrc-2025Q4-base:1.64
	pkgsrc-2025Q3:1.64.0.12
	pkgsrc-2025Q3-base:1.64
	pkgsrc-2025Q2:1.64.0.10
	pkgsrc-2025Q2-base:1.64
	pkgsrc-2025Q1:1.64.0.8
	pkgsrc-2025Q1-base:1.64
	pkgsrc-2024Q4:1.64.0.6
	pkgsrc-2024Q4-base:1.64
	pkgsrc-2024Q3:1.64.0.4
	pkgsrc-2024Q3-base:1.64
	pkgsrc-2024Q2:1.64.0.2
	pkgsrc-2024Q2-base:1.64
	pkgsrc-2024Q1:1.63.0.2
	pkgsrc-2024Q1-base:1.63
	pkgsrc-2023Q4:1.61.0.10
	pkgsrc-2023Q4-base:1.61
	pkgsrc-2023Q3:1.61.0.8
	pkgsrc-2023Q3-base:1.61
	pkgsrc-2023Q2:1.61.0.6
	pkgsrc-2023Q2-base:1.61
	pkgsrc-2023Q1:1.61.0.4
	pkgsrc-2023Q1-base:1.61
	pkgsrc-2022Q4:1.61.0.2
	pkgsrc-2022Q4-base:1.61
	pkgsrc-2022Q3:1.59.0.4
	pkgsrc-2022Q3-base:1.59
	pkgsrc-2022Q2:1.59.0.2
	pkgsrc-2022Q2-base:1.59
	pkgsrc-2022Q1:1.57.0.2
	pkgsrc-2022Q1-base:1.57
	pkgsrc-2021Q4:1.56.0.16
	pkgsrc-2021Q4-base:1.56
	pkgsrc-2021Q3:1.56.0.14
	pkgsrc-2021Q3-base:1.56
	pkgsrc-2021Q2:1.56.0.12
	pkgsrc-2021Q2-base:1.56
	pkgsrc-2021Q1:1.56.0.10
	pkgsrc-2021Q1-base:1.56
	pkgsrc-2020Q4:1.56.0.8
	pkgsrc-2020Q4-base:1.56
	pkgsrc-2020Q3:1.56.0.6
	pkgsrc-2020Q3-base:1.56
	pkgsrc-2020Q2:1.56.0.4
	pkgsrc-2020Q2-base:1.56
	pkgsrc-2020Q1:1.56.0.2
	pkgsrc-2020Q1-base:1.56
	pkgsrc-2019Q4:1.55.0.26
	pkgsrc-2019Q4-base:1.55
	pkgsrc-2019Q3:1.55.0.22
	pkgsrc-2019Q3-base:1.55
	pkgsrc-2019Q2:1.55.0.20
	pkgsrc-2019Q2-base:1.55
	pkgsrc-2019Q1:1.55.0.18
	pkgsrc-2019Q1-base:1.55
	pkgsrc-2018Q4:1.55.0.16
	pkgsrc-2018Q4-base:1.55
	pkgsrc-2018Q3:1.55.0.14
	pkgsrc-2018Q3-base:1.55
	pkgsrc-2018Q2:1.55.0.12
	pkgsrc-2018Q2-base:1.55
	pkgsrc-2018Q1:1.55.0.10
	pkgsrc-2018Q1-base:1.55
	pkgsrc-2017Q4:1.55.0.8
	pkgsrc-2017Q4-base:1.55
	pkgsrc-2017Q3:1.55.0.6
	pkgsrc-2017Q3-base:1.55
	pkgsrc-2017Q2:1.55.0.2
	pkgsrc-2017Q2-base:1.55
	pkgsrc-2017Q1:1.54.0.2
	pkgsrc-2017Q1-base:1.54
	pkgsrc-2016Q4:1.53.0.12
	pkgsrc-2016Q4-base:1.53
	pkgsrc-2016Q3:1.53.0.10
	pkgsrc-2016Q3-base:1.53
	pkgsrc-2016Q2:1.53.0.8
	pkgsrc-2016Q2-base:1.53
	pkgsrc-2016Q1:1.53.0.6
	pkgsrc-2016Q1-base:1.53
	pkgsrc-2015Q4:1.53.0.4
	pkgsrc-2015Q4-base:1.53
	pkgsrc-2015Q3:1.53.0.2
	pkgsrc-2015Q3-base:1.53
	pkgsrc-2015Q2:1.52.0.6
	pkgsrc-2015Q2-base:1.52
	pkgsrc-2015Q1:1.52.0.4
	pkgsrc-2015Q1-base:1.52
	pkgsrc-2014Q4:1.52.0.2
	pkgsrc-2014Q4-base:1.52
	pkgsrc-2014Q3:1.51.0.2
	pkgsrc-2014Q3-base:1.51
	pkgsrc-2014Q2:1.48.0.6
	pkgsrc-2014Q2-base:1.48
	pkgsrc-2014Q1:1.48.0.4
	pkgsrc-2014Q1-base:1.48
	pkgsrc-2013Q4:1.48.0.2
	pkgsrc-2013Q4-base:1.48
	pkgsrc-2013Q3:1.47.0.4
	pkgsrc-2013Q3-base:1.47
	pkgsrc-2013Q2:1.47.0.2
	pkgsrc-2013Q2-base:1.47
	pkgsrc-2013Q1:1.46.0.2
	pkgsrc-2013Q1-base:1.46
	pkgsrc-2012Q4:1.45.0.2
	pkgsrc-2012Q4-base:1.45
	pkgsrc-2012Q3:1.44.0.4
	pkgsrc-2012Q3-base:1.44
	pkgsrc-2012Q2:1.44.0.2
	pkgsrc-2012Q2-base:1.44
	pkgsrc-2012Q1:1.43.0.2
	pkgsrc-2012Q1-base:1.43
	pkgsrc-2011Q4:1.41.0.22
	pkgsrc-2011Q4-base:1.41
	pkgsrc-2011Q3:1.41.0.20
	pkgsrc-2011Q3-base:1.41
	pkgsrc-2011Q2:1.41.0.18
	pkgsrc-2011Q2-base:1.41
	pkgsrc-2011Q1:1.41.0.16
	pkgsrc-2011Q1-base:1.41
	pkgsrc-2010Q4:1.41.0.14
	pkgsrc-2010Q4-base:1.41
	pkgsrc-2010Q3:1.41.0.12
	pkgsrc-2010Q3-base:1.41
	pkgsrc-2010Q2:1.41.0.10
	pkgsrc-2010Q2-base:1.41
	pkgsrc-2010Q1:1.41.0.8
	pkgsrc-2010Q1-base:1.41
	pkgsrc-2009Q4:1.41.0.6
	pkgsrc-2009Q4-base:1.41
	pkgsrc-2009Q3:1.41.0.4
	pkgsrc-2009Q3-base:1.41
	pkgsrc-2009Q2:1.41.0.2
	pkgsrc-2009Q2-base:1.41
	pkgsrc-2009Q1:1.40.0.18
	pkgsrc-2009Q1-base:1.40
	pkgsrc-2008Q4:1.40.0.16
	pkgsrc-2008Q4-base:1.40
	pkgsrc-2008Q3:1.40.0.14
	pkgsrc-2008Q3-base:1.40
	cube-native-xorg:1.40.0.12
	cube-native-xorg-base:1.40
	pkgsrc-2008Q2:1.40.0.10
	pkgsrc-2008Q2-base:1.40
	cwrapper:1.40.0.8
	pkgsrc-2008Q1:1.40.0.6
	pkgsrc-2008Q1-base:1.40
	pkgsrc-2007Q4:1.40.0.4
	pkgsrc-2007Q4-base:1.40
	pkgsrc-2007Q3:1.40.0.2
	pkgsrc-2007Q3-base:1.40
	pkgsrc-2007Q2:1.37.0.2
	pkgsrc-2007Q2-base:1.37
	pkgsrc-2007Q1:1.35.0.2
	pkgsrc-2007Q1-base:1.35
	pkgsrc-2006Q4:1.33.0.8
	pkgsrc-2006Q4-base:1.33
	pkgsrc-2006Q3:1.33.0.6
	pkgsrc-2006Q3-base:1.33
	pkgsrc-2006Q2:1.33.0.4
	pkgsrc-2006Q2-base:1.33
	pkgsrc-2006Q1:1.33.0.2
	pkgsrc-2006Q1-base:1.33
	pkgsrc-2005Q4:1.31.0.4
	pkgsrc-2005Q4-base:1.31
	pkgsrc-2005Q3:1.31.0.2
	pkgsrc-2005Q3-base:1.31
	pkgsrc-2005Q2:1.29.0.2
	pkgsrc-2005Q2-base:1.29
	pkgsrc-2005Q1:1.28.0.4
	pkgsrc-2005Q1-base:1.28
	pkgsrc-2004Q4:1.28.0.2
	pkgsrc-2004Q4-base:1.28
	pkgsrc-2004Q3:1.26.0.2
	pkgsrc-2004Q3-base:1.26
	pkgsrc-2004Q2:1.25.0.2
	pkgsrc-2004Q2-base:1.25
	pkgsrc-2004Q1:1.24.0.2
	pkgsrc-2004Q1-base:1.24
	pkgsrc-2003Q4:1.20.0.2
	pkgsrc-2003Q4-base:1.20
	netbsd-1-6-1:1.15.0.2
	netbsd-1-6-1-base:1.15
	netbsd-1-6:1.13.0.4
	netbsd-1-6-RELEASE-base:1.13
	pkgviews:1.12.0.4
	pkgviews-base:1.12
	buildlink2:1.12.0.2
	buildlink2-base:1.13
	netbsd-1-5-PATCH003:1.12
	netbsd-1-5-PATCH001:1.9
	netbsd-1-5-RELEASE:1.4
	netbsd-1-4-PATCH003:1.4
	netbsd-1-4-PATCH002:1.3
	comdex-fall-1999:1.3
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.64
date	2024.06.04.18.33.45;	author bsiegert;	state Exp;
branches;
next	1.63;
commitid	n0dP4NOfHozmcHcF;

1.63
date	2024.02.08.21.33.34;	author adam;	state Exp;
branches;
next	1.62;
commitid	YKR5sLusvP50YFXE;

1.62
date	2024.01.25.16.41.20;	author thor;	state Exp;
branches;
next	1.61;
commitid	nGujxCS7xaJWMQVE;

1.61
date	2022.11.09.13.14.10;	author joerg;	state Exp;
branches;
next	1.60;
commitid	dN5ujJQiZbvcR11E;

1.60
date	2022.10.14.07.43.57;	author wiz;	state Exp;
branches;
next	1.59;
commitid	R31OZyLR1OCBREXD;

1.59
date	2022.05.13.07.34.20;	author jperkin;	state Exp;
branches;
next	1.58;
commitid	gjoNYVgDGzbSKRDD;

1.58
date	2022.03.29.22.09.41;	author wiz;	state Exp;
branches;
next	1.57;
commitid	uBjogg1qol7q3ayD;

1.57
date	2022.03.24.07.56.00;	author wiz;	state Exp;
branches;
next	1.56;
commitid	mHOOKzmitmZxurxD;

1.56
date	2020.01.26.17.31.05;	author rillig;	state Exp;
branches;
next	1.55;
commitid	4fBBvoSLJaGd0eUB;

1.55
date	2017.04.04.08.57.33;	author adam;	state Exp;
branches;
next	1.54;
commitid	CeDleEznToYUacMz;

1.54
date	2017.01.19.18.52.08;	author agc;	state Exp;
branches;
next	1.53;
commitid	ufZDMu4cgHZdRBCz;

1.53
date	2015.08.30.10.54.11;	author richard;	state Exp;
branches;
next	1.52;
commitid	N7NJPRtepj4Qyhzy;

1.52
date	2014.10.09.14.06.32;	author wiz;	state Exp;
branches;
next	1.51;
commitid	fBDATFVmQ3454xTx;

1.51
date	2014.09.19.09.07.27;	author richard;	state Exp;
branches;
next	1.50;
commitid	1Az5islZ1Lo33WQx;

1.50
date	2014.09.10.10.46.07;	author richard;	state Exp;
branches;
next	1.49;
commitid	7d9QdxQni7byTMPx;

1.49
date	2014.09.10.10.14.08;	author richard;	state Exp;
branches;
next	1.48;
commitid	YPGN7bUdBbHxHMPx;

1.48
date	2013.11.30.11.14.10;	author richard;	state Exp;
branches;
next	1.47;
commitid	vep0BcOt6hO9bifx;

1.47
date	2013.05.27.16.22.10;	author adam;	state Exp;
branches;
next	1.46;
commitid	APmH52iig9uoThRw;

1.46
date	2013.02.09.13.00.05;	author obache;	state Exp;
branches;
next	1.45;

1.45
date	2012.10.31.11.19.55;	author asau;	state Exp;
branches;
next	1.44;

1.44
date	2012.05.09.11.33.09;	author adam;	state Exp;
branches;
next	1.43;

1.43
date	2012.03.19.15.47.12;	author adam;	state Exp;
branches;
next	1.42;

1.42
date	2012.01.28.10.46.26;	author wiz;	state Exp;
branches;
next	1.41;

1.41
date	2009.04.09.00.48.08;	author joerg;	state Exp;
branches;
next	1.40;

1.40
date	2007.08.22.18.36.09;	author jlam;	state Exp;
branches;
next	1.39;

1.39
date	2007.08.22.18.35.30;	author jlam;	state Exp;
branches;
next	1.38;

1.38
date	2007.08.02.13.22.20;	author joerg;	state Exp;
branches;
next	1.37;

1.37
date	2007.06.08.18.39.24;	author wiz;	state Exp;
branches;
next	1.36;

1.36
date	2007.05.15.19.39.12;	author heinz;	state Exp;
branches;
next	1.35;

1.35
date	2007.01.24.17.28.22;	author reed;	state Exp;
branches;
next	1.34;

1.34
date	2007.01.13.13.50.11;	author schwarz;	state Exp;
branches;
next	1.33;

1.33
date	2006.03.04.21.29.30;	author jlam;	state Exp;
branches;
next	1.32;

1.32
date	2005.12.27.17.27.58;	author reed;	state Exp;
branches;
next	1.31;

1.31
date	2005.07.22.16.04.43;	author drochner;	state Exp;
branches;
next	1.30;

1.30
date	2005.07.07.10.43.19;	author drochner;	state Exp;
branches;
next	1.29;

1.29
date	2005.04.11.21.45.39;	author tv;	state Exp;
branches
	1.29.2.1;
next	1.28;

1.28
date	2004.11.04.14.17.55;	author adam;	state Exp;
branches;
next	1.27;

1.27
date	2004.10.03.00.13.34;	author tv;	state Exp;
branches;
next	1.26;

1.26
date	2004.08.31.23.16.23;	author reed;	state Exp;
branches;
next	1.25;

1.25
date	2004.05.08.01.06.26;	author tv;	state Exp;
branches;
next	1.24;

1.24
date	2004.03.23.04.41.00;	author jlam;	state Exp;
branches;
next	1.23;

1.23
date	2004.01.13.17.45.20;	author jmmv;	state Exp;
branches;
next	1.22;

1.22
date	2004.01.12.21.19.50;	author adam;	state Exp;
branches;
next	1.21;

1.21
date	2004.01.05.11.44.01;	author jlam;	state Exp;
branches;
next	1.20;

1.20
date	2003.07.17.21.34.17;	author grant;	state Exp;
branches;
next	1.19;

1.19
date	2003.06.02.01.20.11;	author jschauma;	state Exp;
branches;
next	1.18;

1.18
date	2003.03.05.13.09.28;	author salo;	state Exp;
branches;
next	1.17;

1.17
date	2003.03.05.13.05.44;	author salo;	state Exp;
branches;
next	1.16;

1.16
date	2003.02.28.23.25.21;	author grant;	state Exp;
branches;
next	1.15;

1.15
date	2002.09.01.18.45.47;	author jlam;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2002.08.25.18.38.51;	author jlam;	state Exp;
branches;
next	1.13;

1.13
date	2002.08.07.13.25.36;	author wiz;	state Exp;
branches;
next	1.12;

1.12
date	2002.03.12.00.25.03;	author wiz;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2001.11.29.16.44.15;	author abs;	state Exp;
branches;
next	1.10;

1.10
date	2001.09.10.13.24.50;	author hubertf;	state Exp;
branches;
next	1.9;

1.9
date	2001.04.17.11.14.05;	author tron;	state Exp;
branches;
next	1.8;

1.8
date	2001.04.16.00.57.48;	author tron;	state Exp;
branches;
next	1.7;

1.7
date	2001.02.16.14.39.07;	author wiz;	state Exp;
branches;
next	1.6;

1.6
date	2001.02.03.06.42.17;	author hubertf;	state Exp;
branches;
next	1.5;

1.5
date	2001.01.21.20.42.17;	author tron;	state Exp;
branches;
next	1.4;

1.4
date	2000.08.09.17.42.13;	author wiz;	state Exp;
branches;
next	1.3;

1.3
date	99.09.24.14.37.40;	author agc;	state Exp;
branches;
next	1.2;

1.2
date	99.09.20.23.23.57;	author kim;	state Exp;
branches;
next	1.1;

1.1
date	99.09.19.21.53.29;	author kim;	state Exp;
branches
	1.1.1.1;
next	;

1.29.2.1
date	2005.07.07.20.52.10;	author snj;	state Exp;
branches;
next	1.29.2.2;

1.29.2.2
date	2005.07.27.04.30.25;	author snj;	state Exp;
branches;
next	;

1.15.2.1
date	2003.06.19.00.53.09;	author grant;	state Exp;
branches;
next	;

1.12.2.1
date	2002.05.11.02.09.06;	author jlam;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2002.06.06.06.54.37;	author jlam;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2002.06.21.23.05.11;	author jlam;	state Exp;
branches;
next	1.12.2.4;

1.12.2.4
date	2002.08.22.11.11.14;	author jlam;	state Exp;
branches;
next	;

1.1.1.1
date	99.09.19.21.53.29;	author kim;	state Exp;
branches;
next	;


desc
@@


1.64
log
@zlib: always include unistd.h on Linux

Newer compilers, such as gcc14 in Fedora 40, make calling undeclared
functions an error. zlib uses lseek, which is in unistd.h. The existing
zconf.h has complex logic to include unistd.h in some cases, when it should
probably just include it unconditionally.

Set -DZ_HAVE_UNISTD_H in CFLAGS.Linux. This should probably just be added
unconditionally, but I was hesitant to do so without asking.
@
text
@# $NetBSD: Makefile,v 1.63 2024/02/08 21:33:34 adam Exp $

DISTNAME=	zlib-1.3.1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=libpng/}
MASTER_SITES+=	http://zlib.net/
DISTFILES=	# empty

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://www.zlib.net/
COMMENT=	General purpose data compression library
LICENSE=	zlib

USE_LIBTOOL=	yes

PKGCONFIG_OVERRIDE+=	zlib.pc.in

CFLAGS+=		${CPPFLAGS}
LDFLAGS.Cygwin=		-no-undefined

.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == i386
# use NO_DIVIDE for adler32 if processor does not do division in hardware
# which avoids needing emulation provided by libgcc_s
CPPFLAGS.SunOS+=	-DNO_DIVIDE
.endif
LDFLAGS.SunOS+=	-Wl,-zignore	# avoid unused reference to libgcc_s.so

CFLAGS.Linux+=	-DZ_HAVE_UNISTD_H
LDFLAGS.Linux+=	-Wl,--version-script,zlib.map

SUBST_CLASSES+=		pc
SUBST_MESSAGE.pc=	pkg-config file substitutions
SUBST_STAGE.pc=		pre-configure
SUBST_FILES.pc=		zlib.pc.in
SUBST_SED.pc=		-e "s,@@prefix@@,${PREFIX},g"
SUBST_SED.pc+=		-e "s,@@exec_prefix@@,${PREFIX},g"
SUBST_SED.pc+=		-e "s,@@VERSION@@,${PKGVERSION_NOREV},g"
SUBST_SED.pc+=		-e "s,@@includedir@@,${PREFIX}/include,g"
SUBST_SED.pc+=		-e "s,@@libdir@@,${PREFIX}/lib,g"
SUBST_SED.pc+=		-e "s,@@sharedlibdir@@,${PREFIX}/lib,g"

INSTALLATION_DIRS=	include lib/pkgconfig ${PKGMANDIR}/man3

do-extract:
	${CP} -r ${FILESDIR} ${WRKSRC}

do-install:
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libz.la ${DESTDIR}${PREFIX}/lib
	${INSTALL_MAN} ${WRKSRC}/zlib.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
	${INSTALL_DATA} ${WRKSRC}/zconf.h ${DESTDIR}${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/zlib.h ${DESTDIR}${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/zlib.pc.in ${DESTDIR}${PREFIX}/lib/pkgconfig/zlib.pc

.include "../../mk/bsd.pkg.mk"
@


1.63
log
@zlib: updated to 1.3.1

Changes in 1.3.1 (22 Jan 2024)
- Reject overflows of zip header fields in minizip
- Fix bug in inflateSync() for data held in bit buffer
- Add LIT_MEM define to use more memory for a small deflate speedup
- Fix decision on the emission of Zip64 end records in minizip
- Add bounds checking to ERR_MSG() macro, used by zError()
- Neutralize zip file traversal attacks in miniunz
- Fix a bug in ZLIB_DEBUG compiles in check_match()
- Various portability and appearance improvements

Changes in 1.3 (18 Aug 2023)
- Remove K&R function definitions and zlib2ansi
- Fix bug in deflateBound() for level 0 and memLevel 9
- Fix bug when gzungetc() is used immediately after gzopen()
- Fix bug when using gzflush() with a very small buffer
- Fix crash when gzsetparams() attempted for transparent write
- Fix test/example.c to work with FORCE_STORED
- Rewrite of zran in examples (see zran.c version history)
- Fix minizip to allow it to open an empty zip file
- Fix reading disk number start on zip64 files in minizip
- Fix logic error in minizip argument processing
- Add minizip testing to Makefile
- Read multiple bytes instead of byte-by-byte in minizip unzip.c
- Add memory sanitizer to configure (--memory)
- Various portability improvements
- Various documentation improvements
- Various spelling and typo corrections
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.62 2024/01/25 16:41:20 thor Exp $
d29 1
@


1.62
log
@devel/zlib: include the version script from upstream

Adding symbol versions to the shared library on Linux.

This brings zlib more in line what distro builds have on Linux, avoiding
lots of complaints in the case that you have to replace native zlib with
an upgraded version from pkgsrc (to build octave on CentOS 7.x, for
example).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.61 2022/11/09 13:14:10 joerg Exp $
d3 1
a3 1
DISTNAME=	zlib-1.2.13
a4 1
PKGREVISION=	1
d14 1
a14 1
USE_LIBTOOL=		yes
@


1.61
log
@Reset MAINTAINER
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.60 2022/10/14 07:43:57 wiz Exp $
d5 1
d30 2
@


1.60
log
@zlib: update to 1.2.13

Replace the existing files (except files/Makefile) from upstream sources.
Add LICENSE file.
Clean up some pkglint.

Fixes CVE-2022-37434.

Changes in 1.2.13 (13 Oct 2022)
- Fix configure issue that discarded provided CC definition
- Correct incorrect inputs provided to the CRC functions
- Repair prototypes and exporting of new CRC functions
- Fix inflateBack to detect invalid input with distances too far
- Have infback() deliver all of the available output up to any error
- Fix a bug when getting a gzip header extra field with inflate()
- Fix bug in block type selection when Z_FIXED used
- Tighten deflateBound bounds
- Remove deleted assembler code references
- Various portability and appearance improvements
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.59 2022/05/13 07:34:20 jperkin Exp $
d9 1
a9 1
MAINTAINER=	joerg@@NetBSD.org
@


1.59
log
@zlib: Apply upstream patch to workaround CRC issue.

Should fix abuse by openjdk and others.  Bump PKGREVISION.

Upstream commit:

  From ec3df00224d4b396e2ac6586ab5d25f673caa4c2 Mon Sep 17 00:00:00 2001
  From: Mark Adler <madler@@alumni.caltech.edu>
  Date: Wed, 30 Mar 2022 11:14:53 -0700
  Subject: [PATCH] Correct incorrect inputs provided to the CRC functions.

  The previous releases of zlib were not sensitive to incorrect CRC
  inputs with bits set above the low 32. This commit restores that
  behavior, so that applications with such bugs will continue to
  operate as before.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.58 2022/03/29 22:09:41 wiz Exp $
d3 1
a3 2
DISTNAME=	zlib-1.2.12
PKGREVISION=	1
@


1.58
log
@zlib: update to 1.2.12

pkgsrc change:
Add unistd.h to gzguts.h to fix warning on NetBSD.

Changes in 1.2.12 (27 Mar 2022)
- Cygwin does not have _wopen(), so do not create gzopen_w() there
- Permit a deflateParams() parameter change as soon as possible
- Limit hash table inserts after switch from stored deflate
- Fix bug when window full in deflate_stored()
- Fix CLEAR_HASH macro to be usable as a single statement
- Avoid a conversion error in gzseek when off_t type too small
- Have Makefile return non-zero error code on test failure
- Avoid some conversion warnings in gzread.c and gzwrite.c
- Update use of errno for newer Windows CE versions
- Small speedup to inflate [psumbera]
- Return an error if the gzputs string length can't fit in an int
- Add address checking in clang to -w option of configure
- Don't compute check value for raw inflate if asked to validate
- Handle case where inflateSync used when header never processed
- Avoid the use of ptrdiff_t
- Avoid an undefined behavior of memcpy() in gzappend()
- Avoid undefined behaviors of memcpy() in gz*printf()
- Avoid an undefined behavior of memcpy() in _tr_stored_block()
- Make the names in functions declarations identical to definitions
- Remove old assembler code in which bugs have manifested
- Fix deflateEnd() to not report an error at start of raw deflate
- Add legal disclaimer to README
- Emphasize the need to continue decompressing gzip members
- Correct the initialization requirements for deflateInit2()
- Fix a bug that can crash deflate on some input when using Z_FIXED
- Assure that the number of bits for deflatePrime() is valid
- Use a structure to make globals in enough.c evident
- Use a macro for the printf format of big_t in enough.c
- Clean up code style in enough.c, update version
- Use inline function instead of macro for index in enough.c
- Clarify that prefix codes are counted in enough.c
- Show all the codes for the maximum tables size in enough.c
- Add gznorm.c example, which normalizes gzip files
- Fix the zran.c example to work on a multiple-member gzip file
- Add tables for crc32_combine(), to speed it up by a factor of 200
- Add crc32_combine_gen() and crc32_combine_op() for fast combines
- Speed up software CRC-32 computation by a factor of 1.5 to 3
- Use atomic test and set, if available, for dynamic CRC tables
- Don't bother computing check value after successful inflateSync()
- Correct comment in crc32.c
- Add use of the ARMv8 crc32 instructions when requested
- Use ARM crc32 instructions if the ARM architecture has them
- Explicitly note that the 32-bit check values are 32 bits
- Avoid adding empty gzip member after gzflush with Z_FINISH
- Fix memory leak on error in gzlog.c
- Fix error in comment on the polynomial representation of a byte
- Clarify gz* function interfaces, referring to parameter names
- Change macro name in inflate.c to avoid collision in VxWorks
- Correct typo in blast.c
- Improve portability of contrib/minizip
- Fix indentation in minizip's zip.c
- Replace black/white with allow/block. (theresa-m)
- minizip warning fix if MAXU32 already defined. (gvollant)
- Fix unztell64() in minizip to work past 4GB. (Daniël Hörchner)
- Clean up minizip to reduce warnings for testing
- Add fallthrough comments for gcc
- Eliminate use of ULL constants
- Separate out address sanitizing from warnings in configure
- Remove destructive aspects of make distclean
- Check for cc masquerading as gcc or clang in configure
- Fix crc32.c to compile local functions only if used
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.57 2022/03/24 07:56:00 wiz Exp $
d4 1
@


1.57
log
@zlib:  Fix a bug that can crash deflate on some input when using Z_FIXED.

Using upstream patch.

This bug was reported by Danilo Ramos of Eideticom, Inc. It has
lain in wait 13 years before being found! The bug was introduced
in zlib 1.2.2.2, with the addition of the Z_FIXED option. That
option forces the use of fixed Huffman codes. For rare inputs with
a large number of distant matches, the pending buffer into which
the compressed data is written can overwrite the distance symbol
table which it overlays. That results in corrupted output due to
invalid distances, and can result in out-of-bound accesses,
crashing the application.

The fix here combines the distance buffer and literal/length
buffers into a single symbol buffer. Now three bytes of pending
buffer space are opened up for each literal or length/distance
pair consumed, instead of the previous two bytes. This assures
that the pending buffer cannot overwrite the symbol table, since
the maximum fixed code compressed length/distance is 31 bits, and
since there are four bytes of pending space for every three bytes
of symbol space.

Bump PKGREVISION.

Fix some pkglint while here.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2020/01/26 17:31:05 rillig Exp $
d3 1
a3 2
DISTNAME=	zlib-1.2.11
PKGREVISION=	1
@


1.56
log
@all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2017/04/04 08:57:33 adam Exp $
d4 1
d23 1
a23 1
.if !empty(MACHINE_ARCH:Mi386)
@


1.55
log
@Changes in 1.2.11 (15 Jan 2017)
- Fix deflate stored bug when pulling last block from window
- Permit immediate deflateParams changes before any deflate input

Changes in 1.2.10 (2 Jan 2017)
- Avoid warnings on snprintf() return value
- Fix bug in deflate_stored() for zero-length input
- Fix bug in gzwrite.c that produced corrupt gzip files
- Remove files to be installed before copying them in Makefile.in
- Add warnings when compiling with assembler code

Changes in 1.2.9 (31 Dec 2016)
- Fix contrib/minizip to permit unzipping with desktop API [Zouzou]
- Improve contrib/blast to return unused bytes
- Assure that gzoffset() is correct when appending
- Improve compress() and uncompress() to support large lengths
- Fix bug in test/example.c where error code not saved
- Remedy Coverity warning [Randers-Pehrson]
- Improve speed of gzprintf() in transparent mode
- Fix inflateInit2() bug when windowBits is 16 or 32
- Change DEBUG macro to ZLIB_DEBUG
- Avoid uninitialized access by gzclose_w()
- Allow building zlib outside of the source directory
- Fix bug that accepted invalid zlib header when windowBits is zero
- Fix gzseek() problem on MinGW due to buggy _lseeki64 there
- Loop on write() calls in gzwrite.c in case of non-blocking I/O
- Add --warn (-w) option to ./configure for more compiler warnings
- Reject a window size of 256 bytes if not using the zlib wrapper
- Fix bug when level 0 used with Z_HUFFMAN or Z_RLE
- Add --debug (-d) option to ./configure to define ZLIB_DEBUG
- Fix bugs in creating a very large gzip header
- Add uncompress2() function, which returns the input size used
- Assure that deflateParams() will not switch functions mid-block
- Dramatically speed up deflation for level 0 (storing)
- Add gzfread(), duplicating the interface of fread()
- Add gzfwrite(), duplicating the interface of fwrite()
- Add deflateGetDictionary() function
- Use snprintf() for later versions of Microsoft C
- Fix *Init macros to use z_ prefix when requested
- Replace as400 with os400 for OS/400 support [Monnerat]
- Add crc32_z() and adler32_z() functions with size_t lengths
- Update Visual Studio project files [AraHaan]
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2017/01/19 18:52:08 agc Exp $
d10 1
a10 1
HOMEPAGE=	http://www.zlib.net/
@


1.54
log
@Convert all occurrences (353 by my count) of

	MASTER_SITES= 	site1 \
			site2

style continuation lines to be simple repeated

	MASTER_SITES+= site1
	MASTER_SITES+= site2

lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint
accordingly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2015/08/30 10:54:11 richard Exp $
d3 1
a3 2
DISTNAME=	zlib-1.2.8
PKGREVISION=	3
d29 10
a38 10
SUBST_CLASSES+= pc
SUBST_MESSAGE.pc= pkg-config file substitutions
SUBST_STAGE.pc= pre-configure
SUBST_FILES.pc= zlib.pc.in
SUBST_SED.pc=	-e "s,@@prefix@@,${PREFIX},g"
SUBST_SED.pc+=	-e "s,@@exec_prefix@@,${PREFIX},g"
SUBST_SED.pc+=	-e "s,@@VERSION@@,${PKGVERSION_NOREV},g"
SUBST_SED.pc+=	-e "s,@@includedir@@,${PREFIX}/include,g"
SUBST_SED.pc+=	-e "s,@@libdir@@,${PREFIX}/lib,g"
SUBST_SED.pc+=	-e "s,@@sharedlibdir@@,${PREFIX}/lib,g"
@


1.53
log
@use NO_DIVIDE only on i386 SunOS; bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2014/10/09 14:06:32 wiz Exp $
d6 2
a7 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=libpng/} \
		http://zlib.net/
@


1.52
log
@Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2014/09/19 09:07:27 richard Exp $
d4 1
a4 1
PKGREVISION=	2
d22 4
d27 1
@


1.51
log
@Remove unnecessary reference to __moddi3 on SunOS by defining NO_DIVIDE for
adler32.c and adding LDFLAGS.SunOS+=-Wl,-zignore removing the dependency
on libgcc_s.so.
Bump PKGREVISION to take effect.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2014/09/10 10:46:07 richard Exp $
a14 2
PKG_INSTALLATION_TYPES=	overwrite pkgviews

@


1.50
log
@revert zlib
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2013/11/30 11:14:10 richard Exp $
d4 1
a4 1
PKGREVISION=	1
d24 3
@


1.49
log
@adding devel/py-hgnested

hgnested is a Mercurial extension to work with nested repositories.

It was inspired by the forest extension.

The extension allows to apply common Mercurial commands to all the nested
repositories at once like pull, push etc. It also allows to fetch a complete
tree of repositories through ssh or http.

To enable the "hgnested" extension, create an entry for it in your hgrc, like
this:

    [extensions]
    hgnested =

See `hg help hgnested` for the complete list of commands.

For more information please visit the following website:

	http://code.google.com/p/hgnested/
@
text
@d4 1
a4 1
PKGREVISION=	2
a22 1
LDFLAGS.SunOS+=		-Wl,-zignore	# avoid unused reference to libgcc_s.so
@


1.48
log
@provide zlib.pc for pkg-config to facilitate configure where possible
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2013/05/27 16:22:10 adam Exp $
d4 1
a4 1
PKGREVISION=	1
d23 1
@


1.47
log
@Version 1.2.8 fixes a very rare bug in decompression. All users are encouraged to upgrade immediately. Version 1.2.8 also has these improvements:
* Add new inflateGetDictionary() function
* Fix bug where gzopen() immediately followed by gzclose() would write an empty file instead of an empty gzip stream.
* Fix bug in gzclose() when gzwrite() runs out of memory
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2013/02/09 13:00:05 obache Exp $
d4 1
d19 2
d24 12
a35 1
INSTALLATION_DIRS=	include lib ${PKGMANDIR}/man3
d45 1
@


1.46
log
@-no-undefined LDFLAGS is required to be linked with Cygwin.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2012/10/31 11:19:55 asau Exp $
d3 1
a3 1
DISTNAME=	zlib-1.2.7
d6 1
a6 1
		http://www.gzip.org/zlib/
@


1.45
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2012/05/09 11:33:09 adam Exp $
d19 1
@


1.44
log
@Changes in 1.2.7:
- Replace use of memmove() with a simple copy for portability
- Test for existence of strerror
- Restore gzgetc_ for backward compatibility with 1.2.6
- Fix build with non-GNU make on Solaris
- Require gcc 4.0 or later on Mac OS X to use the hidden attribute
- Include unistd.h for Watcom C
- Use __WATCOMC__ instead of __WATCOM__
- Do not use the visibility attribute if NO_VIZ defined
- Improve the detection of no hidden visibility attribute
- Avoid using __int64 for gcc or solo compilation
- Cast to char * in gzprintf to avoid warnings
- Fix make_vms.com for VAX
- Don't use library or built-in byte swaps
- Simplify test and use of gcc hidden attribute
- Fix bug in gzclose_w() when gzwrite() fails to allocate memory
- Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen()
- Fix bug in test/minigzip.c for configure --solo
- Fix contrib/vstudio project link errors
- Add ability to choose the builder in make_vms.com
- Add DESTDIR support to mingw32 win32/Makefile.gcc
- Fix comments in win32/Makefile.gcc for proper usage
- Allow overriding the default install locations for cmake
- Generate and install the pkg-config file with cmake
- Build both a static and a shared version of zlib with cmake
- Include version symbols for cmake builds
- If using cmake with MSVC, add the source directory to the includes
- Remove unneeded EXTRA_CFLAGS from win32/Makefile.gcc
- Move obsolete emx makefile to old
- Allow the use of -Wundef when compiling or using zlib
- Avoid the use of the -u option with mktemp
- Improve inflate() documentation on the use of Z_FINISH
- Recognize clang as gcc
- Add gzopen_w() in Windows for wide character path names
- Rename zconf.h in CMakeLists.txt to move it out of the way
- Add source directory in CMakeLists.txt for building examples
- Look in build directory for zlib.pc in CMakeLists.txt
- Remove gzflags from zlibvc.def in vc9 and vc10
- Fix contrib/minizip compilation in the MinGW environment
- Update ./configure for Solaris, support --64
- Remove -R. from Solaris shared build (possible security issue)
- Avoid race condition for parallel make (-j) running example
- Fix type mismatch between get_crc_table() and crc_table
- Fix parsing of version with "-" in CMakeLists.txt
- Fix the path to zlib.map in CMakeLists.txt
- Force the native libtool in Mac OS X to avoid GNU libtool
- Add instructions to win32/Makefile.gcc for shared install
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2012/03/19 15:47:12 adam Exp $
a13 1
PKG_DESTDIR_SUPPORT=	user-destdir
@


1.43
log
@Changes 1.2.6:
* gzread() can now read a file that is being written concurrently
* gzgetc() is now a macro for increased speed
* Added a 'T' option to gzopen() for transparent writing (no compression)
* Added deflatePending() to return the amount of pending output
* Allow deflateSetDictionary() and inflateSetDictionary() at any time in raw
  mode
* deflatePrime() can now insert bits in the middle of the stream
* ./configure now creates a configure.log file with all of the results
* Added a ./configure --solo option to compile zlib with no dependency on any
  libraries
* Fixed a problem with large file support macros
* Fixed a bug in contrib/puff
* Many portability improvements
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2012/01/28 10:46:26 wiz Exp $
d3 1
a3 1
DISTNAME=	zlib-1.2.6
@


1.42
log
@Set LICENSE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2009/04/09 00:48:08 joerg Exp $
d3 1
a3 1
DISTNAME=	zlib-1.2.3
@


1.41
log
@Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2007/08/22 18:36:09 jlam Exp $
d12 1
@


1.40
log
@Re-arrange lines to make this more likely to pass pkglint.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2007/08/22 18:35:30 jlam Exp $
a15 2
NO_CHECKSUM=		yes
EXTRACT_ONLY=		# empty
@


1.39
log
@This package no longer needs a distinfo file.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2007/08/02 13:22:20 joerg Exp $
d7 1
a12 3
DISTFILES=	# empty
EXTRACT_ONLY=	# empty

d17 1
d20 2
a23 4
.include "../../mk/bsd.prefs.mk"

CFLAGS+=		${CPPFLAGS}

@


1.38
log
@Use in-tree versions. The replacement Makefile can be used for direct
builds in bootstrap tools as well.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2007/06/08 18:39:24 wiz Exp $
d18 1
@


1.37
log
@Remove dead MASTERS_SITES. From Zafer Aydogan.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2007/05/15 19:39:12 heinz Exp $
d8 1
a8 1
MAINTAINER=	pkgsrc-users@@NetBSD.org
d12 3
d19 1
a19 1
HAS_CONFIGURE=		yes
d22 6
a27 1
MAKE_ENV+=	PKGSRC_LDFLAGS=${LDFLAGS:Q}
d29 5
a33 1
TEST_TARGET=	check
@


1.36
log
@- Added support for installation to DESTDIR.
- Reenabled test targets in Makefile.in (previously broken by pkgsrc
  patches) and in the pkgsrc Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2007/01/24 17:28:22 reed Exp $
a5 2
		http://www.libpng.org/pub/png/src/ \
		ftp://swrinde.nde.swri.edu/pub/png/src/ \
@


1.35
log
@Update HOMEPAGE. (The previous redirects to this one.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2007/01/13 13:50:11 schwarz Exp $
d14 1
d23 2
@


1.34
log
@make sure that pkgsrc's LDFLAGS is used when linking
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2006/03/04 21:29:30 jlam Exp $
d11 1
a11 1
HOMEPAGE=	http://www.gzip.org/zlib/
@


1.33
log
@Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2005/12/27 17:27:58 reed Exp $
d20 2
@


1.32
log
@Honor PKGMANDIR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2005/07/22 16:04:43 drochner Exp $
d10 1
a10 1
MAINTAINER=	tech-pkg@@NetBSD.org
@


1.31
log
@update to 1.2.3
this fixes (at least) another security problem (DoS, CAN-2005-1849)
changes:
-Eliminate a potential security vulnerability when decoding invalid
 compressed data
-Eliminate a potential security vulnerability when decoding specially
 crafted compressed data
-Fix a bug when decompressing dynamic blocks with no distance codes
-Fix crc check bug in gzread() after gzungetc()
-Do not return an error when using gzread() on an empty file
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2005/07/07 10:43:19 drochner Exp $
d18 1
a18 1
INSTALLATION_DIRS=	include lib man/man3
@


1.30
log
@add a patch for CAN-2005-2096, from Debian
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2005/04/11 21:45:39 tv Exp $
d3 1
a3 2
DISTNAME=	zlib-1.2.2
PKGREVISION=	1
@


1.29
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2004/11/04 14:17:55 adam Exp $
d4 1
@


1.29.2.1
log
@Pullup ticket 590 - requested by Matthias Drochner
security fix for zlib

Revisions pulled up:
- pkgsrc/devel/zlib/Makefile		1.30
- pkgsrc/devel/zlib/distinfo		1.13
- pkgsrc/devel/zlib/patches/patch-ab	1.5
- pkgsrc/devel/zlib/buildlink3.mk	1.19

    Module Name:    pkgsrc
    Committed By:   drochner
    Date:           Thu Jul  7 10:43:19 UTC 2005

    Modified Files:
            pkgsrc/devel/zlib: Makefile distinfo
    Added Files:
            pkgsrc/devel/zlib/patches: patch-ab

    Log Message:
    add a patch for CAN-2005-2096, from Debian
----
    Module Name:    pkgsrc
    Committed By:   tron
    Date:           Thu Jul  7 11:46:55 UTC 2005

    Modified Files:
            pkgsrc/devel/zlib: buildlink3.mk

    Log Message:
    Bump recommented version to 1.2.2nb1 because of CAN-2005-2096.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2005/04/11 21:45:39 tv Exp $
a3 1
PKGREVISION=	1
@


1.29.2.2
log
@Pullup ticket 626 - requested by Matthias Drochner
security update for zlib

Revisions pulled up:
- pkgsrc/devel/zlib/Makefile		1.31
- pkgsrc/devel/zlib/buildlink3.mk	1.20
- pkgsrc/devel/zlib/distinfo		1.14
- pkgsrc/devel/zlib/patches/patch-ab	removed

    Module Name:    pkgsrc
    Committed By:   drochner
    Date:           Fri Jul 22 16:04:44 UTC 2005

    Modified Files:
            pkgsrc/devel/zlib: Makefile buildlink3.mk distinfo
    Removed Files:
            pkgsrc/devel/zlib/patches: patch-ab

    Log Message:
    update to 1.2.3
    this fixes (at least) another security problem (DoS, CAN-2005-1849)
    changes:
    -Eliminate a potential security vulnerability when decoding invalid
     compressed data
    -Eliminate a potential security vulnerability when decoding specially
     crafted compressed data
    -Fix a bug when decompressing dynamic blocks with no distance codes
    -Fix crc check bug in gzread() after gzungetc()
    -Do not return an error when using gzread() on an empty file
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29.2.1 2005/07/07 20:52:10 snj Exp $
d3 2
a4 1
DISTNAME=	zlib-1.2.3
@


1.28
log
@Changes 1.2.2:
* Eliminate a potential security vulnerability when decoding invalid compressed data
* Fix bug when decompressing dynamic blocks with no distance codes
* Do not return error when using gzread() on an empty file
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2004/10/03 00:13:34 tv Exp $
a15 1
USE_BUILDLINK3=		yes
@


1.27
log
@Libtool fix for PR pkg/26633, and other issues.  Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2004/08/31 23:16:23 reed Exp $
d3 1
a3 2
DISTNAME=	zlib-1.2.1
PKGREVISION=	3
d17 2
a18 2
USE_LIBTOOL=		# defined
HAS_CONFIGURE=		# defined
@


1.26
log
@Added two patches for fixing possible security issue.
The CVS security ID is CAN-2004-0797.

The fix is same as used by OpenBSD, Debian and Gentoo.
(Didn't see any reference to issue on zlib webpages.)

The OpenBSD announcement "zlib reliabilty fix" says:
"could allow an attacker to crash programs linked
with it."

And the Gentoo announcement says "zlib contains a bug in the handling
of errors in the inflate() and inflateBack() functions. ... An
attacker could exploit this vulnerability to launch a Denial of
Service attack on any application using the zlib library."

PKGREVISION is bumped and BUILDLINK_RECOMMENDED.zlib added to
buildlink3.mk file.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2004/05/08 01:06:26 tv Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.25
log
@nb1: install shlib as executable.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2004/03/23 04:41:00 jlam Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.24
log
@USE_BUILDLINK3 must be set to "yes" or "no", not defined/undefined.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2004/01/13 17:45:20 jmmv Exp $
d4 1
@


1.23
log
@Create the man/man3 directory, so that this can be installed properly with
pkgviews.  Closes PR pkg/24081 by Min Sik Kim.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2004/01/12 21:19:50 adam Exp $
d16 1
a16 1
USE_BUILDLINK3=		# defined
@


1.22
log
@Changes 1.2.1:
	* inflate is about 20% faster and minimizes memory allocation
	* crc32 is about 50% faster
	* new functions and functionality
	* more supported architectures
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2004/01/05 11:44:01 jlam Exp $
d19 1
a19 1
INSTALLATION_DIRS=	include lib
@


1.21
log
@bl3ify
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2003/07/17 21:34:17 grant Exp $
d3 1
a3 2
DISTNAME=	zlib-1.1.4
PKGREVISION=	1
a20 3
post-extract:
	${CP} ${FILESDIR}/lt.mk ${WRKSRC}

@


1.20
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2003/06/02 01:20:11 jschauma Exp $
d15 1
a15 1
BUILD_DEPENDS+=	libtool-base>=${LIBTOOL_REQD}:../../devel/libtool-base
d17 2
a18 1
USE_BUILDLINK2=		# defined
d20 1
a20 9
NOT_FOR_PLATFORM=	NetBSD-1.[4-9]*-* # in base NetBSD system

# To avoid circular dependences we must not use "USE_LIBTOOL" but
# depend on the "libtool-base" package manually.
#
LIBTOOL=	${LOCALBASE}/bin/libtool
PKGLIBTOOL=	${BUILDLINK_LIBTOOL}
CONFIGURE_ENV+=	LIBTOOL="${PKGLIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_ENV+=	LIBTOOL="${PKGLIBTOOL} ${LIBTOOL_FLAGS}"
@


1.19
log
@Use tech-pkg@@ in favor of packages@@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2003/03/05 13:09:28 salo Exp $
d11 1
a11 1
MAINTAINER=	tech-pkg@@netbsd.org
@


1.18
log
@Oops, restore NOT_FOR_PLATFORM (commented for my local testing).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2003/03/05 13:05:44 salo Exp $
d11 1
a11 1
MAINTAINER=	packages@@netbsd.org
@


1.17
log
@Added fix for CAN-2003-0107 -
Buffer overflow in the gzprintf function in zlib 1.1.4, when zlib is compiled
without vsnprintf or when long inputs are truncated using vsnprintf, allows
attackers to cause a denial of service or possibly execute arbitrary code.
From OpenBSD.

Restore configure target and add check for [v]snprintf.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2003/02/28 23:25:21 grant Exp $
d19 1
a19 1
#NOT_FOR_PLATFORM=	NetBSD-1.[4-9]*-* # in base NetBSD system
@


1.16
log
@s/LIBTOOL_VERSION/LIBTOOL_REQD/ to register correct dependency.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2002/09/01 18:45:47 jlam Exp $
d4 1
d18 1
a27 1
MAKEFILE=	lt.mk
@


1.15
log
@Mirror the libtool setup in bsd.pkg.mk since we can't use USE_LIBTOOL.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2002/08/25 18:38:51 jlam Exp $
d14 1
a14 1
BUILD_DEPENDS+=	libtool-base>=${LIBTOOL_VERSION}:../../devel/libtool-base
@


1.15.2.1
log
@Pull up revisions 1.17-1.18 (requested by salo in ticket #1291):

Darwin has no static libz, mark it incompatible.

mark Linux zlib as incompatible to avoid using base zlib which can
cause problems with pkgsrc libtool, eg.

libtool: link: AGE `4' is greater than the current interface number `1'
libtool: link: `1:1:4' is not valid version information
libtool: install: `libz.la' is not a valid libtool archive

Added fix for CAN-2003-0107 -
Buffer overflow in the gzprintf function in zlib 1.1.4, when zlib is compiled
without vsnprintf or when long inputs are truncated using vsnprintf, allows
attackers to cause a denial of service or possibly execute arbitrary code.
From OpenBSD.

Restore configure target and add check for [v]snprintf.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2003/03/05 13:09:28 salo Exp $
a3 1
PKGREVISION=	1
d14 1
a14 1
BUILD_DEPENDS+=	libtool-base>=${LIBTOOL_REQD}:../../devel/libtool-base
d17 1
a17 2
HAS_CONFIGURE=		# defined
NOT_FOR_PLATFORM=	NetBSD-1.[4-9]*-* # in base NetBSD system
d26 1
@


1.14
log
@Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12.2.4 2002/08/22 11:11:14 jlam Exp $
d17 1
a17 1
NOT_FOR_PLATFORM=	NetBSD-1.[4-9]*-* # in base NetBSD system
d23 3
a25 2
CONFIGURE_ENV+=	LIBTOOL="${BUILDLINK_LIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_ENV+=	LIBTOOL="${BUILDLINK_LIBTOOL} ${LIBTOOL_FLAGS}"
@


1.13
log
@Enable building this package on <1.4, and add INCOMPAT_ZLIB settings for
NetBSD releases that need it. Closes pkg/14782.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2002/03/12 00:25:03 wiz Exp $
d16 1
d21 1
d23 2
a24 2
CONFIGURE_ENV+=	LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_ENV+=	LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
@


1.12
log
@Update to 1.1.4, and update MASTER_SITES.
Changes since 1.1.3:
- ZFREE was repeated on same allocation on some error conditions.
  This creates a security problem described in
  http://www.zlib.org/advisory-2002-03-11.txt
- Returned incorrect error (Z_MEM_ERROR) on some invalid data
- Avoid accesses before window for invalid distances with inflate window
  less than 32K.
- force windowBits > 8 to avoid a bug in the encoder for a window size
  of 256 bytes. (A complete fix will be available in 1.1.5).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2001/11/29 16:44:15 abs Exp $
d16 1
a16 1
NOT_FOR_PLATFORM=	NetBSD-*-* # in base NetBSD system
@


1.12.2.1
log
@First pass at conversion of various packages to use the buildlink2
framework.  Add many buildlink2.mk files to add to the framework.  Please
see buildlink2.txt for more details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2002/03/12 00:25:03 wiz Exp $
a15 1
USE_BUILDLINK2_ONLY=	# defined
a19 1
#
d21 2
a22 2
CONFIGURE_ENV+=	LIBTOOL="${BUILDLINK_LIBTOOL} ${LIBTOOL_FLAGS}"
MAKE_ENV+=	LIBTOOL="${BUILDLINK_LIBTOOL} ${LIBTOOL_FLAGS}"
a26 2

post-build: buildlink-libtool-fix
@


1.12.2.2
log
@* Convert some more packages to use the buildlink2 framework.
* Re-add EVAL_PREFIX lines that I shouldn't have removed from the
  buildlink2.mk files.
* Add several more new buildlink2.mk files to facilitate converting more
  packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12.2.1 2002/05/11 02:09:06 jlam Exp $
d29 2
@


1.12.2.3
log
@Rename USE_BUILDLINK2_ONLY to USE_BUILDLINK2 for less verbosity.  Also
convert a few more packages to use the buildlink2 framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12.2.2 2002/06/06 06:54:37 jlam Exp $
d16 1
a16 1
USE_BUILDLINK2=		# defined
@


1.12.2.4
log
@Merge changes from pkgsrc-current into the buildlink2 branch for the
packages that have buildlink2.mk files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12.2.3 2002/06/21 23:05:11 jlam Exp $
d17 1
a17 1
NOT_FOR_PLATFORM=	NetBSD-1.[4-9]*-* # in base NetBSD system
@


1.11
log
@Change ONLY_FOR_PLATFORM...SunOS to NOT_FOR_PLATFORM...NetBSD
This package works fine under RedHat 5.0 (I'm still trying to work out
what karma I broke in order to be in a position to know this...)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2001/09/10 13:24:50 hubertf Exp $
d3 1
a3 1
DISTNAME=	zlib-1.1.3
d5 4
a8 1
MASTER_SITES=   ftp://ftp.freesoftware.com/pub/infozip/zlib/
@


1.10
log
@Homepage changed
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2001/04/17 11:14:05 tron Exp $
d13 1
a13 1
ONLY_FOR_PLATFORM=	SunOS-*-* # in base NetBSD system
@


1.9
log
@Add a comment why "USE_LIBTOOL" must not be used in this package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2001/04/16 00:57:48 tron Exp $
d8 1
a8 1
HOMEPAGE=	ftp://ftp.freesoftware.com/pub/infozip/zlib/index.html
@


1.8
log
@Use direct dependence on "libtool-base" package instead of "USE_LIBTOOL"
under Solaris to avoid circular dependence.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2001/02/16 14:39:07 wiz Exp $
d15 2
@


1.7
log
@Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2001/02/03 06:42:17 hubertf Exp $
d11 2
d15 3
a17 3
.include "../../mk/bsd.prefs.mk"
.if exists(${LOCALBASE}/bin/libtool)
USE_LIBTOOL=	yes
a18 1
PLIST_SRC=	${WRKDIR}/.PLIST_SRC
a21 10
	${SED} \
		-e '/libz_pic.a/d' \
		-e '/libz_p.a/d' \
		<${PKGDIR}/PLIST >${PLIST_SRC}

.else
MAKEFILE=	bsd.mk
.endif

MAKE_ENV+=	NOLINT=yes
@


1.6
log
@``Why drink and drive when you can smoke and fly''

(Use libtool to build this if it's installed; does not require port of
 NetBSD's share/mk for bootstrapping; old BSD-mk based build is still
 available as fallback if no libtool is found)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2001/01/21 20:42:17 tron Exp $
d9 1
@


1.5
log
@Don't try to "lint" the library.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2000/08/09 17:42:13 wiz Exp $
d12 14
d27 2
a29 2

INSTALL_TARGET=	install includes
@


1.4
log
@MASTER_SITE and HOMEPAGE moved to ftp.freesoftware.com.
Addresses pkg/10795.
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.3 1999/09/24 14:37:40 agc Exp $
#
d13 1
@


1.3
log
@Simplify this package, and build and install shared libs, by using a
version of the libz Makefile from basesrc to build this package.
Mark this package as only for Solaris platforms.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 1999/09/19 21:53:29 kim Exp $
d6 1
a6 1
MASTER_SITES=   ftp://ftp.cdrom.com/pub/infozip/zlib/
d9 1
a9 1
HOMEPAGE=	http://www.cdrom.com/pub/infozip/zlib/
@


1.2
log
@Well, today this procedure works better...
@
text
@d11 1
a11 2
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} --shared
d13 1
a13 1
.include "../../mk/bsd.prefs.mk"
d15 1
a15 22
.if exists(/usr/lib/libz.a)
IGNORE=		"is part of your NetBSD distribution"
.endif

CFLAGS=		-fPIC -O3

post-extract:
	@@cd ${WRKDIR} && ${MKDIR} static && ${PAX} -rw ${DISTNAME} static

post-patch:
	@@${MAKE} do-patch WRKSRC=${WRKDIR}/static/${DISTNAME}

post-configure:
	@@${MAKE} do-configure WRKSRC=${WRKDIR}/static/${DISTNAME} CFLAGS=-O3 \
	CONFIGURE_ARGS="`${ECHO} ${CONFIGURE_ARGS} | ${SED} -e 's/--shared//'`"

post-build:
	@@${MAKE} do-build WRKSRC=${WRKDIR}/static/${DISTNAME} CFLAGS=-O3

post-install:
	${INSTALL_DATA} ${WRKDIR}/static/${DISTNAME}/libz.a ${PREFIX}/lib
	cd ${PREFIX}/lib && ranlib libz.a
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
a15 6
#.if ${OPSYS} == "SunOS"
#.if !make(fake-pkg)
#CC=		cc
#.endif
#.endif

d20 2
d29 1
a29 1
	@@${MAKE} do-configure WRKSRC=${WRKDIR}/static/${DISTNAME} \
d33 1
a33 1
	@@${MAKE} do-build WRKSRC=${WRKDIR}/static/${DISTNAME}
@


1.1.1.1
log
@A general purpose data compression library (for Solaris use).
@
text
@@
