From 1284b953e8bb17b259f69f07eeb20deb36db01f2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 18 Sep 2017 16:12:20 -0300 Subject: Misc updates --- README.md | 17 +++++++++++++---- kvmxfile | 2 +- ports/net/luakit/env | 3 ++- stowpkg | 5 +++++ tests/provision | 7 +++++++ 5 files changed, 28 insertions(+), 6 deletions(-) create mode 100755 tests/provision diff --git a/README.md b/README.md index 6f90340..538975f 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,22 @@ Features Coming features --------------- -* Automatic patch application. +* Automatic application patching. * Source code verification using multiple methods (commit hash, checksums, OpenPGP). Installation ------------ -On a Debian-like system: +Simply clone it and add to your `$PATH`: + + git clone https://git.fluxo.info/stowpkg + +You can also verify the latest commit's OpenPGP signature: + + /usr/bin/git -C stowpkg verify-commit HEAD + +You'll also need some dependencies. On a Debian-like system those can be +installed using sudo apt install stow build-essential @@ -77,12 +86,12 @@ Starting from `$BASE` (like `/usr/local`) we have: Further development ------------------- -* Per-architecture binary package support using git-annex and GnuPG signatures, including: +Per-architecture binary package support using git-annex and GnuPG signatures, including: stowpkg pack # pack an installed package stowpkg fetch # fetch package from the repo -What is does +What it does ------------ If you want to do it manually: diff --git a/kvmxfile b/kvmxfile index a435cdf..3a03db6 100644 --- a/kvmxfile +++ b/kvmxfile @@ -22,7 +22,7 @@ shared_folder_mountpoint="/home/$user/code/$VM" #provision_rsync_opts="--exclude=somefolder" # Absolute path for a provision script located inside the guest. -provision_command="/usr/local/share/kvmx/provision/development" +provision_command="/home/$user/code/$VM/tests/provision" # Graphics # See https://wiki.archlinux.org/index.php/QEMU#Graphics diff --git a/ports/net/luakit/env b/ports/net/luakit/env index e0f8ae7..f21df64 100644 --- a/ports/net/luakit/env +++ b/ports/net/luakit/env @@ -1,4 +1,5 @@ -version="master" +#version="master" +version="71eb86317b13f8d72282517874ed25a44318d16e" source_format="git" url="https://github.com/luakit/luakit" dependencies_stowpkg="" diff --git a/stowpkg b/stowpkg index a0feecd..8ddc166 100755 --- a/stowpkg +++ b/stowpkg @@ -160,6 +160,11 @@ stowpkg_install () { cd ${package}-${version} + if [ "$source_format" = "git" ]; then + git fetch --all + git checkout version + fi + # Build if [ -e "$location/rules" ]; then . $location/rules diff --git a/tests/provision b/tests/provision new file mode 100755 index 0000000..d96965d --- /dev/null +++ b/tests/provision @@ -0,0 +1,7 @@ +#!/bin/sh + +# Run the default development provisioner +/usr/local/share/kvmx/provision/development + +# Configure a test enviroment +echo 'BASE="/home/user/temp/misc/stowpkg"' > /home/user/.config/stowpkg -- cgit v1.2.3