Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/regress/replace-interpreter regress/replace-interprete...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2f7e9c1b6cc0
branches: trunk
changeset: 431143:2f7e9c1b6cc0
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat May 09 18:25:28 2020 +0000
description:
regress/replace-interpreter: ensure order of targets
diffstat:
regress/replace-interpreter/Makefile | 31 +++++++++++++++++++++++++++++++
regress/replace-interpreter/PLIST | 2 ++
regress/replace-interpreter/spec | 8 ++++++++
3 files changed, 41 insertions(+), 0 deletions(-)
diffs (53 lines):
diff -r 3759758d16c6 -r 2f7e9c1b6cc0 regress/replace-interpreter/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/replace-interpreter/Makefile Sat May 09 18:25:28 2020 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2020/05/09 18:25:28 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_PROGRAM} ${WRKSRC}/command \
+ ${DESTDIR}${PREFIX}/bin/regress-replace-interpreter
+
+.include "../../mk/bsd.pkg.mk"
diff -r 3759758d16c6 -r 2f7e9c1b6cc0 regress/replace-interpreter/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/replace-interpreter/PLIST Sat May 09 18:25:28 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/09 18:25:28 rillig Exp $
+bin/regress-replace-interpreter
diff -r 3759758d16c6 -r 2f7e9c1b6cc0 regress/replace-interpreter/spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/replace-interpreter/spec Sat May 09 18:25:28 2020 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: spec,v 1.1 2020/05/09 18:25:28 rillig Exp $
+
+MAKEARGS_TEST="install"
+MAKEARGS_CLEAN="deinstall clean"
+
+check_result() {
+ exit_status 0
+}
Home |
Main Index |
Thread Index |
Old Index