Skip to content
Open
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
29 changes: 29 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
htgettoken (2.4-0.1) unstable; urgency=medium

* New upstream release 2.4
* Some command line options added

-- Steffen Grunewald <steffen.grunewald@ligo.org> 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 <steffen.grunewald@ligo.org> Fri, 09 May 2025 10:28:00 +0200

htgettoken (2.1-1) unstable; urgency=medium

* New upstream release

-- Steffen Grunewald <steffen.grunewald@ligo.org> 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 <steffen.grunewald@ligo.org> Sat, 27 Jul 2024 18:45:00 +0200

1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
32 changes: 32 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Source: htgettoken
Section: science
Priority: optional
Maintainer: Steffen Grunewald <steffen.grunewald@ligo.org>
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
58 changes: 58 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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 <steffen.grunewald@ligo.org>
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".
2 changes: 2 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
README.md
COPYING
3 changes: 3 additions & 0 deletions debian/htgettoken.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usr/bin/ht*
usr/lib/python*/*-packages/ht*
usr/share/man/man1/*
32 changes: 32 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
10 changes: 10 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -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%<project>-$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)))