-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build a deb package for glvd-client (#6)
Build a deb package for glvd-client Related to gardenlinux/glvd#118
- Loading branch information
Showing
10 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
on: | ||
push: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
jobs: | ||
build: | ||
uses: gardenlinux/package-build/.github/workflows/build.yml@main | ||
with: | ||
release: ${{ github.ref == 'refs/heads/main' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ go.work.sum | |
|
||
# env file | ||
.env | ||
.build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
glvd (0.0.0) unstable; urgency=medium | ||
|
||
* WIP glvd is in development | ||
|
||
-- Garden Linux <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
debian/.go-build/ | ||
debian/.go-cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Source: glvd | ||
Section: misc | ||
Priority: optional | ||
Maintainer: Garden Linux <[email protected]> | ||
Build-Depends: | ||
debhelper-compat (= 13), | ||
git, | ||
golang, | ||
Standards-Version: 4.6.0 | ||
Rules-Requires-Root: no | ||
|
||
Package: glvd | ||
Architecture: any | ||
Depends: | ||
${shlibs:Depends}, | ||
${misc:Depends}, | ||
Description: CLI for glvd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Source: https://github.com/gardenlinux/glvd-client | ||
|
||
Files: * | ||
Copyright: | ||
License: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
debian/.go-build/glvd usr/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/make -f | ||
|
||
include /usr/share/dpkg/pkg-info.mk | ||
|
||
export GOARCH = $(DEB_HOST_ARCH_CPU) | ||
export GOOS = $(DEB_HOST_ARCH_OS) | ||
export GOCACHE = $(CURDIR)/debian/.go-cache | ||
export CGO_ENABLED = 0 | ||
export GIT_COMMIT = $(shell git rev-parse HEAD) | ||
export GIT_DIRTY = $(shell test -n "`git status --porcelain`" && echo "dirty" || echo "clean") | ||
|
||
source: | ||
: | ||
|
||
%: | ||
dh $@ --buildsystem=none | ||
|
||
override_dh_auto_build: | ||
go build -o debian/.go-build/glvd . | ||
|
||
override_dh_auto_clean: | ||
go clean | ||
|
||
# Should be disabled by default and breaks (https://bugs.debian.org/1016563) | ||
override_dh_dwz: | ||
: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
version_suffix=.`date +%s`gl~dev | ||
import_src . |