diff options
| author | Jeff Carr <[email protected]> | 2024-02-11 01:00:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-11 01:00:05 -0600 |
| commit | b29d6caf34e72af362f791a5cba7dbd06e7fd1a2 (patch) | |
| tree | ec37cefac915ac54a40fb2eac7ae2f55261477f3 /debian | |
initial commit
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/Makefile | 49 | ||||
| -rw-r--r-- | debian/compat | 1 | ||||
| -rw-r--r-- | debian/control | 9 | ||||
| -rwxr-xr-x | debian/postinst | 1 |
4 files changed, 60 insertions, 0 deletions
diff --git a/debian/Makefile b/debian/Makefile new file mode 100644 index 0000000..1b42b3b --- /dev/null +++ b/debian/Makefile @@ -0,0 +1,49 @@ +# 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 + 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/ + +# 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..1a46081 --- /dev/null +++ b/debian/control @@ -0,0 +1,9 @@ +Source: control-panel-dns +Build-Depends: golang +Package: control-panel-dns +Maintainer: Jeff Carr <[email protected]> +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 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 |
