diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..669447e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,29 @@ +htgettoken (2.4-0.1) unstable; urgency=medium + + * New upstream release 2.4 + * Some command line options added + + -- Steffen Grunewald Mon, 23 Jun 2025 11:30:00 +0200 + +htgettoken (2.2-2) unstable; urgency=medium + + * New upstream release + * Follow 2.2-2 release: patch htgettoken shebang, add -I + + -- Steffen Grunewald Fri, 09 May 2025 10:28:00 +0200 + +htgettoken (2.1-1) unstable; urgency=medium + + * New upstream release + + -- Steffen Grunewald Thu, 27 Feb 2025 10:25:00 +0100 + +htgettoken (2.0-1) unstable; urgency=medium + + * New upstream release + * Ignored spec file update to -2 + * New dependencies + * Build --with=python3 --buildsystem=pybuild, dh-python + + -- Steffen Grunewald Sat, 27 Jul 2024 18:45:00 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..14f02ea --- /dev/null +++ b/debian/control @@ -0,0 +1,32 @@ +Source: htgettoken +Section: science +Priority: optional +Maintainer: Steffen Grunewald +Build-Depends: debhelper (>= 10~), + dh-python, + python3-all-dev, + dh-python, + python3-pip, + python3-setuptools, + python3-wheel, + python3-paramiko, + python3-gssapi, + python3-urllib3, +# pybuild-plugin-pyproject, +# python3-setuptools (>= 61), +# python3-setuptools-scm (>= 6.2), +Standards-Version: 4.1.3 +X-Python3-Version: >= 3.7 +Homepage: https://github.com/fermitools/htgettoken.git + +Package: htgettoken +Architecture: all +Depends: ${python3:Depends}, + ${shlibs:Depends}, ${misc:Depends}, + python3-paramiko, + python3-gssapi, + python3-urllib3, + jq, +Recommends: scitokens-cpp +Description: Get OIDC bearer tokens by interacting with Hashicorp vault + htgettoken gets OIDC bearer tokens by interacting with Hashicorp vault diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a98e5fa --- /dev/null +++ b/debian/copyright @@ -0,0 +1,58 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: htgettoken +Source: https://github.com/fermitools/htgettoken.git + +Files: * +Copyright: 2020 Fermi National Accelerator Laboratory +License: BSD License, as below: + Fermilab Software Legal Information (BSD License) + Copied from http://fermitools.fnal.gov/about/terms.html + . + Copyright (c) 2020, FERMI NATIONAL ACCELERATOR LABORATORY + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the FERMI NATIONAL ACCELERATOR LABORATORY, + nor the names of its contributors may be used to endorse or + promote products derived from this software without specific + prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Files: debian/* +Copyright: 2022-2025 Steffen Grunewald +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 + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..7758d58 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README.md +COPYING diff --git a/debian/htgettoken.install b/debian/htgettoken.install new file mode 100644 index 0000000..16ca076 --- /dev/null +++ b/debian/htgettoken.install @@ -0,0 +1,3 @@ +usr/bin/ht* +usr/lib/python*/*-packages/ht* +usr/share/man/man1/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d964bb8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f + +export DH_VERBOSE = 1 +#export PYBUILD_NAME = htgettoken + +%: + dh $@ --with=python3 --buildsystem=pybuild + +#override_dh_auto_clean: + +override_dh_auto_install: + dh_auto_install --destdir=$(CURDIR)/debian/tmp + cd $(CURDIR)/debian/tmp/usr/bin && \ + ln -s htdecodetoken httokendecode + mkdir -p \ + $(CURDIR)/debian/tmp/usr/share/man/man1 + cp -pn $(CURDIR)/*.1 \ + $(CURDIR)/debian/tmp/usr/share/man/man1/ + cd $(CURDIR)/debian/tmp/usr/share/man/man1 && \ + ln -s htdecodetoken.1.gz httokendecode.1.gz + +#override_dh_install: +# dh_install + +override_dh_python3: + # first let dh_python3 handle some shebangs + dh_python3 + # then modify them + # makefile semantics require doubling the dollar sign! + sed -i '1s/$$/ -I/' $(CURDIR)/debian/*/usr/bin/htgettoken + # check the outcome + ls $(CURDIR)/debian/*/usr/bin/htgettoken | xargs -rt head -n1 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..07e0469 --- /dev/null +++ b/debian/watch @@ -0,0 +1,10 @@ +# Compulsory line, this is a version 4 file +version=4 + +# GitHub hosted projects +opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%-$1.tar.gz%" \ + https://github.com/fermitools/htgettoken/tags \ + (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate + +# PyPI +# https://pypi.debian.net/htgettoken/htgettoken-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))