Skip to content

Commit

Permalink
Use os-dependent client build env
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Nov 7, 2022
1 parent d286a93 commit 23ec70b
Show file tree
Hide file tree
Showing 24 changed files with 120 additions and 10 deletions.
File renamed without changes.
5 changes: 5 additions & 0 deletions client/buster/katello-host-tools/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
katello-host-tools (4.2.2-1) unstable; urgency=medium

* Initial packaging attempts

-- Bernhard Suttner <[email protected]> Mon, 07 Nov 2022 16:41:42 +0100
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /usr/bin/dh-exec
katello/contrib/extra/81-tracer-upload-apt => /etc/apt/apt.conf.d/81-tracer-upload
katello/contrib/extra/katello-tracer-upload.cron => /etc/cron.d/katello-host-tools
katello/apt_plugins/tracer_upload.py => /usr/bin/tracer-upload
File renamed without changes.
1 change: 1 addition & 0 deletions client/focal/katello-host-tools/build_vars.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BUILD_TYPE=python
5 changes: 5 additions & 0 deletions client/focal/katello-host-tools/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
katello-host-tools (4.2.2-1) unstable; urgency=medium

* Initial packaging attempts

-- Bernhard Suttner <[email protected]> Mon, 07 Nov 2022 16:40:42 +0100
1 change: 1 addition & 0 deletions client/focal/katello-host-tools/clean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.egg-info/*
1 change: 1 addition & 0 deletions client/focal/katello-host-tools/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
30 changes: 30 additions & 0 deletions client/focal/katello-host-tools/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Source: katello-host-tools
Section: unknown
Priority: optional
Maintainer: ATIX Team <[email protected]>
Build-Depends: debhelper (>= 9),
dh-exec,
dh-python,
lsb-release,
python3-setuptools,
python3-all
Standards-Version: 3.9.8
Homepage: https://github.com/katello/katello-host-tools
X-Python-Version: >= 2.6
X-Python3-Version: >= 3.2

Package: katello-host-tools
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, python3-subscription-manager
Description:
.
A set of commands that support a Katello host including faster package profile uploading and bound repository reporting.
.

Package: katello-host-tools-tracer
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}, katello-host-tools
Description:
.
Adds Tracer functionality to a client managed by katello-host-tools.
.
38 changes: 38 additions & 0 deletions client/focal/katello-host-tools/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: katello-host-tools
Source: <url://example.com>

Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
License: <special license>
<Put the license of the package here indented by 1 space>
<This follows the format of Description: lines in control file>
.
<Including paragraphs>

# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2021 Bernhard Suttner <[email protected]>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /usr/bin/dh-exec
katello/contrib/extra/81-tracer-upload-apt => /etc/apt/apt.conf.d/81-tracer-upload
katello/contrib/extra/katello-tracer-upload.cron => /etc/cron.d/katello-host-tools
katello/apt_plugins/tracer_upload.py => /usr/bin/tracer-upload
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/katello/*.py katello
28 changes: 28 additions & 0 deletions client/focal/katello-host-tools/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
export DH_VERBOSE = 1

export PYBUILD_NAME=katello-host-tools
export PYBUILD_DISABLE=test
export PYBUILD_DESTDIR_python2=${PWD}/debian/python-${PYBUILD_NAME}/
export PYBUILD_DESTDIR_python2-dbg=${PWD}/debian/python-${PYBUILD_NAME}-dbg/
export PYBUILD_DESTDIR_python3=${PWD}/debian/python3-${PYBUILD_NAME}/
export PYBUILD_DESTDIR_python3-dbg=${PWD}/debian/python3-${PYBUILD_NAME}-dbg/

export PYTHON=python3
export INCLUDE_SYSPURPOSE=1
export PYBUILD_SYSTEM=custom

include /usr/share/dpkg/default.mk

%:
dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
dh_auto_clean
rm -rf build
rm -rf *.egg-info

override_dh_auto_build:
dh_auto_build
1 change: 1 addition & 0 deletions client/focal/katello-host-tools/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
1 change: 1 addition & 0 deletions client/focal/katello-host-tools/source/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"
5 changes: 0 additions & 5 deletions client/katello-host-tools/debian/changelog

This file was deleted.

This file was deleted.

0 comments on commit 23ec70b

Please sign in to comment.