head	1.53;
access;
symbols
	pkgsrc-2026Q1:1.53.0.8
	pkgsrc-2026Q1-base:1.53
	pkgsrc-2025Q4:1.53.0.6
	pkgsrc-2025Q4-base:1.53
	pkgsrc-2025Q3:1.53.0.4
	pkgsrc-2025Q3-base:1.53
	pkgsrc-2025Q2:1.53.0.2
	pkgsrc-2025Q2-base:1.53
	pkgsrc-2025Q1:1.52.0.16
	pkgsrc-2025Q1-base:1.52
	pkgsrc-2024Q4:1.52.0.14
	pkgsrc-2024Q4-base:1.52
	pkgsrc-2024Q3:1.52.0.12
	pkgsrc-2024Q3-base:1.52
	pkgsrc-2024Q2:1.52.0.10
	pkgsrc-2024Q2-base:1.52
	pkgsrc-2024Q1:1.52.0.8
	pkgsrc-2024Q1-base:1.52
	pkgsrc-2023Q4:1.52.0.6
	pkgsrc-2023Q4-base:1.52
	pkgsrc-2023Q3:1.52.0.4
	pkgsrc-2023Q3-base:1.52
	pkgsrc-2023Q2:1.52.0.2
	pkgsrc-2023Q2-base:1.52
	pkgsrc-2023Q1:1.51.0.2
	pkgsrc-2023Q1-base:1.51
	pkgsrc-2022Q4:1.50.0.12
	pkgsrc-2022Q4-base:1.50
	pkgsrc-2022Q3:1.50.0.10
	pkgsrc-2022Q3-base:1.50
	pkgsrc-2022Q2:1.50.0.8
	pkgsrc-2022Q2-base:1.50
	pkgsrc-2022Q1:1.50.0.6
	pkgsrc-2022Q1-base:1.50
	pkgsrc-2021Q4:1.50.0.4
	pkgsrc-2021Q4-base:1.50
	pkgsrc-2021Q3:1.50.0.2
	pkgsrc-2021Q3-base:1.50
	pkgsrc-2021Q2:1.49.0.2
	pkgsrc-2021Q2-base:1.49
	pkgsrc-2021Q1:1.47.0.2
	pkgsrc-2021Q1-base:1.47
	pkgsrc-2020Q4:1.45.0.12
	pkgsrc-2020Q4-base:1.45
	pkgsrc-2020Q3:1.45.0.10
	pkgsrc-2020Q3-base:1.45
	pkgsrc-2020Q2:1.45.0.8
	pkgsrc-2020Q2-base:1.45
	pkgsrc-2020Q1:1.45.0.4
	pkgsrc-2020Q1-base:1.45
	pkgsrc-2019Q4:1.45.0.6
	pkgsrc-2019Q4-base:1.45
	pkgsrc-2019Q3:1.45.0.2
	pkgsrc-2019Q3-base:1.45
	pkgsrc-2019Q2:1.43.0.2
	pkgsrc-2019Q2-base:1.43
	pkgsrc-2019Q1:1.42.0.2
	pkgsrc-2019Q1-base:1.42
	pkgsrc-2018Q4:1.41.0.6
	pkgsrc-2018Q4-base:1.41
	pkgsrc-2018Q3:1.41.0.4
	pkgsrc-2018Q3-base:1.41
	pkgsrc-2018Q2:1.41.0.2
	pkgsrc-2018Q2-base:1.41
	pkgsrc-2018Q1:1.39.0.10
	pkgsrc-2018Q1-base:1.39
	pkgsrc-2017Q4:1.39.0.8
	pkgsrc-2017Q4-base:1.39
	pkgsrc-2017Q3:1.39.0.6
	pkgsrc-2017Q3-base:1.39
	pkgsrc-2017Q2:1.39.0.2
	pkgsrc-2017Q2-base:1.39
	pkgsrc-2017Q1:1.38.0.18
	pkgsrc-2017Q1-base:1.38
	pkgsrc-2016Q4:1.38.0.16
	pkgsrc-2016Q4-base:1.38
	pkgsrc-2016Q3:1.38.0.14
	pkgsrc-2016Q3-base:1.38
	pkgsrc-2016Q2:1.38.0.12
	pkgsrc-2016Q2-base:1.38
	pkgsrc-2016Q1:1.38.0.10
	pkgsrc-2016Q1-base:1.38
	pkgsrc-2015Q4:1.38.0.8
	pkgsrc-2015Q4-base:1.38
	pkgsrc-2015Q3:1.38.0.6
	pkgsrc-2015Q3-base:1.38
	pkgsrc-2015Q2:1.38.0.4
	pkgsrc-2015Q2-base:1.38
	pkgsrc-2015Q1:1.38.0.2
	pkgsrc-2015Q1-base:1.38
	pkgsrc-2014Q4:1.37.0.2
	pkgsrc-2014Q4-base:1.37
	pkgsrc-2014Q3:1.36.0.6
	pkgsrc-2014Q3-base:1.36
	pkgsrc-2014Q2:1.36.0.4
	pkgsrc-2014Q2-base:1.36
	pkgsrc-2014Q1:1.36.0.2
	pkgsrc-2014Q1-base:1.36
	pkgsrc-2013Q4:1.34.0.12
	pkgsrc-2013Q4-base:1.34
	pkgsrc-2013Q3:1.34.0.10
	pkgsrc-2013Q3-base:1.34
	pkgsrc-2013Q2:1.34.0.8
	pkgsrc-2013Q2-base:1.34
	pkgsrc-2013Q1:1.34.0.6
	pkgsrc-2013Q1-base:1.34
	pkgsrc-2012Q4:1.34.0.4
	pkgsrc-2012Q4-base:1.34
	pkgsrc-2012Q3:1.34.0.2
	pkgsrc-2012Q3-base:1.34
	pkgsrc-2012Q2:1.33.0.2
	pkgsrc-2012Q2-base:1.33
	pkgsrc-2012Q1:1.32.0.10
	pkgsrc-2012Q1-base:1.32
	pkgsrc-2011Q4:1.32.0.8
	pkgsrc-2011Q4-base:1.32
	pkgsrc-2011Q3:1.32.0.6
	pkgsrc-2011Q3-base:1.32
	pkgsrc-2011Q2:1.32.0.4
	pkgsrc-2011Q2-base:1.32
	pkgsrc-2011Q1:1.32.0.2
	pkgsrc-2011Q1-base:1.32
	pkgsrc-2010Q4:1.31.0.2
	pkgsrc-2010Q4-base:1.31
	pkgsrc-2010Q3:1.29.0.6
	pkgsrc-2010Q3-base:1.29
	pkgsrc-2010Q2:1.29.0.4
	pkgsrc-2010Q2-base:1.29
	pkgsrc-2010Q1:1.29.0.2
	pkgsrc-2010Q1-base:1.29
	pkgsrc-2009Q4:1.25.0.2
	pkgsrc-2009Q4-base:1.25
	pkgsrc-2009Q3:1.24.0.4
	pkgsrc-2009Q3-base:1.24
	pkgsrc-2009Q2:1.24.0.2
	pkgsrc-2009Q2-base:1.24
	pkgsrc-2009Q1:1.22.0.2
	pkgsrc-2009Q1-base:1.22
	pkgsrc-2008Q4:1.21.0.10
	pkgsrc-2008Q4-base:1.21
	pkgsrc-2008Q3:1.21.0.8
	pkgsrc-2008Q3-base:1.21
	cube-native-xorg:1.21.0.6
	cube-native-xorg-base:1.21
	pkgsrc-2008Q2:1.21.0.4
	pkgsrc-2008Q2-base:1.21
	cwrapper-base:1.21
	cwrapper:1.21.0.2
	pkgsrc-2008Q1:1.18.0.2
	pkgsrc-2008Q1-base:1.18
	pkgsrc-2007Q4:1.15.0.2
	pkgsrc-2007Q4-base:1.15
	pkgsrc-2007Q3:1.14.0.2
	pkgsrc-2007Q3-base:1.14
	pkgsrc-2007Q2:1.10.0.2
	pkgsrc-2007Q2-base:1.10
	pkgsrc-2007Q1:1.4.0.2
	pkgsrc-2007Q1-base:1.4
	pkgsrc-2006Q4:1.3.0.2
	pkgsrc-2006Q4-base:1.3
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.53
date	2025.04.20.22.35.47;	author js;	state Exp;
branches;
next	1.52;
commitid	TsY0766psQfogQRF;

1.52
date	2023.06.03.11.54.23;	author gdt;	state Exp;
branches;
next	1.51;
commitid	LoYLsvSTsinOMurE;

1.51
date	2023.03.05.20.23.58;	author triaxx;	state Exp;
branches;
next	1.50;
commitid	Lr4TyUioMgpHvYfE;

1.50
date	2021.06.28.19.33.23;	author mcf;	state Exp;
branches;
next	1.49;
commitid	hoI0x3dzEOILZVYC;

1.49
date	2021.04.22.08.54.18;	author pho;	state Exp;
branches;
next	1.48;
commitid	OI3yNvSPS0ClCgQC;

1.48
date	2021.04.13.17.51.21;	author rhialto;	state Exp;
branches;
next	1.47;
commitid	rbti5WKiAjurS9PC;

1.47
date	2021.01.15.10.56.52;	author tnn;	state Exp;
branches;
next	1.46;
commitid	cfCrJH47KsIPoODC;

1.46
date	2021.01.09.19.12.46;	author rhialto;	state Exp;
branches;
next	1.45;
commitid	nkve3h1mLSPDl5DC;

1.45
date	2019.08.27.19.30.36;	author gdt;	state Exp;
branches;
next	1.44;
commitid	0GTlnsERouM5yHAB;

1.44
date	2019.07.29.14.48.17;	author gdt;	state Exp;
branches;
next	1.43;
commitid	emxHrkjoC2tZUWwB;

1.43
date	2019.04.26.18.14.15;	author gdt;	state Exp;
branches;
next	1.42;
commitid	NNGVnz1OscWI4TkB;

1.42
date	2019.03.23.17.20.31;	author gdt;	state Exp;
branches;
next	1.41;
commitid	RatJ7b1CfIweSvgB;

1.41
date	2018.05.06.18.06.18;	author gdt;	state Exp;
branches;
next	1.40;
commitid	d5AUcefTRJm5rgBA;

1.40
date	2018.04.07.11.04.30;	author gson;	state Exp;
branches;
next	1.39;
commitid	SFmH5NgXGmSN2vxA;

1.39
date	2017.03.31.07.10.58;	author tron;	state Exp;
branches;
next	1.38;
commitid	I8BWapi2r454IFLz;

1.38
date	2015.02.12.08.22.16;	author abs;	state Exp;
branches;
next	1.37;
commitid	A5Gdzbk178a57H9y;

1.37
date	2014.10.09.14.06.50;	author wiz;	state Exp;
branches;
next	1.36;
commitid	fBDATFVmQ3454xTx;

1.36
date	2014.03.03.04.50.47;	author obache;	state Exp;
branches;
next	1.35;
commitid	VFB7fupZHnQg4drx;

1.35
date	2014.03.03.03.30.54;	author obache;	state Exp;
branches;
next	1.34;
commitid	RGe4yMnOqcXLCcrx;

1.34
date	2012.09.11.23.19.37;	author asau;	state Exp;
branches;
next	1.33;

1.33
date	2012.04.30.13.59.38;	author gdt;	state Exp;
branches;
next	1.32;

1.32
date	2011.03.22.04.04.58;	author obache;	state Exp;
branches;
next	1.31;

1.31
date	2010.12.20.15.39.09;	author gdt;	state Exp;
branches;
next	1.30;

1.30
date	2010.12.20.15.24.24;	author gdt;	state Exp;
branches;
next	1.29;

1.29
date	2010.02.11.12.07.33;	author tnn;	state Exp;
branches;
next	1.28;

1.28
date	2010.02.01.19.06.42;	author sno;	state Exp;
branches;
next	1.27;

1.27
date	2010.02.01.10.28.45;	author sno;	state Exp;
branches;
next	1.26;

1.26
date	2010.02.01.09.33.21;	author sno;	state Exp;
branches;
next	1.25;

1.25
date	2009.11.13.19.40.55;	author sno;	state Exp;
branches;
next	1.24;

1.24
date	2009.06.17.08.12.18;	author tnn;	state Exp;
branches;
next	1.23;

1.23
date	2009.04.09.00.48.13;	author joerg;	state Exp;
branches;
next	1.22;

1.22
date	2009.02.10.00.16.01;	author joerg;	state Exp;
branches;
next	1.21;

1.21
date	2008.06.22.12.49.53;	author gdt;	state Exp;
branches;
next	1.20;

1.20
date	2008.06.08.17.29.01;	author gdt;	state Exp;
branches;
next	1.19;

1.19
date	2008.05.02.19.04.03;	author apb;	state Exp;
branches;
next	1.18;

1.18
date	2008.03.31.11.41.09;	author gdt;	state Exp;
branches;
next	1.17;

1.17
date	2008.02.17.10.47.47;	author apb;	state Exp;
branches;
next	1.16;

1.16
date	2008.01.11.13.29.37;	author gdt;	state Exp;
branches;
next	1.15;

1.15
date	2007.12.02.02.11.05;	author tnn;	state Exp;
branches;
next	1.14;

1.14
date	2007.08.17.01.19.45;	author gdt;	state Exp;
branches;
next	1.13;

1.13
date	2007.08.08.11.28.04;	author tnn;	state Exp;
branches;
next	1.12;

1.12
date	2007.08.06.15.07.56;	author tnn;	state Exp;
branches;
next	1.11;

1.11
date	2007.08.03.00.55.08;	author tnn;	state Exp;
branches;
next	1.10;

1.10
date	2007.06.29.18.18.37;	author tnn;	state Exp;
branches;
next	1.9;

1.9
date	2007.06.29.17.00.44;	author tnn;	state Exp;
branches;
next	1.8;

1.8
date	2007.05.23.18.11.05;	author tnn;	state Exp;
branches;
next	1.7;

1.7
date	2007.05.20.13.35.55;	author tnn;	state Exp;
branches;
next	1.6;

1.6
date	2007.05.11.16.48.55;	author tnn;	state Exp;
branches;
next	1.5;

1.5
date	2007.05.10.02.55.31;	author tnn;	state Exp;
branches;
next	1.4;

1.4
date	2007.01.07.09.14.08;	author rillig;	state Exp;
branches;
next	1.3;

1.3
date	2006.12.18.12.36.17;	author gdt;	state Exp;
branches;
next	1.2;

1.2
date	2006.12.06.00.54.25;	author xtraeme;	state Exp;
branches;
next	1.1;

1.1
date	2006.12.05.18.23.52;	author gdt;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2006.12.05.18.23.52;	author gdt;	state Exp;
branches;
next	;


desc
@@


1.53
log
@pkgtools/pkg_rolling-replace: Silence spam about using egrep

GNU grep when invoked as egrep outputs this:
  egrep: warning: egrep is obsolescent; using grep -E

pkg_rolling-replace (via egrep) printed many of those, making the output
unreadable.
@
text
@# $NetBSD: Makefile,v 1.52 2023/06/03 11:54:23 gdt Exp $

PKGNAME=	pkg_rolling-replace-0.24.15
CATEGORIES=	pkgtools

MAINTAINER=	gdt@@NetBSD.org
COMMENT=	Replace/upgrade packages in-place
LICENSE=	modified-bsd

DEPENDS+=	pkg_chk>=1.76:../../pkgtools/pkg_chk
DEPENDS+=	pkg_tarup>=1.6.6:../../pkgtools/pkg_tarup

USE_TOOLS+=	patch

WRKSRC=		${WRKDIR}
NO_BUILD=	yes
USE_LANGUAGES=	# none

INSTALLATION_DIRS=	sbin ${PKGMANDIR}/man8

PKG_CHK?=		${PREFIX}/sbin/pkg_chk

SUBST_CLASSES+=		tools
SUBST_STAGE.tools=	pre-configure
SUBST_MESSAGE.tools=	Substituting tool locations.
SUBST_FILES.tools=	pkg_rolling-replace.sh
SUBST_VARS.tools=	PREFIX PKG_ADMIN_CMD PKG_INFO_CMD MAKE PKG_CHK AWK MKDIR SETENV

SUBST_CLASSES+=		prefix
SUBST_STAGE.prefix=	pre-configure
SUBST_MESSAGE.prefix=	Substituting PREFIX location.
SUBST_FILES.prefix=	pkg_rolling-replace.8
SUBST_VARS.prefix=	PKG_DBDIR PREFIX

SUBST_CLASSES+=		makeconf
SUBST_STAGE.makeconf=	pre-configure
SUBST_MESSAGE.makeconf=	Recording default path of mk.conf.
SUBST_FILES.makeconf=	pkg_rolling-replace.sh pkg_rolling-replace.8
SUBST_SED.makeconf=	-e 's,@@MAKECONF@@,${MAKE:T:Mbmake:S/bmake/${PREFIX}/g}/etc/mk.conf,g'

REPLACE_SH+=		pkg_rolling-replace.sh

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

do-extract:
	cp ${FILESDIR}/pkg_rolling-replace.sh ${WRKSRC}
	cp ${FILESDIR}/pkg_rolling-replace.8 ${WRKSRC}

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/pkg_rolling-replace.sh \
		${DESTDIR}${PREFIX}/sbin/pkg_rolling-replace
	${INSTALL_MAN} ${WRKSRC}/pkg_rolling-replace.8 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/pkg_rolling-replace.8

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


1.52
log
@pkgtools/pkg_rolling-replace: Update to 0.24.14

Update pass on man page:

  prune no-longer-working bbn.com email addresses and replace with
  alternate attribution

  Rewrite bug section about likely failures with many packages; this
  is not a pkg_rr bug.

  Add bug section about PKGNAME vs PKGPATH.  This is a pkg_rr bug :-(

  Rewrite -r flag to be less confusing.

  Rewrite -k flag to align caution to reality and explain why one
  would want to use it.

  Misc wording cleanups.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2023/03/05 20:23:58 triaxx Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.14
@


1.51
log
@pkg_rolling-replace: Fix PKG_DBDIR in manpage
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2021/06/28 19:33:23 mcf Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.13
@


1.50
log
@pkg_rolling-replace: use POSIX getopts(1) instead of getopt(1)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2021/04/22 08:54:18 pho Exp $
d33 1
a33 1
SUBST_VARS.prefix=	PREFIX
@


1.49
log
@Correct the order of redirection
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2021/04/13 17:51:21 rhialto Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.12
@


1.48
log
@pkg_rolling-replace: catch permission errors from pkg_admin

and print a friendlier warning message instead (only once).
Document that the mismatch state may not persist if permissions are
insufficient.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2021/01/15 10:56:52 tnn Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.11
@


1.47
log
@pkg_rr: substitute pkg_admin with PKG_ADMIN_CMD. Bump to 0.24.10.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2021/01/09 19:12:46 rhialto Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.10
@


1.46
log
@pkgtools/pkg_rolling-replace: Update to 0.24.9

When using the -u option to find mismatched packages, mark each affected
package with 'mismatch=YES'. Otherwise, consider such packages as
targets to rebuild.
ok gdt@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2019/08/27 19:30:36 gdt Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.9
d27 1
a27 1
SUBST_VARS.tools=	PREFIX PKG_INFO_CMD MAKE PKG_CHK AWK MKDIR SETENV
@


1.45
log
@pkgtools/pkg_rolling-replace: Update to 0.24.8

Be more tolerant of not finding PKGPATH, and basically attempt to skip
the package rather than treating it as a fatal error.  (This was a
stray edit that I've been running with for a while.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2019/07/29 14:48:17 gdt Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.8
@


1.44
log
@pkgtools/pkg_rollingreplace: Update to 0.24.7

When running pkg_chk, ignore packages marked "missing", which tend to
be the wrong python version.

This is a temporary kludge, but should allow pkg_rr to run on systems
that have changed python versions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2019/04/26 18:14:15 gdt Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.7
@


1.43
log
@pkg_rolling-replace: Update to 0.24.6

When trying to extract PKGPATH from what is believed to be the PKGNAME
of an installed package, do not abort, but merely error (which is
nonfatal with -k).  This is helpful, but not sufficient, when dealing
with pyNN-foo packages where the default version is depended on but
not installed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2019/03/23 17:20:31 gdt Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.6
@


1.42
log
@pkgtools/pkg_rolling-replace: 0.24.5

In addition to adding in BUILD_DEPENDS, catch up to long-ago
improvements to pkgsrc and also add in TOOL_DEPENDS.

Thanks to Hauke Fath for reporting the issue.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2018/05/06 18:06:18 gdt Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.5
@


1.41
log
@pkg_rolling-replace: avoid top-level make clean

In some cases, if an installed package's source directory did not
exist, pkg_rr could invoke "make clean" at top-level of pkgsrc.  Bug
report and fix by Andreas Gustafsson in PR pkg/53157.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2018/04/07 11:04:30 gson Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.4
@


1.40
log
@pkgtools/pkg_rolling-replace: update MAINTAINER

Mail to ngoffee bounces, and gdt has agreed to take on maintainership.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2017/03/31 07:10:58 tron Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.3
@


1.39
log
@Update "pkg_rolling-replace" to version 0.24.3.
- Make sure that installation path gets correctly recorded in the installed
  shell script to aid detection of the pkgsrc source location
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2015/02/12 08:22:16 abs Exp $
d6 1
a6 1
MAINTAINER=	ngoffee@@bbn.com
@


1.38
log
@Update to pkg_rolling-replace-0.24.2
Add -B - to pass -B to pkg_chk when determining which packages to update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2014/10/09 14:06:50 wiz Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.2
d27 1
a27 1
SUBST_VARS.tools=	PKG_INFO_CMD MAKE PKG_CHK AWK MKDIR SETENV
@


1.37
log
@Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2014/03/03 04:50:47 obache Exp $
d3 1
a3 1
PKGNAME=	pkg_rolling-replace-0.24.1
@


1.36
log
@LICENSE=modified-bsd
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2014/03/03 03:30:54 obache Exp $
a12 2
PKG_INSTALLATION_TYPES= overwrite pkgviews

@


1.35
log
@Just define PKGNAME and use it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2012/09/11 23:19:37 asau Exp $
d8 1
@


1.34
log
@"user-destdir" is default these days
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2012/04/30 13:59:38 gdt Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.24.1
a4 2
MASTER_SITES=	# empty
DISTFILES=	# empty
@


1.33
log
@Use " for PKGNAME_REQUIRED, so that ${pkg} is expanded.

Resolves at least some issues with finding the right pyNN-foo, when
replacing packages that don't match PYTHON_VERSION_DEFAULT.

(This was a stray change in my tree not committed for a while, but
it's been working ok.)

Now 0.24.1.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2011/03/22 04:04:58 obache Exp $
a14 1
PKG_DESTDIR_SUPPORT=	user-destdir
@


1.32
log
@Pass MAKE_SET_VARS with environment variables instead of make flags,
or it will be passwd down to subsequent make (ex. installation of dependencies)
and result in unwanted behaviour.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2010/12/20 15:39:09 gdt Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.24
@


1.31
log
@0.23: Pass PKGNAME_REQD to make operations.

Set PKGNAME_REQD to give underlying make processes a chance to set
options derived from the package name.  For example, the appropriate
version of Python can be derived from the package name (so, when
building py25-foo, use python-2.5, not python-2.6).   Specifically,
  MAKE_SET_VARS='PKGNAME_REQD=${pkg}-*'

From Alan Barret via pkgsrc-users@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2010/12/20 15:24:24 gdt Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.23
d31 1
a31 1
SUBST_VARS.tools=	PKG_INFO_CMD MAKE PKG_CHK AWK MKDIR
@


1.30
log
@0.22: Avoid infinite loop in some error cases.

Sometimes, the set of packages to be replaced ($REPLACE_TODO) does not
have any members which are installed (and hence in $TSORTED).  This
caused the loop over $TSORTED to not find any packages to replace.
The check for not having found one was missing, resulting in the last
package in TSORTED being replaced.  Because $REPLACE_TODO is still
non-empty, this repeats.

This patch adds an abort when no packages in $TSORTED are in
$REPLACE_TODO.  Analysis and patch from Ian D. Leroux on
pkgsrc-users@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2010/02/11 12:07:33 tnn Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.22
@


1.29
log
@- Clean up the error handling a bit
- Bomb if we couldn't extract the PKGPATH from an installed package.
XXX the pkg_rr main loop has grown too large and should be split into
functions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2010/02/01 19:06:42 sno Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.21
@


1.28
log
@Updating pkgtools/pkg_rolling-replace/ from 0.19nb1 to 0.20

Improving the variable passing to make by allowing any, not just
MAKE_JOBS and USE_DESTDIR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2010/02/01 10:28:45 sno Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.20
a4 1
#PKGREVISION=	1
@


1.27
log
@Fixing a typo and bumping revision (if anyone still had updated)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2010/02/01 09:33:21 sno Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.19
d5 1
a5 1
PKGREVISION=	1
@


1.26
log
@Updating pkg_rolling-replace (set new version 0.19):

- Add option '-D' to tune "USE_DESTDIR=" and set this defaultly to 'NO'
- Add option '-j' to tune "MAKE_JOBS=" (Default: unset)
- Fix an issue with packages with missing origin
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2009/11/13 19:40:55 sno Exp $
d5 1
@


1.25
log
@Updating pkgtools/pkg_rolling-replace from 0.17 to 0.18

Changes:
Added 3 new features:
1) Fetch only
2) Keep going after error (skip package)
3) Log output of make steps

Modified verbosity to report what's failed and what succeeds.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2009/06/17 08:12:18 tnn Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.18
@


1.24
log
@pkg_rolling-replace-0.17:
Use "pkg_info -Q" to extract PKGPATH from installed packages instead of
"pkg_info -B" coupled with awk magic. The previous regexp didn't account
for packages that have PREV_PKGPATH set, and blew up while replacing
for example mail/sylpheed and multimedia/ffmpeg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2009/04/09 00:48:13 joerg Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.17
d31 1
a31 1
SUBST_VARS.tools=	PKG_INFO_CMD MAKE PKG_CHK AWK
@


1.23
log
@Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2009/02/10 00:16:01 joerg Exp $
d3 1
a3 2
DISTNAME=	pkg_rolling-replace-0.16
PKGREVISION=	2
@


1.22
log
@DESTDIR support
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2008/06/22 12:49:53 gdt Exp $
a20 1
NO_CHECKSUM=	yes
@


1.21
log
@Drop check for 'make replace => unsafe_depends" support being present
in pkgsrc.  It's been 1.75 years, and the benefit of the check is now
outweighed by the cruftiness.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2008/06/08 17:29:01 gdt Exp $
d16 1
d57 1
a57 1
		${PREFIX}/sbin/pkg_rolling-replace
d59 1
a59 1
		${PREFIX}/${PKGMANDIR}/man8/pkg_rolling-replace.8
@


1.20
log
@Add example showing how to mark all packages depdending on X11 for
rebuild, useful for moving to X11_TYPE=modular.  From tnn@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2008/05/02 19:04:03 apb Exp $
d4 1
a4 1
PKGREVISION=	1
d50 1
a50 2
# target exists only to force check-pkgsrc-patch prior to install
do-extract: check-pkgsrc-patch
d54 1
a54 1
do-install: check-pkgsrc-patch
a59 17
check-pkgsrc-patch:
	@@${ECHO_N} "=> Checking for unsafe_depends support in pkgsrc..."; \
	REPLACE_MK="${PKGSRCDIR}/mk/flavor/pkg/replace.mk"; \
	if [ -f "$$REPLACE_MK" ]; then \
	    if [ "`${EGREP} unsafe_depends=YES $$REPLACE_MK`" ]; then \
	        ${ECHO} "found."; \
		${TRUE}; \
	    else \
	        ${ECHO}; \
	        ${ECHO} "*** pkg_rolling replace requires pkgsrc>=2006Q3" \
	        ${FALSE}; \
            fi; \
	else \
            ${ECHO} "*** pkg_rolling replace requires pkgsrc>=2006Q3"; \
            ${FALSE}; \
        fi

@


1.19
log
@Bump version to pkg_rolling-replace-0.16:
* Look for $MAKECONF in @@MAKECONF@@, @@PREFIX@@/etc/mk.conf,
  and /etc/mk.conf, in that order.
* Look for $PKGSRCDIR in the Makefile referred to by $MAKECONF,
  ".", "..", "../..", and "/usr/pkgsrc", in that order.

Proposed in tech-pkg; OK Greg Troxel.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2008/03/31 11:41:09 gdt Exp $
d4 1
@


1.18
log
@Separate 'make clean' from 'make package', so that clean is not
skipped with -r.  DISTNAME++.  Fixes PR pkg/38283.

Reviewed and tested by tnn@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2008/02/17 10:47:47 apb Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.15
d33 6
d42 1
a42 1
SUBST_FILES.makeconf=	pkg_rolling-replace.sh
d52 1
d57 1
a57 1
	${INSTALL_MAN} ${FILESDIR}/pkg_rolling-replace.8 \
@


1.17
log
@Bump version to pkg_rolling-replace-0.14:
* Clarify that the -x option takes package base names, not full package
  names.
* Clarify that the -x option excluded packages only from the outdated
  check, not from being rebuilt for any any other reason.
* Add a -X option that excludes a package from being rebuilt for any
  reason.  (I have had this as a private patch for a long time, and
  never run pkg_rolling-replace without "-X openoffice2", because
  openoffice requires so much time and disk space to build.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2008/01/11 13:29:37 gdt Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.14
@


1.16
log
@Add patch from Brook Milligan to avoid treating warnings about
non-deletable packages as dependencies.  Bump version to 0.14.

Example problematic output (perhaps should also be fixed in
pkg_install):

     Information for pkg_install-20070810:

     *** PACKAGE MAY NOT BE DELETED ***
     Built using:
     checkperms-1.7

     *** PACKAGE MAY NOT BE DELETED ***
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2007/12/02 02:11:05 tnn Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.13
@


1.15
log
@pkg_rolling-replace-0.12:
Replace the nested shell loops in depgraph_installed() with some awk
that only needs to invoke pkg_info once. This gives a ~20x speedup.

Previously, if many packages were installed, depgraph generation took a
considerable amount of time; in the order of 30 seconds even on moderately
fast hardware.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2007/08/17 01:19:45 gdt Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.12
@


1.14
log
@Remove leading spaces from PKGNAME, to cope with an old bug.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2007/08/08 11:28:04 tnn Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.11
d31 1
a31 1
SUBST_VARS.tools=	PKG_INFO_CMD MAKE PKG_CHK
@


1.13
log
@pkg_rolling-replace-0.10:
- Abort if any of rebuild, unsafe_depends, unsafe_depends_strict are still
  set after "make replace".
- Following changes in pkgsrc, does not replace by default if the
  dependencies' ABI is still compatible.
- Add option -s that retains the old behaviour of always replacing.
- Add option -r for "replace only", this supresses creation of binary pkgs.
- The -n option has not been fully updated for these changes.
- versions 0.[7-9] were skipped to avoid any ambiguity from the 0.04 -> 0.5
  transition.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2007/08/06 15:07:56 tnn Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.10
@


1.12
log
@Update to pkg_rolling-replace-0.6:
- Explicitly unset 'unsafe_depends' and 'rebuild' tags after replacing.
  Needed after changes in pkgsrc/mk/flavor/pkg/replace.mk, fixes PR 36738.
- Introduce ${PKG_ADMIN}, ${PKG_INFO}, ${PKG_CHK} variables instead of
  calling the tools directly by name.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2007/08/03 00:55:08 tnn Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.6
d31 1
a31 1
SUBST_VARS.tools=	PKG_INFO_CMD PKG_ADMIN MAKE PKG_CHK
@


1.11
log
@pkg_rolling-replace-0.5:
Redirecting output to /dev/stderr is not portable and will create a
regular file "stderr" if the device does not exist. Instead use the
portable 1>&2 redirection syntax. PKGREVISION was at nb9; get rid of it
and bump minor version number.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2007/06/29 18:18:37 tnn Exp $
d3 1
a3 1
DISTNAME=	pkg_rolling-replace-0.5
d25 7
a31 5
SUBST_CLASSES+=		makepath
SUBST_STAGE.makepath=	pre-configure
SUBST_MESSAGE.makepath=	Fixing path to ${MAKE}.
SUBST_FILES.makepath=	pkg_rolling-replace.sh
SUBST_SED.makepath=	-e 's,@@MAKE@@,${MAKE},g'
@


1.10
log
@Use REPLACE_SH to get a sane shell on borked platforms.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2007/06/29 17:00:44 tnn Exp $
d3 1
a3 2
DISTNAME=	pkg_rolling-replace-0.04
PKGREVISION=	9
@


1.9
log
@Convert extended RE into basic RE equivalent, making us portable again.
Noted by Mehul N. Sanghvi on pkgsrc-users@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2007/05/23 18:11:05 tnn Exp $
d4 1
a4 1
PKGREVISION=	8
d38 2
@


1.8
log
@non-current make(1) doesn't support -V.
Provide a target for printing PKGSRCDIR. PKGREVISION++
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2007/05/20 13:35:55 tnn Exp $
d4 1
a4 1
PKGREVISION=	7
@


1.7
log
@- Change the way pkg_rolling-replace parses version numbers. Everything
    after the last hyphen is the version, not everything after the first
    occurence of '-[0-9]'. This allows pkg_rolling-replace users to upgrade
    packages such as font-bitstream-100dpi.
- Use INSTALL_MAN, not INSTALL_SCRIPT. Manpages are not executable.
- Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2007/05/11 16:48:55 tnn Exp $
d4 1
a4 1
PKGREVISION=	6
@


1.6
log
@Prepend ${PREFIX} to default location of mk.conf if we're using bmake.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2007/05/10 02:55:31 tnn Exp $
d4 1
a4 1
PKGREVISION=	5
d47 1
a47 1
	${INSTALL_SCRIPT} ${FILESDIR}/pkg_rolling-replace.8 \
@


1.5
log
@Get PKGSRCDIR from mk.conf. In turn, Get path of mk.conf from MAKECONF
or default to /etc/mk.conf if unset. Bump PKGREVISON.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2007/01/07 09:14:08 rillig Exp $
d4 1
a4 1
PKGREVISION=	4
d32 6
@


1.4
log
@Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.

Fixes PR 35265, although I did not use the patch provided therein.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2006/12/18 12:36:17 gdt Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.3
log
@SUBST the path to ${MAKE}.
PKGREVISION++.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2006/12/06 00:54:25 xtraeme Exp $
d24 1
a24 1
INSTALLATION_DIRS=	sbin man/man8
@


1.2
log
@Ugh, wrap long lines.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2006/12/05 18:23:52 gdt Exp $
d4 1
a4 1
PKGREVISION=	2
d26 6
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2006/12/05 18:20:49 gdt Exp $
d33 4
a36 2
	${INSTALL_SCRIPT} ${WRKSRC}/pkg_rolling-replace.sh ${PREFIX}/sbin/pkg_rolling-replace
	${INSTALL_SCRIPT} ${FILESDIR}/pkg_rolling-replace.8 ${PREFIX}/${PKGMANDIR}/man8/pkg_rolling-replace.8
@


1.1.1.1
log
@pkg_rolling-replace does 'make replace' on one package at a time,
tsorting the packages being replaced according to their
interdependencies, which avoids most duplicate rebuilds.

@
text
@@
