makefile works

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-11 02:27:21 -06:00
parent eed897eefd
commit ffaec2b5dd
4 changed files with 24 additions and 4 deletions

View File

@ -32,5 +32,8 @@ clean:
-rm -f resources/*.so
-rm *.deb
debian:
cd debian && make
mirrors:
-wit mirrors

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# go-deb
Makes a debian package from a go git repository
TODO:
* Make the sources
* Make it compatible with debuild

8
debian/Makefile vendored
View File

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

9
debian/control vendored Normal file
View File

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