From 4b1c7eebdae45c12a0e1bebed82c0093a15cea8c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 Feb 2023 11:04:04 -0600 Subject: [PATCH] Initial Commit --- .gitignore | 1 + debian/Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 9 +++++++++ debian/postinst | 1 + 5 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 debian/Makefile create mode 100644 debian/compat create mode 100644 debian/control create mode 100755 debian/postinst diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1bfd4de --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +control-panel-dns diff --git a/debian/Makefile b/debian/Makefile new file mode 100644 index 0000000..d0fdeab --- /dev/null +++ b/debian/Makefile @@ -0,0 +1,47 @@ +# 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 + +all: help deb + +help: + @echo + @echo "make deb # attempt to build the .deb package using dpkg" + @echo + +deb: clean extract DEBIAN build + +clean: + rm -rf ../files + rm -f ../*.deb + rm -f ../*.tar.xz data.tar.xz + rm -rf DEBIAN + +extract: + mkdir -p ../files/usr/bin + cp ../control-panel-dns ../files/usr/bin/ + +# makes the DEBIAN/ directory +DEBIAN: + mkdir -p DEBIAN + + # make the md5sum file + cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums + mv ../md5sums DEBIAN/ + + # make the control there + mkdir -p DEBIAN + cp control DEBIAN/ + echo Version: ${VERSION} >>DEBIAN/control + + cp postinst DEBIAN + +build: + mv DEBIAN ../files/ + cd .. && dpkg-deb --build files ${BASENAME}_${VERSION}_amd64.deb + @echo + @echo '#######################' + cd .. && dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb + @echo '#######################' + @echo diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..906f089 --- /dev/null +++ b/debian/control @@ -0,0 +1,9 @@ +Source: go-wit-gui +Build-Depends: golang +Package: go-wit-gui +Maintainer: Jeff Carr +Architecture: amd64 +Depends: +Recommends: libgtk-3-0 +Description: a abstraction layer for Go visual elements (GTK, QT, etc) + Package gui implements a abstraction layer for Go visual elements. diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..1a24852 --- /dev/null +++ b/debian/postinst @@ -0,0 +1 @@ +#!/bin/sh