pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/regress/replace-interpreter



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sat May  9 18:25:28 UTC 2020

Added Files:
        pkgsrc/regress/replace-interpreter: Makefile PLIST spec

Log Message:
regress/replace-interpreter: ensure order of targets


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/regress/replace-interpreter/Makefile \
    pkgsrc/regress/replace-interpreter/PLIST \
    pkgsrc/regress/replace-interpreter/spec

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/regress/replace-interpreter/Makefile
diff -u /dev/null pkgsrc/regress/replace-interpreter/Makefile:1.1
--- /dev/null   Sat May  9 18:25:28 2020
+++ pkgsrc/regress/replace-interpreter/Makefile Sat May  9 18:25:28 2020
@@ -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"
Index: pkgsrc/regress/replace-interpreter/PLIST
diff -u /dev/null pkgsrc/regress/replace-interpreter/PLIST:1.1
--- /dev/null   Sat May  9 18:25:28 2020
+++ pkgsrc/regress/replace-interpreter/PLIST    Sat May  9 18:25:28 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/09 18:25:28 rillig Exp $
+bin/regress-replace-interpreter
Index: pkgsrc/regress/replace-interpreter/spec
diff -u /dev/null pkgsrc/regress/replace-interpreter/spec:1.1
--- /dev/null   Sat May  9 18:25:28 2020
+++ pkgsrc/regress/replace-interpreter/spec     Sat May  9 18:25:28 2020
@@ -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