~razzi/ronin

e22e1693408730f35a947eede7d1b0583bde25b5 — Razzi Abuissa 4 months ago 115be66
Add fpm packaging for .deb
3 files changed, 19 insertions(+), 1 deletions(-)

A .fpm
M Makefile
M ronin
A .fpm => .fpm +14 -0
@@ 0,0 1,14 @@
-s dir
-t deb
-p ronin-0.1.0-1-any.deb
--name ronin
--version 0.1.0
--architecture all
--depends qemu-system
--description "Run a debian virtual machine using qemu in 1 command"
--url https://git.sr.ht/~razzi/ronin --maintainer "Razzi Abuissa <razzi@abuissa.net>"
ronin=/usr/local/bin/ronin
setup-ssh.exp=/usr/libexec/ronin/setup-ssh.exp
setup-ssh.sh=/usr/libexec/ronin/setup-ssh.sh
guest-setup.sh=/usr/libexec/ronin/guest-setup.sh


M Makefile => Makefile +3 -0
@@ 17,6 17,9 @@ launch:
install:
	ln -s $(shell pwd)/ronin /usr/local/bin

deb:
	fpm

clean:
	-pkill -i qemu
	-$(RM) -r ~/.ronin/

M ronin => ronin +2 -1
@@ 4,6 4,7 @@
test ! -z "$RONIN_DEBUG" && set -ex

RONIN_DISK="$HOME/.ronin/ronin-disk.qcow2"
RONIN_LIBEXEC=/usr/libexec/ronin

ronin_setup() {
  mkdir -p ~/.cache/ronin && \


@@ 36,7 37,7 @@ ronin_setup() {
    mv "$HOME/.ronin/ronin_key.priv.pub" "$HOME/.ronin/ronin_key.pub"

  RONIN_GUEST_SSHD_KEY="$HOME/.ronin/guest_ssh_host_ed25519_key.pub"
  test ! -f "$RONIN_GUEST_SSHD_KEY" && ./setup-ssh.sh
  test ! -f "$RONIN_GUEST_SSHD_KEY" && "$RONIN_LIBEXEC/setup-ssh.sh"

  return 0
}