From cab3c5a1a0f81eaac3cb8d4f54f0515b065160ea Mon Sep 17 00:00:00 2001 From: V Date: Sat, 10 Jul 2021 20:17:48 +0200 Subject: ripple: move tools to their own directory Change-Id: I693b9b9c5b9aff8c96b1b81f1ff7b7f2b92eabcb --- ripple/tools/fakefakeroot/.gitignore | 5 +++++ ripple/tools/fakefakeroot/PKGBUILD | 17 +++++++++++++++++ ripple/tools/fakefakeroot/fakefakeroot.sh | 17 +++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 ripple/tools/fakefakeroot/.gitignore create mode 100644 ripple/tools/fakefakeroot/PKGBUILD create mode 100755 ripple/tools/fakefakeroot/fakefakeroot.sh (limited to 'ripple/tools/fakefakeroot') diff --git a/ripple/tools/fakefakeroot/.gitignore b/ripple/tools/fakefakeroot/.gitignore new file mode 100644 index 0000000..b91c0cb --- /dev/null +++ b/ripple/tools/fakefakeroot/.gitignore @@ -0,0 +1,5 @@ +# SPDX-FileCopyrightText: edef +# SPDX-License-Identifier: OSL-3.0 +/*.pkg.tar.* +/src/ +/pkg/ diff --git a/ripple/tools/fakefakeroot/PKGBUILD b/ripple/tools/fakefakeroot/PKGBUILD new file mode 100644 index 0000000..22cdb41 --- /dev/null +++ b/ripple/tools/fakefakeroot/PKGBUILD @@ -0,0 +1,17 @@ +# SPDX-FileCopyrightText: edef +# SPDX-License-Identifier: OSL-3.0 +pkgname=fakefakeroot +pkgver=0 +pkgrel=0 +pkgdesc='fakeroot shim' +arch=('any') +license=('OSL-3.0') +depends=('bash') +provides=('fakeroot') +conflicts=('fakeroot') +source=('./fakefakeroot.sh') +b2sums=('SKIP') + +package() { + install -Dm 0755 fakefakeroot.sh $pkgdir/usr/bin/fakeroot +} diff --git a/ripple/tools/fakefakeroot/fakefakeroot.sh b/ripple/tools/fakefakeroot/fakefakeroot.sh new file mode 100755 index 0000000..0f6ca7c --- /dev/null +++ b/ripple/tools/fakefakeroot/fakefakeroot.sh @@ -0,0 +1,17 @@ +#! /bin/bash +# SPDX-FileCopyrightText: edef +# SPDX-License-Identifier: OSL-3.0 + +if [ "$*" = "-v" ]; then + echo fakefakeroot + exit 0 +fi + +if [ "$1" != "--" ]; then + echo "usage: $0 -- PROGRAM [ARG]..." >&2 + exit 255 +fi + +export FAKEROOTKEY="double-fake-root" + +shift; exec "$@" -- cgit 1.4.1