[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / regress / replace-interpreter

File: [cvs.NetBSD.org] / pkgsrc / regress / replace-interpreter / Makefile (download)

Revision 1.2, Sat May 9 22:13:30 2020 UTC (3 years, 11 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, HEAD
Changes since 1.1: +2 -2 lines

regress/replace-interpreter: fix package installation

# $NetBSD: Makefile,v 1.2 2020/05/09 22:13:30 rillig Exp $
#
# Ensures that replace-interpreter comes before check-portability.
# Without this, it would not be possible to quickly and easily patch
# bash programs that declare /bin/sh as their interpreter.
#

PKGNAME=	replace-interpreter-2020.05.09
CATEGORIES=	pkgtools
DISTFILES=	# none

COMMENT=	Ensures correct order of replace-interpreter
LICENSE=	2-clause-bsd

USE_TOOLS+=	printf chmod bash
WRKSRC=		${WRKDIR}
BUILD_DIRS=	# none
DESCR_SRC=	/dev/null
AUTO_MKDIRS=	yes

REPLACE_BASH=	command

do-extract:
	${RUN} printf '%s\n' '#! /bin/sh' 'test a == b' > ${WRKSRC}/command
	${RUN} chmod +x ${WRKSRC}/command

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/command \
		${DESTDIR}${PREFIX}/bin/regress-replace-interpreter

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