Skip to content

Commit 94fed5c

Browse files
authored
Merge pull request #38 from timtheisen/master
Add build files for Debian
2 parents 8865f06 + c4a7ca1 commit 94fed5c

File tree

12 files changed

+447
-0
lines changed

12 files changed

+447
-0
lines changed

debian/changelog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
scitokens-cpp (0.5.1-3) unstable; urgency=low
2+
3+
* Updated packaging for Debian
4+
5+
-- Tim Theisen <tim@cs.wisc.edu> Sun, 28 Feb 2021 16:02:24 -0600
6+
7+
scitokens-cpp (0.5.1-1) unstable; urgency=low
8+
9+
* Initial release.
10+
11+
-- Tim Theisen <tim@cs.wisc.edu> Fri, 04 Dec 2020 10:54:24 -0600

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Source: scitokens-cpp
2+
Section: science
3+
Priority: optional
4+
Maintainer: Tim Theisen <tim@cs.wisc.edu>
5+
Build-Depends:
6+
cmake (>=2.6),
7+
debhelper (>=9),
8+
libcurl4-openssl-dev | libcurl4-gnutls-dev,
9+
libsqlite3-dev,
10+
libssl-dev,
11+
pkg-config,
12+
uuid-dev
13+
Standards-Version: 3.9.8
14+
Homepage: https://github.com/scitokens/scitokens-cpp
15+
16+
Package: libscitokens0
17+
Section: libs
18+
Architecture: any
19+
Multi-Arch: same
20+
Pre-Depends: ${misc:Pre-Depends}
21+
Depends: ${misc:Depends}, ${shlibs:Depends}
22+
Description: C++ Implementation of the SciTokens Library
23+
SciTokens provide a token format for distributed authorization
24+
The tokens are self-describing, can be verified in a distributed fashion
25+
(no need to contact the issuer to determine if the token is valid).
26+
This is convenient for a federated environment where several
27+
otherwise-independent storage endpoints want to delegate trust for
28+
an issuer for managing a storage allocation.
29+
30+
Package: libscitokens-dev
31+
Section: libdevel
32+
Architecture: any
33+
Multi-Arch: same
34+
Depends: libscitokens0 (= ${binary:Version}), ${misc:Depends}
35+
Description: Header files for the libscitokens public interfaces
36+
SciTokens provide a token format for distributed authorization.
37+
The tokens are self-describing, can be verified in a distributed fashion
38+
(no need to contact the issuer to determine if the token is valid).
39+
This is convenient for a federated environment where several
40+
otherwise-independent storage endpoints want to delegate trust for
41+
an issuer for managing a storage allocation.

debian/copyright

Lines changed: 342 additions & 0 deletions
Large diffs are not rendered by default.

debian/get-orig-source.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Generate a source tarball including submodules
2+
if [ -z "${1}" ] ; then
3+
echo No tag or branch given
4+
exit 1
5+
fi
6+
ver=${1}
7+
# Remove initial v from tag name for use in filenames
8+
if [ ${ver:0:1} = 'v' ] ; then
9+
fver=${ver:1}
10+
else
11+
fver=${ver}
12+
fi
13+
if [ -r scitokens-cpp_${fver}.orig.tar.gz ] ; then
14+
echo scitokens-cpp_${fver}.orig.tar.gz already exists
15+
exit 1
16+
fi
17+
curdir=$(pwd)
18+
tdir=$(mktemp -d)
19+
cd ${tdir}
20+
git clone https://github.com/scitokens/scitokens-cpp.git
21+
cd scitokens-cpp
22+
git checkout ${ver}
23+
if [ $? -ne 0 ] ; then
24+
echo No such tag or branch: ${ver}
25+
cd ${curdir}
26+
rm -rf ${tdir}
27+
exit 1
28+
fi
29+
git archive --prefix scitokens-cpp_${fver}/ ${ver} -o ${tdir}/scitokens-cpp_${fver}.orig.tar
30+
git submodule update --init
31+
git submodule foreach --recursive "git archive --prefix scitokens-cpp_${fver}/\$path/ \$sha1 -o ${tdir}/\$sha1.tar ; tar -A -f ${tdir}/scitokens-cpp_${fver}.orig.tar ${tdir}/\$sha1.tar ; rm ${tdir}/\$sha1.tar"
32+
cd ${tdir}
33+
gzip scitokens-cpp_${fver}.orig.tar
34+
mv scitokens-cpp_${fver}.orig.tar.gz ${curdir}
35+
cd ${curdir}
36+
rm -rf ${tdir}

debian/libscitokens-dev.install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
debian/tmp/usr/include/scitokens usr/include/
2+
debian/tmp/usr/lib/*/libSciTokens.so

debian/libscitokens.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debian/tmp/usr/lib/*/libSciTokens.so.*

debian/patches/series

Whitespace-only changes.

debian/rules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/make -f
2+
3+
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
4+
5+
%:
6+
dh $@
7+
8+
override_dh_auto_configure:
9+
dh_auto_configure -- -DLIB_INSTALL_DIR=lib/$(DEB_HOST_MULTIARCH)

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

0 commit comments

Comments
 (0)