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-utils/build | 5 ----- core/kiss-utils/checksums | 2 -- core/kiss-utils/files/kiss-chbuild | 35 ----------------------------------- core/kiss-utils/sources | 2 -- core/kiss-utils/version | 1 - 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 +- 11 files changed, 58 insertions(+), 51 deletions(-) delete mode 100755 core/kiss-utils/build delete mode 100644 core/kiss-utils/checksums delete mode 100755 core/kiss-utils/files/kiss-chbuild delete mode 100644 core/kiss-utils/sources delete mode 100644 core/kiss-utils/version create mode 100755 core/kiss/files/kiss-chbuild create mode 100755 core/kiss/post-install (limited to 'core') diff --git a/core/kiss-utils/build b/core/kiss-utils/build deleted file mode 100755 index 8f1e86b7..00000000 --- a/core/kiss-utils/build +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -e - -mv kiss-chbuild contrib - -install -t "$1/usr/bin" -D contrib/* diff --git a/core/kiss-utils/checksums b/core/kiss-utils/checksums deleted file mode 100644 index e1bb59ae..00000000 --- a/core/kiss-utils/checksums +++ /dev/null @@ -1,2 +0,0 @@ -c774ca22b56a89d7166fc85c11394946d453a5b730ab03300d4ea4fd8e08359a 1.7.7.tar.gz -62912794b89fa305a1aca18e82b200300ae5b55ed67feb86466198abbb41789f kiss-chbuild diff --git a/core/kiss-utils/files/kiss-chbuild b/core/kiss-utils/files/kiss-chbuild deleted file mode 100755 index 9df18ccb..00000000 --- a/core/kiss-utils/files/kiss-chbuild +++ /dev/null @@ -1,35 +0,0 @@ -#!/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-utils/sources b/core/kiss-utils/sources deleted file mode 100644 index 2b1630b1..00000000 --- a/core/kiss-utils/sources +++ /dev/null @@ -1,2 +0,0 @@ -https://github.com/kisslinux/kiss/archive/1.7.7.tar.gz -files/kiss-chbuild diff --git a/core/kiss-utils/version b/core/kiss-utils/version deleted file mode 100644 index 65c67121..00000000 --- a/core/kiss-utils/version +++ /dev/null @@ -1 +0,0 @@ -1.7.7 1 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 <