From 7191d07d7687e0f0a28db3d31b8d8ef20fca6a48 Mon Sep 17 00:00:00 2001 From: Enno Gotthold Date: Thu, 14 Nov 2024 14:31:10 +0100 Subject: [PATCH] Debian: Add OBS compatible dsc files --- packaging/deb/cobbler-cli.dsc | 9 +++++++++ packaging/deb/debian.changelog | 5 +++++ packaging/deb/debian.cobbler-cli.install | 1 + packaging/deb/debian.compat | 1 + packaging/deb/debian.control | 13 +++++++++++++ packaging/deb/debian.rules | 16 ++++++++++++++++ 6 files changed, 45 insertions(+) create mode 100644 packaging/deb/cobbler-cli.dsc create mode 100644 packaging/deb/debian.changelog create mode 100644 packaging/deb/debian.cobbler-cli.install create mode 100644 packaging/deb/debian.compat create mode 100644 packaging/deb/debian.control create mode 100644 packaging/deb/debian.rules diff --git a/packaging/deb/cobbler-cli.dsc b/packaging/deb/cobbler-cli.dsc new file mode 100644 index 0000000..a15f8d8 --- /dev/null +++ b/packaging/deb/cobbler-cli.dsc @@ -0,0 +1,9 @@ +Format: 1.0 +Source: cobbler-cli +Maintainer: Cobbler Team +Standards-Version: 3.9.6 +Version: 0.0.1 +Homepage: https://github.com/cobbler/cli +Build-Depends: debhelper (>= 12~), bash-completion, golang-go +DEBTRANSFORM-TAR: cobbler-cli-0.0.1.tar.gz +DEBTRANSFORM-FILES-TAR: vendor.tar.gz diff --git a/packaging/deb/debian.changelog b/packaging/deb/debian.changelog new file mode 100644 index 0000000..75345a8 --- /dev/null +++ b/packaging/deb/debian.changelog @@ -0,0 +1,5 @@ +cobbler-cli (0.0.1) unstable; urgency=low + + * Initial packaging of version 0.0.1 + + -- Enno Gotthold Thu, 14 Nov 2024 00:00:00 +0000 diff --git a/packaging/deb/debian.cobbler-cli.install b/packaging/deb/debian.cobbler-cli.install new file mode 100644 index 0000000..f20da6a --- /dev/null +++ b/packaging/deb/debian.cobbler-cli.install @@ -0,0 +1 @@ +cobbler /usr/bin diff --git a/packaging/deb/debian.compat b/packaging/deb/debian.compat new file mode 100644 index 0000000..9a03714 --- /dev/null +++ b/packaging/deb/debian.compat @@ -0,0 +1 @@ +10 \ No newline at end of file diff --git a/packaging/deb/debian.control b/packaging/deb/debian.control new file mode 100644 index 0000000..9bad844 --- /dev/null +++ b/packaging/deb/debian.control @@ -0,0 +1,13 @@ +Source: cobbler-cli +Section: admin +Priority: extra +Maintainer: Cobbler Team +Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 12~), bash-completion, golang-go +Homepage: https://github.com/cobbler/cli + +Package: cobbler-cli +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} +Description: Cobbler Golang based CLI diff --git a/packaging/deb/debian.rules b/packaging/deb/debian.rules new file mode 100644 index 0000000..3a834e3 --- /dev/null +++ b/packaging/deb/debian.rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +export DH_VERBOSE = 1 +export GOPATH = $(CURDIR)/.go +export PATH := /usr/lib/go/bin:$(PATH) +export CGO_ENABLED = 0 + +%: + dh $@ --with=bash-completion + +override_dh_auto_build: + @mv debian/vendor . + dh_auto_build + +override_dh_auto_test: + @echo "Integrations-Tests disabled during build"