From ffaec2b5dd6b38d5b78b579998dedc91f016110e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 11 Feb 2024 02:27:21 -0600 Subject: [PATCH] makefile works Signed-off-by: Jeff Carr --- Makefile | 3 +++ README.md | 8 ++++++++ debian/Makefile | 8 ++++---- debian/control | 9 +++++++++ 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 README.md create mode 100644 debian/control diff --git a/Makefile b/Makefile index 60e8a95..f55d126 100644 --- a/Makefile +++ b/Makefile @@ -32,5 +32,8 @@ clean: -rm -f resources/*.so -rm *.deb +debian: + cd debian && make + mirrors: -wit mirrors diff --git a/README.md b/README.md new file mode 100644 index 0000000..232c727 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# go-deb + +Makes a debian package from a go git repository + +TODO: + +* Make the sources +* Make it compatible with debuild diff --git a/debian/Makefile b/debian/Makefile index 1b42b3b..a6f1235 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -1,7 +1,7 @@ # GITVERSION=$(shell git rev-parse FETCH_HEAD) VERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//') -BASENAME=control-panel-dns +BASENAME=go-deb all: help deb @@ -20,9 +20,9 @@ clean: extract: mkdir -p ../files/usr/bin - mkdir -p ../files/usr/lib/control-panel-dns/ - cp ../README.md ../files/usr/lib/control-panel-dns/ - cp ~/go/bin/control-panel-dns ../files/usr/bin/ + mkdir -p ../files/usr/lib/${BASENAME} + cp ../README.md ../files/usr/lib/${BASENAME} + cp ../${BASENAME} ../files/usr/bin/ # makes the DEBIAN/ directory DEBIAN: diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..12f6b3b --- /dev/null +++ b/debian/control @@ -0,0 +1,9 @@ +Source: go-deb +Build-Depends: golang +Package: go-deb +Maintainer: Jeff Carr +Architecture: amd64 +Depends: +Recommends: libgtk-3-0, ddclient, ddupdate +Description: a control panel for DNS and IPv6 settings + Goals: show the settings, validate & update DNS