Skip to content

Commit

Permalink
Merge pull request #63 from cobbler/feeature/add-deb-recipe
Browse files Browse the repository at this point in the history
Debian: Add OBS compatible dsc files
  • Loading branch information
SchoolGuy authored Nov 14, 2024
2 parents d317eef + 7191d07 commit 2459e36
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packaging/deb/cobbler-cli.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Format: 1.0
Source: cobbler-cli
Maintainer: Cobbler Team <[email protected]>
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
5 changes: 5 additions & 0 deletions packaging/deb/debian.changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cobbler-cli (0.0.1) unstable; urgency=low

* Initial packaging of version 0.0.1

-- Enno Gotthold <[email protected]> Thu, 14 Nov 2024 00:00:00 +0000
1 change: 1 addition & 0 deletions packaging/deb/debian.cobbler-cli.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cobbler /usr/bin
1 change: 1 addition & 0 deletions packaging/deb/debian.compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
13 changes: 13 additions & 0 deletions packaging/deb/debian.control
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Source: cobbler-cli
Section: admin
Priority: extra
Maintainer: Cobbler Team <[email protected]>
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
16 changes: 16 additions & 0 deletions packaging/deb/debian.rules
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 2459e36

Please sign in to comment.