make a simple .deb package

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-30 20:31:14 -05:00
parent 41673f3170
commit 22111183a5
3 changed files with 25 additions and 0 deletions

View File

@ -11,6 +11,11 @@ all: build
build: build:
GO111MODULE=off go build -v -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}" 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: xml-add:
./virtigo --libvirt ~/libvirt/*.xml --xml-ignore-disk=true ./virtigo --libvirt ~/libvirt/*.xml --xml-ignore-disk=true

5
build Executable file
View File

@ -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/

15
control Normal file
View File

@ -0,0 +1,15 @@
Source: virtigo
Build-Depends: golang
Package: virtigo
Maintainer: Jeff Carr <jcarr@wit.com>
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