Skip to content

Commit c4a7ca1

Browse files
committed
Updated debian build files
1 parent 9dcc769 commit c4a7ca1

File tree

13 files changed

+58
-14
lines changed

13 files changed

+58
-14
lines changed

deb/changelog

Lines changed: 0 additions & 5 deletions
This file was deleted.

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
File renamed without changes.

deb/control renamed to debian/control

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
Source: libscitokens
1+
Source: scitokens-cpp
22
Section: science
33
Priority: optional
44
Maintainer: Tim Theisen <tim@cs.wisc.edu>
5-
Build-Depends: cmake,
6-
debhelper (>=9),
7-
libcurl4-openssl-dev,
8-
libssl-dev,
9-
sqlite,
10-
uuid-dev
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
1113
Standards-Version: 3.9.8
1214
Homepage: https://github.com/scitokens/scitokens-cpp
1315

14-
Package: libscitokens
16+
Package: libscitokens0
1517
Section: libs
1618
Architecture: any
1719
Multi-Arch: same
@@ -29,7 +31,7 @@ Package: libscitokens-dev
2931
Section: libdevel
3032
Architecture: any
3133
Multi-Arch: same
32-
Depends: libscitokens (= ${binary:Version}), ${misc:Depends}
34+
Depends: libscitokens0 (= ${binary:Version}), ${misc:Depends}
3335
Description: Header files for the libscitokens public interfaces
3436
SciTokens provide a token format for distributed authorization.
3537
The tokens are self-describing, can be verified in a distributed fashion
File renamed without changes.

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}
File renamed without changes.

0 commit comments

Comments
 (0)