From dda8630d16564c781608c774defa66085f67e4a5 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 15 Mar 2020 13:56:11 +0300 Subject: merge kiss and kiss-utils --- core/kiss/build | 10 +++++++--- core/kiss/checksums | 3 ++- core/kiss/files/kiss-chbuild | 35 +++++++++++++++++++++++++++++++++++ core/kiss/post-install | 11 +++++++++++ core/kiss/sources | 3 ++- core/kiss/version | 2 +- 6 files changed, 58 insertions(+), 6 deletions(-) create mode 100755 core/kiss/files/kiss-chbuild create mode 100755 core/kiss/post-install (limited to 'core/kiss') diff --git a/core/kiss/build b/core/kiss/build index 2e6c7c3f..6324e5e0 100755 --- a/core/kiss/build +++ b/core/kiss/build @@ -1,5 +1,9 @@ #!/bin/sh -e -install -D kiss "$1/usr/bin/kiss" -install -D kiss_path.sh "$1/etc/profile.d/kiss_path.sh" -install -D kiss.1 "$1/usr/share/man/man1/kiss.1" +mv kiss-chbuild contrib + +install -Dm755 kiss "$1/usr/bin/kiss" +install -Dm755 kiss_path.sh "$1/etc/profile.d/kiss_path.sh" +install -Dm644 kiss.1 "$1/usr/share/man/man1/kiss.1" + +install -Dm755 -t "$1/usr/bin" contrib/* diff --git a/core/kiss/checksums b/core/kiss/checksums index be48c8ba..8f51fb4c 100644 --- a/core/kiss/checksums +++ b/core/kiss/checksums @@ -1,2 +1,3 @@ -c774ca22b56a89d7166fc85c11394946d453a5b730ab03300d4ea4fd8e08359a 1.7.7.tar.gz +c6d1e0df592a5407e3eaceb7c7094f75d0719ba61f5133cf8dd53a1edc9056d3 1.7.10.tar.gz d56d159fd9f0c39a2692b4b00b1543b2eb476a0659aa6899efa0ff460863dc70 kiss_path.sh +62912794b89fa305a1aca18e82b200300ae5b55ed67feb86466198abbb41789f kiss-chbuild diff --git a/core/kiss/files/kiss-chbuild b/core/kiss/files/kiss-chbuild new file mode 100755 index 00000000..9df18ccb --- /dev/null +++ b/core/kiss/files/kiss-chbuild @@ -0,0 +1,35 @@ +#!/bin/sh -e +# +# Create/destroy temporary chroots. + +log() { + printf '\033[31;1m->\033[m %s.\n' "$@" +} + +clean() { + log "Destroying chroot" + su -c "rm -rf chroot-$pid" || clean +} + +pid=$$ + +cd "${cac_dir:=$KISS_ROOT${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" + +[ -f carbs-rootfs.tar.xz ] || { + log "Downloading chroot tarball" + wget https://dl.carbslinux.org/releases/carbs-rootfs.tar.xz +} + +[ -d carbs-chroot ] || { + log "Extracting chroot" + mkdir -p carbs-chroot + tar xvf carbs-rootfs.tar.xz -C carbs-chroot +} + +log "Creating temporary chroot" +cp -a carbs-chroot "chroot-$pid" + +trap clean EXIT INT + +log "Entering chroot" +su -c "kiss-chroot chroot-$pid" diff --git a/core/kiss/post-install b/core/kiss/post-install new file mode 100755 index 00000000..fa0f269b --- /dev/null +++ b/core/kiss/post-install @@ -0,0 +1,11 @@ +#!/bin/sh -e + +cat <