Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add katello host tools for Debian/Ubuntu #11027

Draft
wants to merge 2 commits into
base: deb/develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4.0-1) unstable; urgency=medium

* Initial packaging attempts

-- Bernhard Suttner <[email protected]> Mon, 07 Nov 2022 16:40:42 +0100
23 changes: 23 additions & 0 deletions client/focal/katello-host-tools/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Source: katello-host-tools
Section: admin
Priority: optional
Maintainer: ATIX Team <[email protected]>
Build-Depends: debhelper-compat (= 12),
dh-exec,
dh-python,
python3-setuptools,
python3-all
Standards-Version: 4.6.1
Homepage: https://github.com/katello/katello-host-tools

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,5 @@
#!/usr/bin/dh-exec
usr/bin/katello-tracer-upload
usr/lib/python*/dist-packages/katello/tracer/
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
11 changes: 11 additions & 0 deletions client/focal/katello-host-tools/katello-host-tools.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
usr/bin/katello-enabled-repos-upload
usr/bin/katello-package-upload
usr/lib/python*/dist-packages/katello_host_tools-*.egg-info
usr/lib/python*/dist-packages/katello/__init__.py
usr/lib/python*/dist-packages/katello/constants.py
usr/lib/python*/dist-packages/katello/enabled_report.py
usr/lib/python*/dist-packages/katello/packages.py
usr/lib/python*/dist-packages/katello/repos.py
usr/lib/python*/dist-packages/katello/scripts.py
usr/lib/python*/dist-packages/katello/uep.py
usr/lib/python*/dist-packages/katello/utils.py
9 changes: 9 additions & 0 deletions client/focal/katello-host-tools/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/make -f
#export PYBUILD_NAME=katello-host-tools
export PYBUILD_DISABLE=test
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/katello/contrib' '{destdir}/{install_dir}/katello/tracer/zypper.py' '{destdir}/{install_dir}/zypper_plugins' '{destdir}/{install_dir}/dnf-plugins' '{destdir}/{install_dir}/yum-plugins'

include /usr/share/dpkg/default.mk

%:
dh $@ --with python3 --buildsystem=pybuild
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/"