From 22111183a5a6f9c87062d503c8a71a6a6955bed5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 30 Oct 2024 20:31:14 -0500 Subject: [PATCH] make a simple .deb package Signed-off-by: Jeff Carr --- Makefile | 5 +++++ build | 5 +++++ control | 15 +++++++++++++++ 3 files changed, 25 insertions(+) create mode 100755 build create mode 100644 control diff --git a/Makefile b/Makefile index 8279f1d..ae8ee4b 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,11 @@ all: build build: GO111MODULE=off go build -v -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}" +# makes a .deb package +debian: + rm -f ~/incoming/virtigo*deb + go-deb --no-gui --repo go.wit.com/apps/virtigo + xml-add: ./virtigo --libvirt ~/libvirt/*.xml --xml-ignore-disk=true diff --git a/build b/build new file mode 100755 index 0000000..1ab3886 --- /dev/null +++ b/build @@ -0,0 +1,5 @@ +#!/bin/bash -x + +# this is the systemd control file +mkdir -p files/usr/bin/ +cp ../../lib/daemons/virtigod/virtigod files/usr/bin/ diff --git a/control b/control new file mode 100644 index 0000000..cc3a129 --- /dev/null +++ b/control @@ -0,0 +1,15 @@ +Source: virtigo +Build-Depends: golang +Package: virtigo +Maintainer: Jeff Carr +Architecture: amd64 +Recommends: virtigod +Depends: +URL: https://go.wit.com/apps/virtigo +Description: control your virtual machines in your cluster + lets you start,stop, etc virtual machines + converts libvirt xml into protobuf definitions + communicates with hypervisors with protobuf's + uses virsh to start & stop + maintains unique mac address table + servers cluster status on :8080 for uptime checking like Kuma