head	1.101;
access;
symbols
	pkgsrc-2026Q1:1.101.0.8
	pkgsrc-2026Q1-base:1.101
	pkgsrc-2025Q4:1.101.0.6
	pkgsrc-2025Q4-base:1.101
	pkgsrc-2025Q3:1.101.0.4
	pkgsrc-2025Q3-base:1.101
	pkgsrc-2025Q2:1.101.0.2
	pkgsrc-2025Q2-base:1.101
	pkgsrc-2025Q1:1.99.0.8
	pkgsrc-2025Q1-base:1.99
	pkgsrc-2024Q4:1.99.0.6
	pkgsrc-2024Q4-base:1.99
	pkgsrc-2024Q3:1.99.0.4
	pkgsrc-2024Q3-base:1.99
	pkgsrc-2024Q2:1.99.0.2
	pkgsrc-2024Q2-base:1.99
	pkgsrc-2024Q1:1.98.0.4
	pkgsrc-2024Q1-base:1.98
	pkgsrc-2023Q4:1.98.0.2
	pkgsrc-2023Q4-base:1.98
	pkgsrc-2023Q3:1.97.0.2
	pkgsrc-2023Q3-base:1.97
	pkgsrc-2023Q2:1.96.0.4
	pkgsrc-2023Q2-base:1.96
	pkgsrc-2023Q1:1.96.0.2
	pkgsrc-2023Q1-base:1.96
	pkgsrc-2022Q4:1.95.0.32
	pkgsrc-2022Q4-base:1.95
	pkgsrc-2022Q3:1.95.0.30
	pkgsrc-2022Q3-base:1.95
	pkgsrc-2022Q2:1.95.0.28
	pkgsrc-2022Q2-base:1.95
	pkgsrc-2022Q1:1.95.0.26
	pkgsrc-2022Q1-base:1.95
	pkgsrc-2021Q4:1.95.0.24
	pkgsrc-2021Q4-base:1.95
	pkgsrc-2021Q3:1.95.0.22
	pkgsrc-2021Q3-base:1.95
	pkgsrc-2021Q2:1.95.0.20
	pkgsrc-2021Q2-base:1.95
	pkgsrc-2021Q1:1.95.0.18
	pkgsrc-2021Q1-base:1.95
	pkgsrc-2020Q4:1.95.0.16
	pkgsrc-2020Q4-base:1.95
	pkgsrc-2020Q3:1.95.0.14
	pkgsrc-2020Q3-base:1.95
	pkgsrc-2020Q2:1.95.0.12
	pkgsrc-2020Q2-base:1.95
	pkgsrc-2020Q1:1.95.0.8
	pkgsrc-2020Q1-base:1.95
	pkgsrc-2019Q4:1.95.0.10
	pkgsrc-2019Q4-base:1.95
	pkgsrc-2019Q3:1.95.0.6
	pkgsrc-2019Q3-base:1.95
	pkgsrc-2019Q2:1.95.0.4
	pkgsrc-2019Q2-base:1.95
	pkgsrc-2019Q1:1.95.0.2
	pkgsrc-2019Q1-base:1.95
	pkgsrc-2018Q4:1.93.0.8
	pkgsrc-2018Q4-base:1.93
	pkgsrc-2018Q3:1.93.0.6
	pkgsrc-2018Q3-base:1.93
	pkgsrc-2018Q2:1.93.0.4
	pkgsrc-2018Q2-base:1.93
	pkgsrc-2018Q1:1.93.0.2
	pkgsrc-2018Q1-base:1.93
	pkgsrc-2017Q4:1.92.0.16
	pkgsrc-2017Q4-base:1.92
	pkgsrc-2017Q3:1.92.0.14
	pkgsrc-2017Q3-base:1.92
	pkgsrc-2017Q2:1.92.0.10
	pkgsrc-2017Q2-base:1.92
	pkgsrc-2017Q1:1.92.0.8
	pkgsrc-2017Q1-base:1.92
	pkgsrc-2016Q4:1.92.0.6
	pkgsrc-2016Q4-base:1.92
	pkgsrc-2016Q3:1.92.0.4
	pkgsrc-2016Q3-base:1.92
	pkgsrc-2016Q2:1.92.0.2
	pkgsrc-2016Q2-base:1.92
	pkgsrc-2016Q1:1.91.0.2
	pkgsrc-2016Q1-base:1.91
	pkgsrc-2015Q4:1.90.0.6
	pkgsrc-2015Q4-base:1.90
	pkgsrc-2015Q3:1.90.0.4
	pkgsrc-2015Q3-base:1.90
	pkgsrc-2015Q2:1.90.0.2
	pkgsrc-2015Q2-base:1.90
	pkgsrc-2015Q1:1.87.0.2
	pkgsrc-2015Q1-base:1.87
	pkgsrc-2014Q4:1.86.0.2
	pkgsrc-2014Q4-base:1.86
	pkgsrc-2014Q3:1.85.0.2
	pkgsrc-2014Q3-base:1.85
	pkgsrc-2014Q2:1.82.0.4
	pkgsrc-2014Q2-base:1.82
	pkgsrc-2014Q1:1.82.0.2
	pkgsrc-2014Q1-base:1.82
	pkgsrc-2013Q4:1.79.0.2
	pkgsrc-2013Q4-base:1.79
	pkgsrc-2013Q3:1.78.0.8
	pkgsrc-2013Q3-base:1.78
	pkgsrc-2013Q2:1.78.0.6
	pkgsrc-2013Q2-base:1.78
	pkgsrc-2013Q1:1.78.0.4
	pkgsrc-2013Q1-base:1.78
	pkgsrc-2012Q4:1.78.0.2
	pkgsrc-2012Q4-base:1.78
	pkgsrc-2012Q3:1.76.0.2
	pkgsrc-2012Q3-base:1.76
	pkgsrc-2012Q2:1.75.0.2
	pkgsrc-2012Q2-base:1.75
	pkgsrc-2012Q1:1.73.0.2
	pkgsrc-2012Q1-base:1.73
	pkgsrc-2011Q4:1.71.0.6
	pkgsrc-2011Q4-base:1.71
	pkgsrc-2011Q3:1.71.0.4
	pkgsrc-2011Q3-base:1.71
	pkgsrc-2011Q2:1.71.0.2
	pkgsrc-2011Q2-base:1.71
	pkgsrc-2011Q1:1.69.0.4
	pkgsrc-2011Q1-base:1.69
	pkgsrc-2010Q4:1.69.0.2
	pkgsrc-2010Q4-base:1.69
	pkgsrc-2010Q3:1.65.0.6
	pkgsrc-2010Q3-base:1.65
	TNF:1.1.1
	pkgsrc-2010Q2:1.65.0.4
	pkgsrc-2010Q2-base:1.65
	pkgsrc-2010Q1:1.65.0.2
	pkgsrc-2010Q1-base:1.65
	pkgsrc-2009Q4:1.64.0.4
	pkgsrc-2009Q4-base:1.64
	pkgsrc-2009Q3:1.64.0.2
	pkgsrc-2009Q3-base:1.64
	pkgsrc-2009Q2:1.63.0.14
	pkgsrc-2009Q2-base:1.63
	pkgsrc-2009Q1:1.63.0.12
	pkgsrc-2009Q1-base:1.63
	pkgsrc-2008Q4:1.63.0.10
	pkgsrc-2008Q4-base:1.63
	pkgsrc-2008Q3:1.63.0.8
	pkgsrc-2008Q3-base:1.63
	cube-native-xorg:1.63.0.6
	cube-native-xorg-base:1.63
	pkgsrc-2008Q2:1.63.0.4
	pkgsrc-2008Q2-base:1.63
	cwrapper:1.63.0.2
	pkgsrc-2008Q1:1.61.0.2
	pkgsrc-2008Q1-base:1.61
	pkgsrc-2007Q4:1.59.0.4
	pkgsrc-2007Q4-base:1.59
	pkgsrc-2007Q3:1.59.0.2
	pkgsrc-2007Q3-base:1.59
	pkgsrc-2007Q2:1.56.0.6
	pkgsrc-2007Q2-base:1.56
	pkgsrc-2007Q1:1.56.0.4
	pkgsrc-2007Q1-base:1.56
	pkgsrc-2006Q4:1.56.0.2
	pkgsrc-2006Q4-base:1.56
	pkgsrc-2006Q3:1.54.0.2
	pkgsrc-2006Q3-base:1.54
	pkgsrc-2006Q2:1.53.0.2
	pkgsrc-2006Q2-base:1.53
	pkgsrc-2006Q1:1.51.0.2
	pkgsrc-2006Q1-base:1.51
	pkgsrc-2005Q4:1.47.0.2
	pkgsrc-2005Q4-base:1.47
	pkgsrc-2005Q3:1.42.0.4
	pkgsrc-2005Q3-base:1.42
	pkgsrc-2005Q2:1.42.0.2
	pkgsrc-2005Q2-base:1.42
	pkgsrc-2005Q1:1.41.0.2
	pkgsrc-2005Q1-base:1.41
	pkgsrc-2004Q4:1.38.0.2
	pkgsrc-2004Q4-base:1.38
	pkgsrc-2004Q3:1.36.0.4
	pkgsrc-2004Q3-base:1.36
	pkgsrc-2004Q2:1.36.0.2
	pkgsrc-2004Q2-base:1.36
	pkgsrc-2004Q1:1.33.0.2
	pkgsrc-2004Q1-base:1.33
	pkgsrc-2003Q4:1.32.0.2
	pkgsrc-2003Q4-base:1.32
	netbsd-1-6-1:1.27.0.2
	netbsd-1-6-1-base:1.27
	netbsd-1-6:1.19.0.8
	netbsd-1-6-RELEASE-base:1.19
	pkgviews:1.19.0.4
	pkgviews-base:1.19
	buildlink2:1.19.0.2
	buildlink2-base:1.19
	netbsd-1-5-PATCH003:1.19
	netbsd-1-5-PATCH001:1.15
	netbsd-1-5-RELEASE:1.14
	netbsd-1-4-PATCH003:1.14
	netbsd-1-4-PATCH002:1.14
	comdex-fall-1999:1.14;
locks; strict;
comment	@# @;


1.101
date	2025.04.21.16.17.51;	author wiz;	state Exp;
branches;
next	1.100;
commitid	6F2e5mymVaIR8WRF;

1.100
date	2025.03.30.21.10.39;	author wiz;	state Exp;
branches;
next	1.99;
commitid	VYDR1SMauqdts8PF;

1.99
date	2024.05.01.21.20.12;	author cheusov;	state Exp;
branches;
next	1.98;
commitid	I125qh4zoWS4el8F;

1.98
date	2023.10.10.10.27.21;	author pho;	state Exp;
branches;
next	1.97;
commitid	fHWhTBOub6hFa4IE;

1.97
date	2023.08.06.07.23.07;	author adam;	state Exp;
branches;
next	1.96;
commitid	8Vx5DPHLErLKeHzE;

1.96
date	2023.03.26.09.18.48;	author spz;	state Exp;
branches;
next	1.95;
commitid	UOXOaM6dhsyA9CiE;

1.95
date	2019.02.24.15.18.45;	author wiz;	state Exp;
branches;
next	1.94;
commitid	o6nAITaVrRNz42dB;

1.94
date	2019.01.17.16.43.36;	author schmonz;	state Exp;
branches;
next	1.93;
commitid	MWSK6rt7nV0uL98B;

1.93
date	2018.03.11.17.28.08;	author wiz;	state Exp;
branches;
next	1.92;
commitid	s05pxbvS8E4s24uA;

1.92
date	2016.05.31.15.04.51;	author mef;	state Exp;
branches;
next	1.91;
commitid	KFL8eKQJW4eZ5E8z;

1.91
date	2016.02.25.09.28.36;	author jperkin;	state Exp;
branches;
next	1.90;
commitid	EKD3c060O1MkkhWy;

1.90
date	2015.05.03.14.32.11;	author sevan;	state Exp;
branches;
next	1.89;
commitid	sZH83897V63zz0ky;

1.89
date	2015.04.23.09.15.19;	author sevan;	state Exp;
branches;
next	1.88;
commitid	99POeTvNUQqU8Hiy;

1.88
date	2015.04.19.14.31.06;	author tnn;	state Exp;
branches;
next	1.87;
commitid	iQJoOdbj4QpZ1diy;

1.87
date	2015.01.26.12.30.30;	author jperkin;	state Exp;
branches;
next	1.86;
commitid	C9E9ZiG7op0d2x7y;

1.86
date	2014.10.09.13.44.32;	author wiz;	state Exp;
branches;
next	1.85;
commitid	UvzBSm5hrFIOWwTx;

1.85
date	2014.08.17.16.28.18;	author wiz;	state Exp;
branches;
next	1.84;
commitid	uUFUgjol2h0bwJMx;

1.84
date	2014.08.04.10.27.29;	author joerg;	state Exp;
branches;
next	1.83;
commitid	Jmy1dV4S5kxPY1Lx;

1.83
date	2014.07.18.11.12.41;	author ryoon;	state Exp;
branches;
next	1.82;
commitid	WX84Lq81aUScMQIx;

1.82
date	2014.03.18.18.11.26;	author bsiegert;	state Exp;
branches;
next	1.81;
commitid	b9qZLSy7k1hL0dtx;

1.81
date	2014.03.12.13.32.14;	author fhajny;	state Exp;
branches;
next	1.80;
commitid	VqWmgihoUydvEpsx;

1.80
date	2014.02.24.08.16.56;	author adam;	state Exp;
branches;
next	1.79;
commitid	QWcUTIaNSEqTqkqx;

1.79
date	2013.11.01.12.47.39;	author jperkin;	state Exp;
branches;
next	1.78;
commitid	eWftRZJtJFMYCzbx;

1.78
date	2012.12.31.00.25.56;	author sbd;	state Exp;
branches;
next	1.77;

1.77
date	2012.12.06.11.38.19;	author jperkin;	state Exp;
branches;
next	1.76;

1.76
date	2012.09.11.19.46.55;	author asau;	state Exp;
branches;
next	1.75;

1.75
date	2012.06.01.16.43.14;	author cheusov;	state Exp;
branches;
next	1.74;

1.74
date	2012.05.29.22.52.04;	author cheusov;	state Exp;
branches;
next	1.73;

1.73
date	2012.03.15.14.18.39;	author fhajny;	state Exp;
branches;
next	1.72;

1.72
date	2012.03.09.10.13.29;	author fhajny;	state Exp;
branches;
next	1.71;

1.71
date	2011.05.11.07.49.58;	author adam;	state Exp;
branches;
next	1.70;

1.70
date	2011.04.22.13.42.49;	author obache;	state Exp;
branches;
next	1.69;

1.69
date	2010.12.16.10.12.53;	author wiz;	state Exp;
branches;
next	1.68;

1.68
date	2010.12.15.22.16.25;	author wiz;	state Exp;
branches;
next	1.67;

1.67
date	2010.12.15.20.37.38;	author tez;	state Exp;
branches;
next	1.66;

1.66
date	2010.12.12.13.10.39;	author wiz;	state Exp;
branches;
next	1.65;

1.65
date	2010.03.23.19.00.10;	author tez;	state Exp;
branches;
next	1.64;

1.64
date	2009.08.16.13.53.32;	author wiz;	state Exp;
branches;
next	1.63;

1.63
date	2008.05.18.01.48.09;	author tnn;	state Exp;
branches;
next	1.62;

1.62
date	2008.04.12.22.42.57;	author jlam;	state Exp;
branches;
next	1.61;

1.61
date	2008.04.02.22.03.07;	author tonnerre;	state Exp;
branches;
next	1.60;

1.60
date	2008.03.31.00.39.38;	author tonnerre;	state Exp;
branches;
next	1.59;

1.59
date	2007.09.08.21.57.57;	author jlam;	state Exp;
branches;
next	1.58;

1.58
date	2007.09.06.21.51.52;	author jlam;	state Exp;
branches;
next	1.57;

1.57
date	2007.07.19.14.54.04;	author joerg;	state Exp;
branches;
next	1.56;

1.56
date	2006.12.06.22.49.10;	author schwarz;	state Exp;
branches;
next	1.55;

1.55
date	2006.12.03.15.21.20;	author tron;	state Exp;
branches;
next	1.54;

1.54
date	2006.09.03.17.24.16;	author adrianp;	state Exp;
branches
	1.54.2.1;
next	1.53;

1.53
date	2006.06.18.07.04.16;	author rillig;	state Exp;
branches
	1.53.2.1;
next	1.52;

1.52
date	2006.04.13.18.23.29;	author jlam;	state Exp;
branches;
next	1.51;

1.51
date	2006.03.20.04.15.42;	author jlam;	state Exp;
branches;
next	1.50;

1.50
date	2006.03.04.21.28.52;	author jlam;	state Exp;
branches;
next	1.49;

1.49
date	2006.02.15.18.00.10;	author reed;	state Exp;
branches;
next	1.48;

1.48
date	2006.02.05.23.08.04;	author joerg;	state Exp;
branches;
next	1.47;

1.47
date	2005.12.05.23.55.01;	author rillig;	state Exp;
branches;
next	1.46;

1.46
date	2005.12.01.16.41.29;	author rillig;	state Exp;
branches;
next	1.45;

1.45
date	2005.11.04.16.39.50;	author rillig;	state Exp;
branches;
next	1.44;

1.44
date	2005.10.23.18.05.06;	author rillig;	state Exp;
branches;
next	1.43;

1.43
date	2005.10.19.11.02.28;	author cube;	state Exp;
branches;
next	1.42;

1.42
date	2005.04.11.21.44.48;	author tv;	state Exp;
branches;
next	1.41;

1.41
date	2005.01.16.22.28.40;	author tv;	state Exp;
branches;
next	1.40;

1.40
date	2005.01.16.04.44.50;	author tv;	state Exp;
branches;
next	1.39;

1.39
date	2005.01.09.22.52.13;	author recht;	state Exp;
branches;
next	1.38;

1.38
date	2004.10.02.22.40.24;	author recht;	state Exp;
branches;
next	1.37;

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

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

1.35
date	2004.05.18.11.58.04;	author recht;	state Exp;
branches;
next	1.34;

1.34
date	2004.04.05.18.38.43;	author reed;	state Exp;
branches;
next	1.33;

1.33
date	2004.03.11.18.03.49;	author xtraeme;	state Exp;
branches;
next	1.32;

1.32
date	2003.07.17.21.21.15;	author grant;	state Exp;
branches;
next	1.31;

1.31
date	2003.06.02.01.21.49;	author jschauma;	state Exp;
branches;
next	1.30;

1.30
date	2003.05.23.22.24.16;	author wiz;	state Exp;
branches;
next	1.29;

1.29
date	2003.04.22.20.25.08;	author wiz;	state Exp;
branches;
next	1.28;

1.28
date	2003.02.13.17.41.37;	author grant;	state Exp;
branches;
next	1.27;

1.27
date	2003.01.21.09.29.45;	author wiz;	state Exp;
branches;
next	1.26;

1.26
date	2003.01.20.23.23.57;	author jschauma;	state Exp;
branches;
next	1.25;

1.25
date	2002.12.22.17.15.33;	author wiz;	state Exp;
branches;
next	1.24;

1.24
date	2002.12.22.01.34.38;	author wiz;	state Exp;
branches;
next	1.23;

1.23
date	2002.11.30.11.16.19;	author salo;	state Exp;
branches;
next	1.22;

1.22
date	2002.11.22.12.05.05;	author bouyer;	state Exp;
branches;
next	1.21;

1.21
date	2002.11.20.16.57.54;	author bouyer;	state Exp;
branches;
next	1.20;

1.20
date	2002.08.25.21.49.06;	author jlam;	state Exp;
branches;
next	1.19;

1.19
date	2002.01.27.18.32.32;	author jlam;	state Exp;
branches
	1.19.2.1
	1.19.8.1;
next	1.18;

1.18
date	2001.12.27.21.50.56;	author agc;	state Exp;
branches;
next	1.17;

1.17
date	2001.10.19.09.02.38;	author veego;	state Exp;
branches;
next	1.16;

1.16
date	2001.10.18.15.20.01;	author veego;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.16.13.15.28;	author wiz;	state Exp;
branches;
next	1.14;

1.14
date	99.09.18.15.07.29;	author kim;	state Exp;
branches;
next	1.13;

1.13
date	99.09.18.14.49.08;	author kim;	state Exp;
branches;
next	1.12;

1.12
date	99.09.18.03.36.23;	author kim;	state dead;
branches;
next	1.11;

1.11
date	99.04.14.21.39.01;	author tron;	state dead;
branches;
next	1.10;

1.10
date	99.03.22.16.08.31;	author bad;	state dead;
branches;
next	1.9;

1.9
date	98.08.20.15.16.35;	author tsarna;	state dead;
branches;
next	1.8;

1.8
date	98.08.15.00.12.10;	author tv;	state dead;
branches;
next	1.7;

1.7
date	98.06.18.16.06.37;	author agc;	state dead;
branches;
next	1.6;

1.6
date	98.04.17.09.37.22;	author agc;	state dead;
branches;
next	1.5;

1.5
date	98.04.15.10.38.08;	author agc;	state dead;
branches;
next	1.4;

1.4
date	98.03.10.11.57.27;	author frueauf;	state dead;
branches;
next	1.3;

1.3
date	98.03.05.20.09.46;	author tv;	state dead;
branches;
next	1.2;

1.2
date	98.03.04.15.14.26;	author tv;	state dead;
branches;
next	1.1;

1.1
date	98.03.04.14.57.13;	author tv;	state dead;
branches
	1.1.1.1;
next	;

1.54.2.1
date	2006.12.04.08.46.25;	author ghen;	state Exp;
branches;
next	;

1.53.2.1
date	2006.09.11.11.18.03;	author ghen;	state Exp;
branches;
next	;

1.19.2.1
date	2002.05.11.02.08.49;	author jlam;	state Exp;
branches;
next	1.19.2.2;

1.19.2.2
date	2002.06.21.23.04.43;	author jlam;	state Exp;
branches;
next	;

1.19.8.1
date	2002.12.22.08.29.19;	author agc;	state Exp;
branches;
next	;

1.1.1.1
date	98.03.04.14.57.13;	author tv;	state dead;
branches;
next	;


desc
@@


1.101
log
@gtar-base: remove Interix support
@
text
@# $NetBSD: Makefile,v 1.100 2025/03/30 21:10:39 wiz Exp $

.include "../../archivers/gtar/Makefile.common"

PKGNAME=	${DISTNAME:S/tar/gtar-base/}

CONFLICTS=	gcpio-[0-9]*

USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		msgfmt
GNU_CONFIGURE=		yes
TEST_TARGET=		check

INSTALLATION_DIRS=	${PKGMANDIR}/man1
INSTALLATION_DIRS+=	${PKGGNUDIR}bin ${PKGGNUDIR}libexec
INSTALLATION_DIRS+=	${PKGGNUDIR}${PKGMANDIR}/man1

.include "../../mk/bsd.prefs.mk"
.include "options.mk"

CONFIGURE_ARGS+=	--program-prefix=g

# lie to configure about gettext -- it does not need GNU gettext
CONFIGURE_ENV+=		gt_cv_func_gnugettext2_libintl=yes
# allow configure to run as root
CONFIGURE_ENV+=		FORCE_UNSAFE_CONFIGURE=1

.if ${OS_VARIANT} == "SCOOSR5"
# SCO OpenServer 5.0.7/3.2 has strtoimax in inttypes.h, but not in library.
CONFIGURE_ENV+=		gl_cv_have_raw_decl_strtoimax=no
CONFIGURE_ENV+=		ac_cv_have_decl_strtoimax=no
LDFLAGS.SCO_SV+=	-lsocket
.endif

.if ${OPSYS} == "FreeBSD"
.  for p in ${LP32PLATFORMS}
.    if !empty(MACHINE_PLATFORM:M${p})
# Required on platforms where time_t is signed 32-bit.
CONFIGURE_ARGS+=	--disable-year2038
.    endif
.  endfor
.endif

PLIST_VARS+=		rmt

# don't include rmt if gtar won't build it
.if ${OPSYS} != "Darwin" && ${OS_VARIANT} != "SCOOSR5" && ${OPSYS} != "AIX"
PLIST.rmt=		yes
.endif

# XXX see similar hack in coreutils.
.if ${OPSYS} != "Linux"
CONFIGURE_ENV+=		gt_cv_func_gnugettext3_libintl=yes
.endif

# From sigwait(3):
CFLAGS.OpenBSD+=	-pthread
LDFLAGS.OpenBSD+=	-pthread

#bug 20453 in bug-gzip list, passed onto gnulib
CONFIGURE_ENV.AIX+=	ac_cv_header_wctype_h=no

SYMLINKS=		bin/gtar ${PKGGNUDIR}bin/tar \
			${PKGMANDIR}/man1/gtar.1 ${PKGGNUDIR}${PKGMANDIR}/man1/tar.1

.if defined(PLIST.rmt) && ${PLIST.rmt} == "yes"
SYMLINKS+=		libexec/grmt ${PKGGNUDIR}libexec/rmt
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/tar.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gtar.1
.for o n in ${SYMLINKS}
	${LN} -sf ${PREFIX}/${o} ${DESTDIR}${PREFIX}/${n}
.endfor

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


1.100
log
@*: remove MirBSD support
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.99 2024/05/01 21:20:12 cheusov Exp $
d47 1
a47 1
.if ${OPSYS} != "Interix" && ${OPSYS} != "Darwin" && ${OS_VARIANT} != "SCOOSR5" && ${OPSYS} != "AIX"
@


1.99
log
@Add option "nls" enabled by default
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.98 2023/10/10 10:27:21 pho Exp $
a55 2
CPPFLAGS.MirBSD+=	-Dstrtoimax=strtoll -Dstrtoumax=strtoull

@


1.98
log
@archivers/gtar-base: Fix build on FreeBSD/i386
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.97 2023/08/06 07:23:07 adam Exp $
d19 1
a77 1
.include "../../devel/gettext-lib/buildlink3.mk"
@


1.97
log
@gtar: updated to 1.35

version 1.35

* Fail when building GNU tar, if the platform supports 64-bit time_t
  but the build uses only 32-bit time_t.

* Leave the devmajor and devminor fields empty (rather than zero) for
  non-special files, as this is more compatible with traditional tar.

* Bug fixes

** Fix interaction of --update with --wildcards.

** When extracting archives into an empty directory, do not create
   hard links to files outside that directory.

** Handle partial reads from regular files.

** Warn "file changed as we read it" less often.
   Formerly, tar warned if the file's size or ctime changed.
   However, this generated a false positive if tar read a file
   while another process hard-linked to it, changing its ctime.
   Now, tar warns if the file's size, mtime, user ID, group ID,
   or mode changes.  Although neither heuristic is perfect,
   the new one should work better in practice.

** Fix --ignore-failed-read to ignore file-changed read errors
   as far as exit status is concerned.  You can now suppress file-changed
   issues entirely with --ignore-failed-read --warning=no-file-changed.

** Fix --remove-files to not remove a file that changed while we read it.

** Fix --atime-preserve=replace to not fail if there was no need to replace,
   either because we did not read the file, or the atime did not change.

** Fix race when creating a parent directory while another process is
   also doing so.

** Fix handling of prefix keywords not followed by "." in pax headers.

** Fix handling of out-of-range sparse entries in pax headers.

** Fix handling of --transform='s/s/@@/2'.

** Fix treatment of options ending in / in files-from list.

** Fix crash on 'tar --checkpoint-action exec=\"'.

** Fix low-memory crash when reading incremental dumps.

** Fix --exclude-vcs-ignores memory allocation misuse.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.96 2023/03/26 09:18:48 spz Exp $
d34 9
@


1.96
log
@add the patch for CVE-2022-48303 from the gtar git
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.95 2019/02/24 15:18:45 wiz Exp $
a5 4
COMMENT=	The GNU tape archiver with remote magnetic tape support
LICENSE=	gnu-gpl-v3

PKGREVISION=	1
d12 1
a35 2
TEST_TARGET=		check

@


1.95
log
@gtar: update to 1.32

version 1.32 - Sergey Poznyakoff, 2019-02-23

* Fix the use of --checkpoint without explicit --checkpoint-action

* Fix extraction with the -U option

See http://lists.gnu.org/archive/html/bug-tar/2019-01/msg00015.html,
for details

* Fix iconv usage on BSD-based systems

* Fix possible NULL dereference (savannah bug #55369)

* Improve the testsuite
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.94 2019/01/17 16:43:36 schmonz Exp $
d9 2
@


1.94
log
@On OpenBSD, "code using the sigwait() function must be compiled and
linked with the -pthread option".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.93 2018/03/11 17:28:08 wiz Exp $
d35 1
a35 1
PLIST_VARS+=		gtar rmt
@


1.93
log
@gtar: update to 1.30

version 1.30 - Sergey Poznyakoff, 2017-12-17

* Member names containing '..' components are now skipped when extracting.

This fixes tar's behavior to match its documentation, and is a bit
safer when extracting untrusted archives over old files (an unsafe
practice that the tar manual has long recommended against).

* Report erroneous use of position-sensitive options.

During archive creation or update, tar keeps track of positional
options (see the manual, subsection 3.4.4 "Position-Sensitive
Options"), and reports those that had no effect.  For example, when
invoked as

   tar -cf a.tar . --exclude '*.o'

tar will create the archive, but will exit with status 2, having
issued the following error message

   tar: The following options were used after non-optional
   arguments in archive create or update mode.  These options are
   positional and affect only arguments that follow them.  Please,
   rearrange them properly.
   tar: --exclude '*.o' has no effect
   tar: Exiting with failure status due to previous errors

* --numeric-owner now affects private headers too.

This helps the output of 'tar' to be more deterministic.

* Fixed the --delay-directory-restore option

In some cases tar would restore the directory permissions too early,
causing subsequent link extractions in that directory to fail.

* The --warnings=failed-read option

This new warning control option suppresses warning messages about
unreadable files and directories. It has effect only if used together
with the --ignore-failed-read option.

* The --warnings=none option now suppresses all warnings

This includes warnings about unreadable files produced when
--ignore-failed-read is in effect. To output these, use
--warnings=none --warnings=no-failed-read.

* Fix reporting of hardlink mismatches during compare

Tar reported incorrect target file name in the 'Not linked to'
diagnostic message.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.92 2016/05/31 15:04:51 mef Exp $
d51 4
@


1.92
log
@(pkgsrc)
- two patches are removed, upstream change
(upstream)
- Updated archivers/gtar      to 1.29
  Updated archivers/gtar-base to 1.29
  Updated archivers/gtar-info to 1.29
------------------------------------
version 1.29 - Sergey Poznyakoff, 2016-05-16

* New options: --verbatim-files-from, --no-verbatim-files-from

The --verbatim-files-from option instructs tar to treat each line read
from a file list as a file name, even if it starts with a dash.

File lists are supplied with the --files-from (-T) option.  By
default, each line read from a file list is first stripped off the
leading and trailing whitespace and, if the result begins with a dash,
it is treated as tar command line option.

Use the --verbatim-files-from option to disable this special handling.
This facilitates the use of tar with file lists created automatically
(e.g. by find(1) command).

This option affects all --files-from options that occur after it in
the command line.  Its effect is reverted by the
--no-verbatim-files-from option.

* --null option reads file names verbatim

The --null option implies --verbatim-files-from.  I.e. each line
read from null-delimited file lists is treated as a file name.

This restores the documented behavior, which was broken in version
1.27.

* New options: --owner-map=FILE and --group-map=FILE

These two options provide fine-grained control over what user/group
names (or IDs) should be mapped when adding files to archive.

For both options, FILE is a plain text file with user or group
mappings.  Empty lines are ignored.  Comments are introduced with
# sign (unless quoted) and extend to the end of the corresponding
line.  Each non-empty line defines translation for a single UID (GID).
It must consist of two fields, delimited by any amount of whitespace:

     OLDNAME NEWNAME[:NEWID]

OLDNAME is either a valid user (group) name or a ID prefixed with +.  Unless
NEWID is supplied, NEWNAME must also be either a valid name or a
+ID.  Otherwise, both NEWNAME and NEWID need not be listed in the
system user database.

* New option --clamp-mtime

The new --clamp-mtime option changes the behavior of --mtime to only
use the time specified if the file mtime is newer than the given time.
The --clamp-mtime option can only be used together with	--mtime.

Typical use case is to make builds reproducible: to loose less
information, it's better to keep the original date of an archive,
except for files modified during the build process. In that case, using
reference (and thus reproducible) timestamps for the latter is good
enough.

See <https://wiki.debian.org/ReproducibleBuilds> for more information.

* Deprecated --preserve option removed

* Sparse file detection

Tar now uses SEEK_DATA/SEEK_HOLE on systems that support it.  This
allows for considerable speed-up in sparse-file detection.

New option --hole-detection is provided, that allows the user to
select the algorithm used for hole detection.  Available arguments
are:

  --hole-detection=seek
     Use lseek(2) SEEK_DATA and SEEK_HOLE "whence" parameters.

  --hole-detection=raw
     Scan entire file before storing it to determine where holes
     are located.

The default is to use "seek" whenever possible, and fall back to
"raw" otherwise.
@
text
@d1 1
a1 4
# $NetBSD: Makefile,v 1.91 2016/02/25 09:28:36 jperkin Exp $
#
# Please run 'make files/gtar.1' when updating version of this package
# to regenerate the man page. converters/help2man is needed.
@


1.91
log
@Use OPSYSVARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.90 2015/05/03 14:32:11 sevan Exp $
a8 1
PKGREVISION=	1
@


1.90
log
@Force the use of the gnulib version of wctype.h, bundled with gtar, when building
on AIX. This is a workaround for an issue where though the wctype.h included on
system was found, wctype_t & wctrans_t were deemed unsuitable, causing the build
to fail due to previous declaration with confliciting types.

Reviewed by wiz@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.89 2015/04/23 09:15:19 sevan Exp $
d53 1
a53 3
.if ${OPSYS} == "MirBSD"
CPPFLAGS+=		-Dstrtoimax=strtoll -Dstrtoumax=strtoull
.endif
a54 1
.if ${OPSYS} == "AIX"
d56 1
a56 2
CONFIGURE_ENV+= ac_cv_header_wctype_h=no
.endif
@


1.89
log
@rmt is not built on AIX
Exclude AIX from PLIST.rmt

Reviewed by wiz@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.88 2015/04/19 14:31:06 tnn Exp $
d57 5
@


1.88
log
@Does not need USE_FEATURES=snprintf.
snprintf is provided internally by gnulib.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.87 2015/01/26 12:30:30 jperkin Exp $
d44 1
a44 1
.if ${OPSYS} != "Interix" && ${OPSYS} != "Darwin" && ${OS_VARIANT} != "SCOOSR5"
@


1.87
log
@Do not call into gettext which may not be async-signal-safe in between fork
and exec.  Fixes crashes on OSX when LC_ALL is unset.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.86 2014/10/09 13:44:32 wiz Exp $
a14 1
USE_FEATURES=		snprintf
@


1.86
log
@Remove SVR4_PKGNAME, per discussion on tech-pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.85 2014/08/17 16:28:18 wiz Exp $
d9 1
@


1.85
log
@Update gtar to 1.28. Add a Makefile.common and use it.
Use official man page, now that there is one.

version 1.28, 2014-07-28

* New checkpoint action: totals

The --checkpoint-action=totals option instructs tar to output the
total number of bytes transferred at each checkpoint.

* Extended checkpoint format specification.

New conversion specifiers are implemented.  Some of them take
optional arguments, supplied in curly braces between the percent
sign and the specifier letter.

  %d        -  Number of seconds since tar started.
  %{r,w,d}T -  I/O totals; optional arguments supply prefixes
               to be used before number of bytes read, written and
	       deleted, correspondingly.
  %{FMT}t   -  Current local time using FMT as strftime(3) format.
               If {FMT} is omitted, use %c.
  %{N}*     -  Pad output with spaces to the Nth column, or to the
               current screen width, if {N} is not given.
  %c        -  A shortcut for "%{%Y-%m-%d %H:%M:%S}t: %ds, %{read,wrote}T%*\r"

* New option --one-top-level

The option --one-top-level tells tar to extract all files into a
subdirectory named by the base name of the archive (minus standard
compression suffixes recognizable by --auto-compress).  When used with
an argument, as in --one-top-level=DIR, the files are extracted into the
supplied DIRectory.  This ensures that no archive members are
extracted outside of the specified directory, even if the archive is
crafted so as to put them elsewhere.

* New option --sort

The --sort=ORDER option instructs tar to sort directory entries
according to ORDER.  It takes effect when creating archives.
Available ORDERs are: none (the default), name and inode.  The
latter may be absent, if the underlying system does not provide
the necessary information.

Using --sort=name ensures the member ordering in the created archive
is uniform and reproducible.  Using --sort=inode reduces the number
of disk seeks made when creating the archive and thus can considerably
speed up archivation.

* New exclusion options

  --exclude-ignore=FILE   Before dumping a directory check if it
                          contains FILE, and if so read exclude
                          patterns for this directory from FILE.
  --exclude-ignore-recursive=FILE
                          Same as above, but the exclusion patterns
                          read from FILE remain in effect for any
			  subdirectory, recursively.
  --exclude-vcs-ignores   Read exclude tags from VCS ignore files,
                          where such files exist.  Supported VCS's
                          are: CVS, Git, Bazaar, Mercurial.


* Tar refuses to read input from and write output to a tty device.

* Manpages

This release includes official tar(1) and rmt(8) manpages.
Distribution maintainers are kindly asked to use these instead of the
home-made pages they have been providing so far.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.84 2014/08/04 10:27:29 joerg Exp $
a8 1
SVR4_PKGNAME=	gtarb
@


1.84
log
@Destroy second $NetBSD$ pattern.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.83 2014/07/18 11:12:41 ryoon Exp $
d6 2
a7 1
DISTNAME=	tar-1.27.1
a8 1
PKGREVISION=	1
a9 6
CATEGORIES=	archivers
MASTER_SITES=	${MASTER_SITE_GNU:=tar/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	http://www.gnu.org/software/tar/tar.html
a14 2
PKG_INSTALLATION_TYPES=	overwrite pkgviews

a64 15
.if ${OS_VARIANT} == "SCOOSR5"
# SCO OpenServer 5.0.7/3.2 has strtoimax() declaration in inttypes.h,
# but libc.so has no implementation. And gnulib in GNU tar 1.27 has broken
# strtoimax() support. We have to use BSDL implementation instead.
pre-configure:
	cd ${WRKSRC} && ${CC} -c -o strtoimax.o strtoimax.c
.endif

files/gtar.1: build
	${ECHO} .\\\" > ${FILESDIR}/gtar.1
	${ECHO} .\\\" \$$""NetBSD\$$ >> ${FILESDIR}/gtar.1
	help2man --name "The GNU version of the tar archiving utility" \
		--info-page tar ${WRKSRC}/src/tar | \
		${SED} '/help2man/d' >> ${FILESDIR}/gtar.1

d66 1
a66 2
	${INSTALL_MAN} ${FILESDIR}/gtar.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gtar.1
@


1.83
log
@Fix SCO OpenServer 5.0.7/3.2 build.

SCO OpenServer 5.0.7/3.2 has strtoimax() declaration in inttypes.h,
but libc.so has no implementation. And gnulib in GNU tar 1.27 has broken
strtoimax() support. We have to use BSDL implementation instead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.82 2014/03/18 18:11:26 bsiegert Exp $
d83 1
a83 1
	${ECHO} .\\\" \$$NetBSD\$$ >> ${FILESDIR}/gtar.1
@


1.82
log
@Add a workaround for the lack of strto{i,u}max on MirBSD, fix build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.81 2014/03/12 13:32:14 fhajny Exp $
d41 7
d53 1
a53 1
.if ${OPSYS} != "Interix" && ${OPSYS} != "Darwin"
d73 8
@


1.81
log
@For lack of a better source of gtar.1, regenerate said using help2man, as
the previous one was seriously outdated. Provide a helpful target for the
future. Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.80 2014/02/24 08:16:56 adam Exp $
d55 4
@


1.80
log
@Changes 1.27.1:
* Bug fixes
* Fix unquoting of file names obtained via the -T option.
* Fix GNU long link header timestamp (backward compatibility).
* Fix extracting sparse members from star archives.
@
text
@d1 4
a4 1
# $NetBSD: Makefile,v 1.79 2013/11/01 12:47:39 jperkin Exp $
d8 1
d62 7
@


1.79
log
@Only create the rmt symlink if rmt is built.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.78 2012/12/31 00:25:56 sbd Exp $
d3 1
a3 1
DISTNAME=	tar-1.26
a4 1
PKGREVISION=	2
@


1.78
log
@Use ${PKGGNUDIR} and ${PKGMANDIR} where appropriate.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.77 2012/12/06 11:38:19 jperkin Exp $
d52 6
a57 3
SYMLINKS		= bin/gtar ${PKGGNUDIR}bin/tar \
			${PKGMANDIR}/man1/gtar.1 ${PKGGNUDIR}${PKGMANDIR}/man1/tar.1 \
			libexec/grmt ${PKGGNUDIR}libexec/rmt
@


1.77
log
@Add PKGGNUDIR support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.76 2012/09/11 19:46:55 asau Exp $
d25 3
a27 1
INSTALLATION_DIRS=	${PKGMANDIR}/man1 gnu/bin gnu/libexec gnu/man/man1
d53 1
a53 1
			man/man1/gtar.1 ${PKGGNUDIR}${PKGMANDIR}/man1/tar.1 \
@


1.76
log
@"user-destdir" is default these days
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.75 2012/06/01 16:43:14 cheusov Exp $
d50 3
a52 3
SYMLINKS		= bin/gtar gnu/bin/tar \
			man/man1/gtar.1 gnu/man/man1/tar.1 \
			libexec/grmt gnu/libexec/rmt
@


1.75
log
@
Add gnu/man/man1/tar.1
++pkgrevision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.74 2012/05/29 22:52:04 cheusov Exp $
a17 1
PKG_DESTDIR_SUPPORT=	user-destdir
@


1.74
log
@
Remove GNU_PROGRAM_PREFIX variable (discussed in pkgsrc-users@@).
All utilities are installed with a prefix 'g'. Symlinks with original
names are created in ${PREFIX}/gnu/bin.

++pkgrevision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.73 2012/03/15 14:18:39 fhajny Exp $
d5 1
a5 1
PKGREVISION=	1
d26 1
a26 1
INSTALLATION_DIRS=	${PKGMANDIR}/man1 gnu/bin gnu/libexec
d51 4
d58 3
a60 4
	${LN} -sf ../../bin/gtar ${DESTDIR}${PREFIX}/gnu/bin/tar
	if ${TEST} -n ${PLIST.rmt:Q}; then \
		${LN} -sf ../../libexec/grmt ${DESTDIR}${PREFIX}/gnu/libexec/rmt; \
	fi
@


1.73
log
@Fix the symlink creation (if GTAR_PROGRAM_PREFIX != "g")
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.72 2012/03/09 10:13:29 fhajny Exp $
d5 1
d26 1
a26 1
INSTALLATION_DIRS=	${PKGMANDIR}/man1
d30 1
a30 13
.if defined(GNU_PROGRAM_PREFIX) && ${GNU_PROGRAM_PREFIX} != ""
GTAR_PROGRAM_PREFIX?=	${GNU_PROGRAM_PREFIX}
.else
GTAR_PROGRAM_PREFIX?=	g
.endif

.if ${GTAR_PROGRAM_PREFIX} == "" && \
    (!defined(NBPAX_PROGRAM_PREFIX) || ${NBPAX_PROGRAM_PREFIX} == "")
# pax installs a "tar" also
CONFLICTS+=		pax-[0-9]*
.else
CONFIGURE_ARGS+=	--program-prefix=${GTAR_PROGRAM_PREFIX:Q}
.endif
a36 3
PLIST_SUBST+=		GTAR_PROGRAM_PREFIX=${GTAR_PROGRAM_PREFIX:Q}
BUILD_DEFS+=		GNU_PROGRAM_PREFIX
BUILD_DEFS+=		GTAR_PROGRAM_PREFIX
a40 4
.if ${GTAR_PROGRAM_PREFIX} != "g"
PLIST.gtar=		yes
.endif

d53 5
a57 4
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${GTAR_PROGRAM_PREFIX}tar.1
.if ${GTAR_PROGRAM_PREFIX} != "g"
	${LN} -sf ${GTAR_PROGRAM_PREFIX}tar ${DESTDIR}${PREFIX}/bin/"gtar"
.endif
@


1.72
log
@Only conflict with archivers/pax if NBPAX_PROGRAM_PREFIX empty.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.71 2011/05/11 07:49:58 adam Exp $
d73 1
a73 1
	${LN} -sf ${DESTDIR}${GTAR_PROGRAM_PREFIX}tar ${DESTDIR}${PREFIX}/bin/"gtar"
@


1.71
log
@Changes 1.26:
* Fix the --verify option, which broke in version 1.24.
* Fix storing long sparse file names in PAX archives.
* Fix correctness of --atime-preserve=replace.
* Work around POSIX incompatibilities on FreeBSD, NetBSD and Tru64.
* Fix bug with --one-file-system --listed-incremental.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.70 2011/04/22 13:42:49 obache Exp $
d35 2
a36 1
.if ${GTAR_PROGRAM_PREFIX} == ""
@


1.70
log
@recursive bump from gettext-lib shlib bump.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.69 2010/12/16 10:12:53 wiz Exp $
d3 2
a4 3
DISTNAME=	tar-1.25
PKGNAME=	gtar-base-1.25
PKGREVISION=	4
d8 1
d21 1
d23 2
a24 2
USE_PKGLOCALEDIR=	YES
GNU_CONFIGURE=		YES
a43 1

d59 1
a59 1
.if ${OPSYS} != "Interix"
@


1.69
log
@Add patch from upstream fixing test 39. Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.68 2010/12/15 22:16:25 wiz Exp $
d5 1
a5 1
PKGREVISION=	3
@


1.68
log
@Remove two patches: one disabled a test that however succeeds on
NetBSD-current and Solaris 10 (tested by tez@@), the other one was
adding a --no-unlink-first option that was added because NetBSD's
version of tar had made --unlink-first default. Since this default
was changed quite some time ago and the option never was in upstream,
remove it.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.67 2010/12/15 20:37:38 tez Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.67
log
@Fix bug with --one-file-system --listed-incremental (used by amanda)
per: http://www.mail-archive.com/bug-tar@@gnu.org/msg03019.html

Pass FORCE_UNSAFE_CONFIGURE=1 in the configure env to allow
building of this package as root.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.65 2010/03/23 19:00:10 tez Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.66
log
@Update gtar to 1.25.

version 1.25 - Sergey Poznyakoff, 2010-11-07

* Fix extraction of empty directories with the -C option in effect.
* Fix extraction of device nodes.
* Make sure name matching occurs before eventual name transformation.

Tar 1.24 changed the ordering of name matching and name transformation
so that the former saw already transformed file names.  This made it
impossible to match file names in certain cases.  It is fixed now.

* Fix the behavior of tar -x --overwrite on hosts lacking O_NOFOLLOW.

* Improve the testsuite.

* Alternative decompression programs.

If extraction from a compressed archive fails because the corresponding
compression program is not installed and the following two conditions
are met, tar retries extraction using an alternative decompressor:

 1. Another compression program supported by tar is able to handle this
 compression format.
 2. The compression program was not explicitly requested in the command
 line by the use of such options as -z, -j, etc.

For example, if `compress' is not available, tar will try `gzip'.

version 1.24 - Sergey Poznyakoff, 2010-10-24

* The --full-time option.

New command line option `--full-time' instructs tar to output file
time stamps to the full resolution.

* Bugfixes.

** More reliable directory traversal when creating archives

Tar now checks for inconsistencies caused when a file system is
modified while tar is creating an archive.  In the new approach, tar
maintains a cache of file descriptors to directories, so it uses more
file descriptors than before, but it adjusts to system limits on
the number of file descriptors.  Tar also takes more care when
a file system is modified while tar is extracting from an archive.

The new checks are implemented via the openat and related calls
standardized by POSIX.1-2008.  On an older system where these calls do
not exist or do not return useful results, tar emulates the calls at
some cost in efficiency and reliability.

** Symbolic link attributes

When extracting symbolic links, tar now restores attributes such as
last-modified time and link permissions, if the operating system
supports this.  For example, recent versions of the Linux kernel
support setting times on symlinks, and some BSD kernels also support
symlink permissions.

** --dereference consistency

The --dereference (-h) option now applies to files that are copied
into or out of archives, independently of other options.  For example,
if F is a symbolic link and archive.tar contains a regular-file member
also named F, "tar --overwrite -x -f archive.tar F" now overwrites F
itself, rather than the file that F points to.  (To overwrite the file
that F points to, add the --dereference (-h) option.)  Formerly,
--dereference was intended to apply only when using the -c option, but
the implementation was not consistent.

Also, the --dereference option no longer affects accesses to other
files, such as archives and time stamp files.  Symbolic links to these
files are always followed.  Previously, the links were usually but not
always followed.

** Spurious error diagnostics on broken pipe.

When receiving SIGPIPE, tar would exit with error status and
"write error" diagnostics. In particular, this occurred if
invoked as in the example below:

   tar tf archive.tar | head -n 1

** --remove-files

`Tar --remove-files' failed to remove a directory which contained
symlinks to another files within that directory.

** --test-label behavior

In case of a mismatch, `tar --test-label LABEL' exits with code 1,
not 2 as it did in previous versions.

The `--verbose' option used with `--test-label' provides additional
diagnostics.

Several volume labels may be specified in a command line, e.g.:

   tar --test-label -f archive 'My volume' 'New volume' 'Test volume'

In this case, tar exits with code 0 if any one of the arguments
matches the actual volume label.

** --label used with --update

The `--label' option can be used with `--update' to prevent accidental
update of an archive:

  tar -rf archive --label 'My volume' .

This did not work in previous versions, in spite of what the docs said.

** --record-size and --tape-length (-L) options

Usual size suffixes are allowed for these options.  For example,
-L10k stands for a 10 kilobyte tape length.

** Fix dead loop on extracting existing symlinks with the -k option.
@
text
@d5 1
d44 3
@


1.65
log
@Update gtar to 1.23 - fixes CVE2010-0624
Also:
# Improved record size autodetection
# Use of lseek on seekable archives
# New command line option --warning
# New command line option --level
# Improved behavior if some files were removed during incremental dumps
# Modification times of PAX extended headers
# Time references in the --pax-option argument
# Augmented environment of the --to-command script
# Bugfixes:
    * Fix handling of hard link targets by -c --transform
    * Fix hard links recognition with -c --remove-files
    * Fix restoring files from backup (debian bug #508199)
    * Correctly restore modes and permissions on existing directories
    * The --remove-files option removes files only if they were succesfully stored in the archive
    * Fix storing and listing of the volume labels in POSIX format
    * Improve algorithm for splitting long file names (ustar format)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.63 2008/05/18 01:48:09 tnn Exp $
d3 2
a4 2
DISTNAME=	tar-1.23
PKGNAME=	gtar-base-1.23
@


1.64
log
@Update to 1.22:

version 1.22 - Sergey Poznyakoff, 2009-03-05

* Support for xz compression

Tar uses xz for compression if one of the following conditions is met:

 1. The option --xz or -J (see below) is used.
 2. The xz binary is set as compressor using --use-compress-program option.
 3. The file name of the archive being created ends in `.xz' and
 auto-compress option (-a) is used.

Xz is used for decompression if one of the following conditions is met:

 1. The option --xz or -J is used.
 2. The xz binary is set as compressor using --use-compress-program option.
 3. The file is recognized as xz compressed stream data.

* Short option -J reassigned as a short equivalent of --xz

* New option -I

The -I option is assigned as a short equivalent for
--use-compress-program.

* The --no-recursive option works in incremental mode.


version 1.21 - Sergey Poznyakoff, 2008-12-27

* New short option -J

A shortcut for --lzma.

* New option --lzop

* New option --no-auto-compress

Cancels the effect of previous --auto-compress (-a) option.

* New option --no-null

Cancels the effect of previous --null option.

* Compressed format recognition

If tar is unable to determine archive compression format, it falls
back to using archive suffix to determine it.

* VCS support.

Using --exclude-vcs handles also files used internally by Bazaar,
Mercurial and Darcs.

* Transformation scope flags

Name transformation expressions understand additional flags that
control type of archive members affected by them.  The flags are:

 - r
   Apply transformation to regular archive members.

 - s
   Apply transformation to symbolic link targets.

 - h
   Apply transformation to hard link targets.

Corresponding upper-case letters negate the meaning, so that
`H' means ``do not apply transformation to hard link targets.''

The scope flags are listed in the third part of an `s' expression,
e.g.:

   tar --transform 's|^|/usr/local/|S'

Default is `rsh', which means that transformations are applied to
both regular archive members and to the targets of symbolic and hard
links.  If several transform expressions are used, the default flags
can be changed using `flags=' statement before the expressions, e.g.:

   tar --transform 'flags=S;s|^|/usr/local/|S'

* Bugfixes

** The --null option disabled handling of tar options in list files.  This
is fixed.
** Fixed record size autodetection.  If detected record size differs from
the expected value (either default, or set on the command line), tar
always prints a warning if verbosity level is set to 1 or greater,
i.e. if either -t or -v option is given.
@
text
@d3 2
a4 2
DISTNAME=	tar-1.22
PKGNAME=	gtar-base-1.22
@


1.63
log
@Update to GNU tar 1.20.
All self-tests pass under NetBSD-current.

Changes: 3.5 years worth of development; too much to list here.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.62 2008/04/12 22:42:57 jlam Exp $
d3 2
a4 2
DISTNAME=	tar-1.20
PKGNAME=	gtar-base-1.20
d12 1
@


1.62
log
@Convert to use PLIST_VARS instead of manually passing "@@comment "
through PLIST_SUBST to the plist module.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.61 2008/04/02 22:03:07 tonnerre Exp $
d3 2
a4 3
DISTNAME=	tar-1.15.1
PKGNAME=	gtar-base-1.15.1
PKGREVISION=	6
d58 5
@


1.61
log
@Fix extraneous semicolon in gtar-base which slipped into the patch
before commit. This will unbrick archive/gtar-base.
Approved-by: tnn
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.60 2008/03/31 00:39:38 tonnerre Exp $
d46 1
d51 1
a51 3
PLIST_SUBST+=		IF_BIN_GTAR=""
.else
PLIST_SUBST+=		IF_BIN_GTAR="@@comment "
d56 1
a56 3
PLIST_SUBST+=		IF_LIBEXEC_RMT=""
.else
PLIST_SUBST+=		IF_LIBEXEC_RMT="@@comment "
@


1.60
log
@Add patch for gtar-base to fix a directory traversal vulnerability
(CVE-2007-4131, pkgsrc-sec ticket #15481)
Approved-by: joerg
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.59 2007/09/08 21:57:57 jlam Exp $
d5 1
a5 1
PKGREVISION=	5
@


1.59
log
@Convert to use the features framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.58 2007/09/06 21:51:52 jlam Exp $
d5 1
a5 1
PKGREVISION=	4
@


1.58
log
@Convert all libnbcompat/buildlink3.mk references to inplace.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.57 2007/07/19 14:54:04 joerg Exp $
d19 1
a68 3
.if !empty(LOWER_OPSYS:Mirix5*)
.  include "../../pkgtools/libnbcompat/inplace.mk"	# vnsprintf()
.endif
@


1.57
log
@Add DESTDIR support. From Blair Sadewitz by mail.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2006/12/06 22:49:10 schwarz Exp $
a67 1
.include "../../mk/bsd.prefs.mk"
d69 1
a69 2
# needs vnsprintf
. include "../../pkgtools/libnbcompat/buildlink3.mk"
@


1.56
log
@
added support for IRIX 5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2006/12/03 15:21:20 tron Exp $
d16 1
d62 2
a63 2
	${INSTALL_DATA} ${FILESDIR}/gtar.1 \
		${PREFIX}/${PKGMANDIR}/man1/${GTAR_PROGRAM_PREFIX}tar.1
d65 1
a65 1
	${LN} -sf ${GTAR_PROGRAM_PREFIX}tar ${PREFIX}/bin/"gtar"
@


1.55
log
@Add Kees Cook's patch for CVE-2006-6097 taken from Ubuntu Linux.
Bump package revision.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2006/09/03 17:24:16 adrianp Exp $
d67 5
@


1.54
log
@Fix for CVE-2006-0300 via RedHat
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.53 2006/06/18 07:04:16 rillig Exp $
#
d5 1
a5 1
PKGREVISION=	3
@


1.54.2.1
log
@Pullup ticket 1929 - requested by tron
security fix for gtar-base

- pkgsrc/archivers/gtar-base/Makefile		1.55
- pkgsrc/archivers/gtar-base/distinfo		1.19
- pkgsrc/archivers/gtar-base/patches/patch-ab	1.11
- pkgsrc/archivers/gtar-base/patches/patch-ag	1.4
- pkgsrc/archivers/gtar-base/patches/patch-aj	1.1

   Module Name:	pkgsrc
   Committed By:	tron
   Date:		Sun Dec  3 15:21:20 UTC 2006

   Modified Files:
	pkgsrc/archivers/gtar-base: Makefile distinfo
	pkgsrc/archivers/gtar-base/patches: patch-ab patch-ag
   Added Files:
	pkgsrc/archivers/gtar-base/patches: patch-aj

   Log Message:
   Add Kees Cook's patch for CVE-2006-6097 taken from Ubuntu Linux.
   Bump package revision.
@
text
@d1 2
a2 1
# $NetBSD: Makefile,v 1.54 2006/09/03 17:24:16 adrianp Exp $
d6 1
a6 1
PKGREVISION=	4
@


1.53
log
@Fixed pkglint warnings.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2006/04/13 18:23:29 jlam Exp $
d6 1
a6 1
PKGREVISION=	2
@


1.53.2.1
log
@Pullup ticket 1821 - requested by adrianp
security fix for gtar

Revisions pulled up:
- pkgsrc/archivers/gtar-base/Makefile			1.54
- pkgsrc/archivers/gtar-base/distinfo			1.17
- pkgsrc/archivers/gtar-base/patches/patch-ai		1.1

   Module Name:	pkgsrc
   Committed By:	adrianp
   Date:		Sun Sep  3 17:24:16 UTC 2006

   Modified Files:
	pkgsrc/archivers/gtar-base: Makefile distinfo
   Added Files:
	pkgsrc/archivers/gtar-base/patches: patch-ai

   Log Message:
   Fix for CVE-2006-0300 via RedHat
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2006/09/03 17:24:16 adrianp Exp $
d6 1
a6 1
PKGREVISION=	3
@


1.52
log
@BUILD_USE_MSGFMT and USE_MSGFMT_PLURALS are obsolete.  Replace with
USE_TOOLS+=msgfmt.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2006/03/20 04:15:42 jlam Exp $
d4 1
a4 1
DISTNAME=       tar-1.15.1
@


1.51
log
@Add CONFLICT with gcpio (libexec/rmt).  Bump PKGREVISION to 2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2006/03/04 21:28:52 jlam Exp $
a16 2
BUILD_USES_MSGFMT=	YES

d19 1
@


1.50
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.49 2006/02/15 18:00:10 reed Exp $
d6 1
a6 1
PKGREVISION=	1
d15 2
@


1.49
log
@Use INSTALLATION_DIRS instead of INSTALL_MAN_DIR.
Use PKGMANDIR instead of hardcoded "man".
(No changes to defaults.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2006/02/05 23:08:04 joerg Exp $
d11 1
a11 1
MAINTAINER=	tech-pkg@@NetBSD.org
@


1.48
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2005/12/05 23:55:01 rillig Exp $
d21 1
a60 1
	${INSTALL_MAN_DIR} ${PREFIX}/man/man1
d62 1
a62 1
		${PREFIX}/man/man1/${GTAR_PROGRAM_PREFIX}tar.1
@


1.47
log
@Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2005/12/01 16:41:29 rillig Exp $
d6 1
@


1.46
log
@Fixed some pkglint warnings of the form:
- WARN: archivers/bzip2/Makefile:15: Please use ${CC:Q} instead of "${CC}".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2005/11/04 16:39:50 rillig Exp $
d33 1
a33 1
CONFIGURE_ARGS+=	--program-prefix=${GTAR_PROGRAM_PREFIX}
@


1.45
log
@Replaced the use of PLIST_SRC with PLIST_SUBST. Provided uniform names for
the PLIST conditionals.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2005/10/23 18:05:06 rillig Exp $
d39 1
a39 1
PLIST_SUBST+=		GTAR_PROGRAM_PREFIX=${GTAR_PROGRAM_PREFIX}
@


1.44
log
@Fixed pkglint warning by including gtar in quotes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2005/10/19 11:02:28 cube Exp $
d46 1
a46 1
PLIST_SUBST+=           GTAR_LINK=""
d48 1
a48 1
PLIST_SUBST+=           GTAR_LINK="@@comment "
d53 3
a55 1
PLIST_SRC=		${WRKSRC}/.PLIST.rmt ${PKGDIR}/PLIST
a64 3
.if ${OPSYS} != "Interix"
	${ECHO} 'libexec/${GTAR_PROGRAM_PREFIX}rmt' >${WRKSRC}/.PLIST.rmt
.endif
@


1.43
log
@Remove long gone configure options.  PR#31863 by Sergey Svishchev.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2005/04/11 21:44:48 tv Exp $
d61 1
a61 1
	${LN} -sf ${GTAR_PROGRAM_PREFIX}tar ${PREFIX}/bin/gtar
@


1.42
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2005/01/16 22:28:40 tv Exp $
a35 1
CONFIGURE_ARGS+=	--with-catgets
@


1.41
log
@The make rule worked and then didn't work, so make this work again on
NetBSD et al by putting the dynamic PLIST component in post-install.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2005/01/16 04:44:50 tv Exp $
a17 1
USE_BUILDLINK3=		YES
@


1.40
log
@Make this build on Interix.  (Apparently the sysexits.h override operation
in configure.ac was a little backwards....)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2005/01/09 22:52:13 recht Exp $
d65 3
a67 3

${WRKSRC}/.PLIST.rmt:
	${ECHO} 'libexec/${GTAR_PROGRAM_PREFIX}rmt' >$@@
@


1.39
log
@update to gtar 1.15.1

changes:
- enable installation of grmt

changes in gtar:
version 1.15.1 - Sergey Poznyakoff, 2004-12-21

This version fixes a bug introduced in 1.15 which caused
tar to refuse to extract files from standard input.

version 1.15 - Sergey Poznyakoff, 2004-12-20

* Compressed archives are recognised automatically, it is no longer
necessary to specify -Z, -z, or -j options to read them. Thus, you can
now run `tar tf archive.tar.gz'.

* When restoring incremental dumps, --one-file-system option
prevents directory hierarchies residing on different devices
from being purged.

With the previous versions of tar it was dangerous to create
incremental dumps with --one-file-system option, since they
would recursively remove mount points when restoring from the
back up. This change fixes the bug.

* Renamed --strip-path to --strip-components for consistency with
the GNU convention.

* Skipping archive members is sped up if the archive media supports
seeks.

* Restore script starts restoring only if it is given --all (-a) option,
or some patterns. This is to prevent accidental restores.

* `tar --verify' prints a warning if during archive creation some of
the file names had their prefixes stripped off.

* New option --exclude-caches instructs tar to exclude cache directories
automatically on archive creation. Cache directories are those
containing a standardized tag file, as specified at:

	http://www.brynosaurus.com/cachedir/spec.html

* New configure option --with-rmt allows to specify full path name to
the `rmt' utility. This supercedes DEFAULT_RMT_COMMAND variable
introduced in version 1.14

* New configure variable DEFAULT_RMT_DIR allows to specify the directory
where to install `rmt' utility. This is necessary since modifying
--libexecdir as was suggested for version 1.14 produced a side effect: it
also modified installation prefix for backup scripts (if
--enable-backup-scripts was given).

* Bugfixes:
** Fixed flow in recognizing files to be included in incremental dumps.
** Correctly recognize sparse archive members when used with -T option.
** GNU multivolume headers cannot store filenames longer than 100 characters.
Do not allow multivolume archives to begin with such filenames.
** If a member with link count > 2 was stored in the archive twice,
previous versions of tar were not able to extract it, since they
were trying to link the file to itself, which always failed and
lead to removing the already extracted copy. Preserve the first
extracted copy in such cases.
** Restore script was passing improper argument to tar --listed option (which
didn't affect the functionality, but was logically incorrect).
** Fixed verification of created archives.
** Fixed unquoting of file names containing backslash escapes (previous
versions failed to recognize \a and \v).
** When attempting to delete a non-existing member from the archive, previous
versions of tar used to overwrite last archive block with zeroes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2004/10/02 22:40:24 recht Exp $
d53 5
d66 3
@


1.38
log
@Add dependency on gettext-lib to fix the build on Darwin.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2004/09/27 16:12:04 wiz Exp $
d4 2
a5 2
DISTNAME=       tar-1.14
PKGNAME=	gtar-base-1.14
@


1.37
log
@Update gtar packages to 1.14:

XXX: man page not updated (didn't find new version of suse
gtar man page which we're using in the package)

version 1.14 - Sergey Poznyakoff, 2004-05-11

* Added support for POSIX.1-2001 and ustar archive formats.
* New option --format allows to select the output archive format
* The default output format can be selected at configuration time
  by presetting the environment variable DEFAULT_ARCHIVE_FORMAT.
  Allowed values are GNU, V7, OLDGNU and POSIX.
* New option --strip-path allows to cut off a given number of
  path elements from the name of the file being extracted.

* New options --index-file, --no-overwrite-dir.  The --overwrite-dir
  option is now the default; use --no-overwrite-dir if you prefer
  the previous default behavior.

* The semantics of -o option is changed. When extracting, it
  does the same as --no-same-owner GNU tar option. This is compatible
  with UNIX98 tar. Otherwise, its effect is the same as that of
  --old-archive option. This latter is deprecated and will be removed
  in future.

* New option --check-links prints a message if not all links are dumped
  for a file being archived. This corresponds to the UNIX98 -l option.
  The current semantics of the -l option is retained for compatibility
  with previous releases, however such usage is strongly deprecated as
  the option will change to its UNIX98 semantics in the future releases.

* New option --occurrence[=N] can be used in conjunction with one of
  the subcommands --delete, --diff, --extract or --list when a list of
  files is given either on the command line or via -T option. This
  option instructs tar to process only the Nth occurrence of each named
  file. N defaults to 1, so `tar -x -f archive --occurrence filename'
  extracts the first occurrence of `filename' from `archive'
  and terminates without scanning to the end of the archive.

* New option --pax-option allows to control the handling of POSIX
  keywords in `pax' extended headers. It is equivalent to `pax'
  -o option.

* --incremental and --listed-incremental options work correctly on
  individual files, as well as on directories.

* New scripts: backup (replaces old level-0 and level-1) and restore.
The scripts are compiled and installed if --enable-backup-scripts
option is given to configure.

* By default tar searches "rmt" utility in "$prefix/libexec/rmt",
which is consistent with the location where the version of "rmt"
included in the package is installed. Previous versions of tar
used "/etc/rmt". To install "rmt" to its traditional location,
run configure with option --libexecdir=/etc. Otherwise, if you
already have rmt installed and wish to use it, instead of the
shipped in version, set the variable DEFAULT_RMT_COMMAND to
the full path name of the utility, e.g. ./configure
DEFAULT_RMT_COMMAND=/etc/rmt.

Notice also that the full path name of the "rmt" utility to
use can be set at runtime, by giving option --rmt-command to
tar.

* Removed obsolete command line options:
** --absolute-paths superseded by --absolute-names
** --block-compress is not needed any longer
** --block-size superseded by --blocking-factor
** --modification-time superseded by --touch
** --read-full-blocks superseded by --read-full-records
** --record-number superseded by --block-number
** --version-control superseded by --backup

* New message translations fi (Finnish), gl (Galician), hr (Croatian),
  hu (Hungarian), ms (Malaysian), nb (Norwegian), ro (Romanian), sk
  (Slovak), zh_CN (Chinese simplified), zh_TW (Chinese traditional).
  The code 'no' for Norwegian (Bokmål) has been withdrawn; use 'nb' instead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2004/06/02 23:20:55 heinz Exp $
d61 1
@


1.36
log
@Add TEST_TARGET
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2004/05/18 11:58:04 recht Exp $
d4 2
a5 3
DISTNAME=       tar-1.13.25
PKGNAME=	gtar-base-1.13.25
PKGREVISION=	2
d8 1
a8 3
MASTER_SITES=	ftp://alpha.gnu.org/gnu/tar/ \
		ftp://ftp.sunsite.org.uk/Mirrors/alpha.gnu.org/gnu/tar/ \
		ftp://ftp.funet.fi/pub/mirrors/alpha.gnu.org/gnu/tar/
d14 2
a16 1
BUILD_USES_MSGFMT=	YES
d38 3
a52 3
post-patch:
	@@${TOUCH} ${WRKSRC}/po/fr.po

@


1.35
log
@Enable pkgviews installation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2004/04/05 18:38:43 reed Exp $
d44 2
@


1.34
log
@If GNU_PROGRAM_PREFIX is not "g" or not set, then still install
with "g" prefix.  Allow this to be optionally forced by defining
GTAR_PROGRAM_PREFIX.  If GTAR_PROGRAM_PREFIX is set to nothing,
then conflict with pax, because both install a "tar".

So now the default is to install as "gtar" even if GNU_PROGRAM_PREFIX
is set to "".

Bump package revision for this.

This is for part of my PR #22693.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2004/03/11 18:03:49 xtraeme Exp $
d17 1
d54 1
@


1.33
log
@bl3ify
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2003/07/17 21:21:15 grant Exp $
d6 1
a6 1
PKGREVISION=	1
d25 4
a28 2
.if defined(GNU_PROGRAM_PREFIX)
CONFIGURE_ARGS+=	--program-prefix=${GNU_PROGRAM_PREFIX}
d30 8
d39 1
a39 1
PLIST_SUBST+=		GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
d41 1
d43 1
a43 1
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
d54 3
a56 3
		${PREFIX}/man/man1/${GNU_PROGRAM_PREFIX}tar.1
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
	${LN} -sf ${GNU_PROGRAM_PREFIX}tar ${PREFIX}/bin/gtar
@


1.32
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2003/06/02 01:21:49 jschauma Exp $
d19 1
a19 1
USE_BUILDLINK2=		YES
@


1.31
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.30 2003/05/23 22:24:16 wiz Exp $
d13 1
a13 1
MAINTAINER=	tech-pkg@@netbsd.org
@


1.30
log
@Add BUILD_USES_MSGFMT, noted missing by Jeremy C. Reed in PR 20916.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2003/04/22 20:25:08 wiz Exp $
d13 1
a13 1
MAINTAINER=	packages@@netbsd.org
@


1.29
log
@Use ${LN} -sf to create symlinks.
Closes PR 21263 by Jeremy C. Reed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2003/02/13 17:41:37 grant Exp $
d16 2
@


1.28
log
@- remove unnecessary if(OPSYS == Darwin), as this is handled
  automatically.
- use ${TOUCH} to create empty file, not ${ECHO} '' > filename...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2003/01/21 09:29:45 wiz Exp $
d43 1
a43 1
	${LN} -s ${GNU_PROGRAM_PREFIX}tar ${PREFIX}/bin/gtar
@


1.27
log
@Bump PKGREVISION for last change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2003/01/20 23:23:57 jschauma Exp $
a29 5
.if ${OPSYS} == "Darwin"
PLIST_SRC=	${.CURDIR}/PLIST.Darwin
EXTRACT_SUFX=	.tar.gz
.endif

d37 1
a37 1
	@@${ECHO} '' >>${WRKSRC}/po/fr.po
@


1.26
log
@As suggested by wiz:
Make sure a ${PREFIX}/bin/gtar exists independent of ${GNU_PROGRAM_PREFIX},
since it's needed for pkgsrc, and make pkgsrc use ${PREFIX}/bin/gtar.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2002/12/22 17:15:33 wiz Exp $
d6 1
@


1.25
log
@'files/gtar.1' does not change name depending on GNU_PROGRAM_PREFIX;
noted by Jeremy C. Reed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2002/12/22 01:34:38 wiz Exp $
d34 6
d46 3
@


1.24
log
@Use GNU_PROGRAM_PREFIX. Based on patch by Jeremy C. Reed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2002/11/30 11:16:19 salo Exp $
d38 1
a38 1
	${INSTALL_DATA} ${FILESDIR}/${GNU_PROGRAM_PREFIX}tar.1 \
@


1.23
log
@USE_PKGLOCALEDIR, remove unnecessary patches.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2002/11/22 12:05:05 bouyer Exp $
d20 5
a24 1
CONFIGURE_ARGS+=	--program-prefix=g
d26 2
a27 2

.include "../../mk/bsd.prefs.mk"
d38 2
a39 1
	${INSTALL_DATA} ${FILESDIR}/gtar.1 ${PREFIX}/man/man1/gtar.1
@


1.22
log
@Honnor ${PKGLOCALEDIR}
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2002/11/20 16:57:54 bouyer Exp $
d17 1
d19 3
a21 3
MAKE_ENV+=		PKGLOCALEDIR=${PKGLOCALEDIR}
CONFIGURE_ARGS+=	--program-prefix=g --with-catgets
CONFIGURE_ENV+=		PKGLOCALEDIR=${PKGLOCALEDIR}
@


1.21
log
@Update gtar packages to 1.13.25, with security fixes from redhat.
Summary of changes (see NEWS and Changelog from the distribution for details):
- don't allow absolute paths, and path containing ../
* New option --overwrite-dir
* New option --recursion (the default) that is the inverse of --no-recursion.
* New options --anchored, --ignore-case, --wildcards,
  --wildcards-match-slash, and their negations (e.g., --no-anchored).
  Along with --recursion and --no-recursion, these options control how
  exclude patterns are interpreted.
* The default interpretation of exclude patterns is now --no-anchored
  --no-ignore-case --recursion --wildcards --wildcards-match-slash.
* The --no-recursion option now affects extraction too.
* New options --no-same-owner, --no-same-permissions.
* New option -y or --bzip2 for bzip2 compression, by popular request.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2002/08/25 21:49:06 jlam Exp $
d18 1
@


1.20
log
@Merge packages from the buildlink2 branch back into the main trunk that
have been converted to USE_BUILDLINK2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19.2.2 2002/06/21 23:04:43 jlam Exp $
d4 2
a5 2
DISTNAME=       tar-1.12
PKGNAME=	gtar-base-1.12
d8 3
a10 2
MASTER_SITES=   ${MASTER_SITE_GNU:=tar/}
EXTRACT_SUFX=	.shar.gz
d23 1
a23 3
.if ${OPSYS} == "NetBSD"
PLIST_SRC=	${.CURDIR}/PLIST.NetBSD
.elif ${OPSYS} == "Darwin"
@


1.19
log
@Use auto-extract code for .shar files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2001/12/27 21:50:56 agc Exp $
d9 1
d15 4
a18 2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS= --program-prefix=g --with-catgets
d22 5
a26 17
.if ${OPSYS} != "Darwin"
EXTRACT_SUFX=	.shar.gz
.endif

.if (${OPSYS} != "NetBSD")
PLIST_SRC=	${WRKDIR}/PLIST

post-configure:
	@@${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile

pre-install:
	-${RM} -f ${PLIST_SRC}
.  if ${OPSYS} == "Darwin"
	${CP} ${PKGDIR}/PLIST.Darwin ${PLIST_SRC}
.  else
	${CAT} ${PKGDIR}/PLIST | ${SED} -e 's/cat$$/mo/' > ${PLIST_SRC}
.  endif
d33 1
a33 1
	${INSTALL_DATA} ${FILESDIR}/gtar.1 ${PREFIX}/man/man1/
@


1.19.8.1
log
@Update gtar* to 1.13.25 on the netbsd-1-6 pkgsrc branch, for security
reasons.

Requested by Manuel Bouyer.

The files are synced with the following revisions, with changes necessary
for the 1.6 pkgsrc environnement (USE_BUILDLINK2, USE_PKGLOCALEDIR).

gtar/Makefile           1.17
gtar-base/Makefile      1.23
gtar-base/PLIST         1.3
gtar-base/distinfo      1.8
gtar-base/files/gtar.1  1.3
gtar-base/patches/patch-aa 1.5
gtar-base/patches/patch-ab 1.8
gtar-base/patches/patch-ac removed
gtar-base/patches/patch-ad removed
gtar-base/patches/patch-ae 1.4
gtar-base/patches/patch-af 1.1 (new file)
gtar-base/patches/patch-ag 1.1 (new file)
gtar-info/Makefile      1.8
gtar-info/PLIST         1.3
gtar-info/distinfo      1.3
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2002/11/30 11:16:19 salo Exp $
d4 2
a5 2
DISTNAME=       tar-1.13.25
PKGNAME=	gtar-base-1.13.25
d8 1
a8 3
MASTER_SITES=	ftp://alpha.gnu.org/gnu/tar/ \
		ftp://ftp.sunsite.org.uk/Mirrors/alpha.gnu.org/gnu/tar/ \
		ftp://ftp.funet.fi/pub/mirrors/alpha.gnu.org/gnu/tar/
d14 2
a15 1
GNU_CONFIGURE=		YES
d17 5
a21 2
CONFIGURE_ARGS+=	--program-prefix=g
CONFIGURE_ARGS+=	--with-catgets
d23 5
a27 1
.include "../../mk/bsd.prefs.mk"
d29 7
a35 3
.if ${OPSYS} == "Darwin"
PLIST_SRC=	${.CURDIR}/PLIST.Darwin
EXTRACT_SUFX=	.tar.gz
d42 1
a42 1
	${INSTALL_DATA} ${FILESDIR}/gtar.1 ${PREFIX}/man/man1/gtar.1
@


1.19.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.19 2002/01/27 18:32:32 jlam Exp $
a8 1
EXTRACT_SUFX=	.shar.gz
d14 2
a15 4
USE_BUILDLINK2_ONLY=	YES
GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--program-prefix=g --with-catgets
CONFIGURE_ENV+=		PKGLOCALEDIR=${PKGLOCALEDIR}
d19 17
a35 5
.if ${OPSYS} == "NetBSD"
PLIST_SRC=	${.CURDIR}/PLIST.NetBSD
.elif ${OPSYS} == "Darwin"
PLIST_SRC=	${.CURDIR}/PLIST.Darwin
EXTRACT_SUFX=	.tar.gz
d42 1
a42 1
	${INSTALL_DATA} ${FILESDIR}/gtar.1 ${PREFIX}/man/man1/gtar.1
@


1.19.2.2
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.19.2.1 2002/05/11 02:08:49 jlam Exp $
d15 1
a15 1
USE_BUILDLINK2=		YES
@


1.18
log
@On Darwin, use tar-1.12.tar.gz, rather than the shar format archive,
since this shows up problems on NFS-mounted pkgsrc archives on Darwin.

On Darwin, don't try to make the po message files, since msgfmt doesn't
yet exist.

These changes allow bootstrapping the gtar-base package on Darwin.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2001/10/19 09:02:38 veego Exp $
a20 1
EXTRACT_CMD=	${DECOMPRESS_CMD} ${DOWNLOADED_DISTFILE} | ${SH}
@


1.17
log
@Touch some files in ${WRKSRC}, which is needed because the timestamps
are out of order and so autoconf would regnerate these files.
This change is only needed in the ${OPSYS} != "NetBSD" case.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2001/10/18 15:20:01 veego Exp $
a8 1
EXTRACT_SUFX=	.shar.gz
a13 2
EXTRACT_CMD=	${DECOMPRESS_CMD} ${DOWNLOADED_DISTFILE} | ${SH}

d19 5
d31 6
a36 2
	-${RM} -f ${WRKDIR}/PLIST
	${CAT} ${PKGDIR}/PLIST | ${SED} -e 's/cat$$/mo/' > ${WRKDIR}/PLIST
@


1.16
log
@SVR4 packages have a limit of 9 chars for a package name.
The automatic truncation in gensolpkg doesn't work for packages which
have the same package name for the first 5-6 chars.
e.g. amanda-server and amanda-client would be named amanda and amanda.
Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for
amanda-server.
All svr4 packages also have a vendor tag, so we have to reserve some chars
for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6
or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the
vendor tag enough room.
All p5-* packages and a few other packages have now a SVR4_PKGNAME.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2001/02/16 13:15:28 wiz Exp $
d25 3
a30 1

@


1.15
log
@Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 1999/09/18 15:07:29 kim Exp $
d6 1
@


1.14
log
@Change package name to gtar-base
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 1999/09/18 14:49:08 kim Exp $
d12 1
@


1.13
log
@Copied from Makefile,v
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 1999/04/14 21:39:01 tron Exp $
d5 1
a5 1
PKGNAME=	gtar-1.12
@


1.12
log
@Changes to allow bootstrapping Zoularis:
- fetch the shar file so we don't need tar
- do not install info files (they will be a separate pkg), as we need
  tar to unpack the gtexinfo distribution
- on Solaris we get .mo files instead of .cat files (I'm guessing for
  Linux, please someone verify and adjust Makefile appropriately)
@
text
@@


1.11
log
@Remove unnecessary slash from master site list.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 1999/03/22 16:08:31 bad Exp $
d8 1
d13 1
a13 1
USE_GTEXINFO=	yes
d17 11
@


1.10
log
@Catch up with MASTER_SITE_GNU reorganization.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 1998/08/20 15:16:35 tsarna Exp $
d7 1
a7 1
MASTER_SITES=   ${MASTER_SITE_GNU:=/tar/}
@


1.9
log
@The Grand Homepagification:
	- New, optional Makefile variable HOMEPAGE, specifies a URL for
	  the home page of the software if it has one.
	- The value of HOMEPAGE is used to add a link from the
	  README.html files.
	- pkglint updated to know about it.  The "correct" location for
	  HOMEPAGE in the Makefile is after MAINTAINER, in that same
	  section.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 1998/08/15 00:12:10 tv Exp $
d7 1
a7 1
MASTER_SITES=   ${MASTER_SITE_GNU}
@


1.8
log
@Change to use catgets.  hier(7)-lint: install locale stuff in
share/locale instead of lib/locale.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1998/06/18 16:06:37 agc Exp $
d10 1
@


1.7
log
@Update package Makefiles for automatic manual page handling.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 1998/04/17 09:37:22 agc Exp $
d14 4
a17 1
CONFIGURE_ARGS= --program-prefix=g
@


1.6
log
@Introduce USE_GTEXINFO and INFO_FILES definitions to bsd.pkg.mk, and use them.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1998/04/15 10:38:08 agc Exp $
a14 2

MAN1=		gtar.1
@


1.5
log
@Use the bsd.pkg.mk and bsd.pkg.subdir.mk files in the pkgsrc tree.
Remove redundant (and sometimes erroneous) comments.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1998/03/10 11:57:27 frueauf Exp $
d11 1
a11 4
OPSYS!= uname -s
.if (${OPSYS} == "NetBSD")
BUILD_DEPENDS=	${PREFIX}/bin/install-info:${PORTSDIR}/devel/gtexinfo
.endif
d13 1
a13 1
GNU_CONFIGURE=yes
d16 1
a16 1
MAN1=	gtar.1
@


1.4
log
@portlint: files->${FILESDIR}.
@
text
@d1 1
a1 6
# New ports collection makefile for:	gtar
# Version required:     1.12
# Date created:		1 March 1998
# Whom:			tv@@netbsd.org
#
# $NetBSD: Makefile,v 1.3 1998/03/05 20:09:46 tv Exp $
d24 1
a24 1
.include <bsd.port.mk>
@


1.3
log
@Oops, these are category "archivers", not "devel".
@
text
@d6 1
a6 1
# $NetBSD: Makefile,v 1.2 1998/03/04 15:14:26 tv Exp $
d27 1
a27 1
	${INSTALL_DATA} files/gtar.1 ${PREFIX}/man/man1/
@


1.2
log
@Now, how did that version number get left out of the comments?
@
text
@d6 1
a6 1
# $NetBSD: Makefile,v 1.1.1.1 1998/03/04 14:57:13 tv Exp $
d11 1
a11 1
CATEGORIES=	devel
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# Version required:     
d6 1
a6 1
# $NetBSD$
@


1.1.1.1
log
@Import of GNU tar pkg, not yet enabled in archivers/Makefile until
pax-tar work is complete.
@
text
@@
