Skip to content

Commit

Permalink
Add katello-host-tools for debian/ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Jul 29, 2021
1 parent 539b5b8 commit 6c35b23
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/katello-host-tools/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
katello-host-tools (3.5.5-1) unstable; urgency=medium

* Initial packaging attempts

-- Bernhard Suttner <[email protected]> Wed, 12 May 2021 08:42:23 +0100
1 change: 1 addition & 0 deletions client/katello-host-tools/debian/clean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.egg-info/*
1 change: 1 addition & 0 deletions client/katello-host-tools/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
30 changes: 30 additions & 0 deletions client/katello-host-tools/debian/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/katello-host-tools/debian/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: 2017 Matthias Dellweg <[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,3 @@
#! /usr/bin/dh-exec
extra/81-tracer-upload-apt => /etc/apt/apt.conf.d/81-tracer-upload
src/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
28 changes: 28 additions & 0 deletions client/katello-host-tools/debian/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/katello-host-tools/debian/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/katello-host-tools/debian/source/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"

0 comments on commit 6c35b23

Please sign in to comment.