Skip to content

Commit a2532a1

Browse files
author
Lukas Puehringer
committed
Add debian metadata
Used these instructions as guide to create debian metadata: https://wiki.debian.org/Packaging/Intro#The_packaging_work_flow https://wiki.debian.org/Python/LibraryStyleGuide Debian build instructions for upstream release 0.11.2.dev3: ----------------------------------------------------------- # Assuming sbuild is installed and chroot is created # https://wiki.debian.org/sbuild # Download upstream tarball + signature and rename to expected pattern wget https://github.com/theupdateframework/tuf/releases/download/v0.11.2.dev3/tuf-0.11.2.dev3.tar.gz \ -O python-tuf_0.11.2.dev3.orig.tar.gz wget https://github.com/theupdateframework/tuf/releases/download/v0.11.2.dev3/tuf-0.11.2.dev3.tar.gz.asc \ -O python-tuf_0.11.2.dev3.orig.tar.gz.asc # Extract upstream tarball tar xf python-tuf_0.11.2.dev3.orig.tar.gz # Clone upstream repo for debian files and tests git clone https://github.com/theupdateframework/tuf.git \ tuf-upstream # Copy debian files (from debian branch) git -C tuf-upstream checkout debian -- cp -r tuf-upstream/debian tuf-0.11.2.dev3/ # Change to unpacked tarball cd tuf-0.11.2.dev3 # Build (w/o tests) # NOTE: (1) Securessystemslib is not yet in debian, you need to first build it # locally (see instructions at # secure-systems-lab/securesystemslib@9d36a9f) # and pass it as `--extra-package` # NOTE: (2) `--extra-package` does not seem to work for tests during sbuild, # hence the nocheck option. This should be easier once securesystemslib is in. DEB_BUILD_OPTIONS=nocheck sbuild -A -s -d unstable \ --extra-package /path/to/python3-securesystemslib_0.11.3-1_all.deb # Sign debian files (replace keyid if necessary) debsign -k 8BA69B87D43BE294F23E812089A2AD3C07D962E8 Signed-off-by: Lukas Puehringer <[email protected]>
1 parent 65e5ee1 commit a2532a1

File tree

9 files changed

+140
-0
lines changed

9 files changed

+140
-0
lines changed

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python-tuf (0.11.2.dev3-1) unstable; urgency=low
2+
3+
* Initial release.
4+
5+
-- Lukas Puehringer <[email protected]> Thu, 27 Jun 2019 09:06:21 -0400

debian/compat

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

debian/control

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Source: python-tuf
2+
Section: devel
3+
Priority: optional
4+
Maintainer: tuf developers <[email protected]>
5+
Uploaders:
6+
Lukas Puehringer <[email protected]>,
7+
Justin Cappos <[email protected]>,
8+
Build-Depends:
9+
dh-python,
10+
debhelper (>= 12~),
11+
python3-all,
12+
python3-setuptools,
13+
python3-six,
14+
python3-iso8601,
15+
python3-requests,
16+
python3-securesystemslib (>= 0.11.3),
17+
Standards-Version: 4.3.0
18+
Homepage: https://theupdateframework.com
19+
Vcs-Git: https://github.com/theupdateframework/tuf.git
20+
Vcs-Browser: https://github.com/theupdateframework/tuf
21+
22+
Package: python3-tuf
23+
Architecture: all
24+
Depends:
25+
${python3:Depends},
26+
${misc:Depends},
27+
Description: plug-and-play library for securing a software updater
28+
The Update Framework (TUF) helps developers to maintain the security of a
29+
software update system, even against attackers that compromise the repository
30+
or signing keys.
31+
.
32+
tuf is developed at the Secure Systems Lab of NYU.

debian/copyright

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: tuf
3+
Source: https://github.com/theupdateframework
4+
5+
Files: *
6+
Copyright: 2018 New York University
7+
License: Apache-2.0
8+
Copyright 2018 New York University
9+
.
10+
Licensed under the Apache License, Version 2.0 (the "License");
11+
you may not use this file except in compliance with the License.
12+
You may obtain a copy of the License at
13+
.
14+
http://www.apache.org/licenses/LICENSE-2.0
15+
.
16+
Unless required by applicable law or agreed to in writing, software
17+
distributed under the License is distributed on an "AS IS" BASIS,
18+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
See the License for the specific language governing permissions and
20+
limitations under the License.
21+
.
22+
On Debian systems, the full text of the Apache-2.0
23+
License can be found in the file
24+
`/usr/share/common-licenses/Apache-2.0'.

debian/rules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/make -f
2+
3+
#export DH_VERBOSE = 1
4+
export PYBUILD_NAME = tuf
5+
6+
%:
7+
dh $@ --with python3 --buildsystem=pybuild

debian/source/format

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

debian/source/options

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Default ignore patterns contains *.o and *.a. So we need to define our own
2+
# patterns to get them included.
3+
--tar-ignore=.*.sw?
4+
--tar-ignore=*/*~
5+
--tar-ignore=,,*
6+
--tar-ignore=.[#~]*
7+
--tar-ignore=.deps
8+
--tar-ignore=.git
9+
--tar-ignore=.gitattributes
10+
--tar-ignore=.gitignore
11+
--tar-ignore=.gitmodules

debian/upstream/signing-key.asc

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
pub rsa4096 2015-11-24 [SC] [expires: 2019-11-24]
2+
C2FB9C910758B6827BC43233BC0C6DEDD5E5CC03
3+
uid [ full ] Sebastien Awwad <[email protected]>
4+
sub rsa4096 2015-11-24 [E] [expires: 2019-11-24]
5+
6+
-----BEGIN PGP PUBLIC KEY BLOCK-----
7+
8+
mQINBFZUo/cBEAD4iHZNshzRMPlF1BjaTM0ZeUMMlEm6j6Ej8QuuRqu4rcHm1yUA
9+
Lht3vPy58SvwEezdsbRTAsYTCxMJ970wROy7XlOOKUqK09jnrUFvYfIQbgulBBcF
10+
yGKyKBy6nNwDVBPWVk9gW/hL5JM42K1lK6m+/nUAnW1ntR+ApBbiA0o7nGLeNVhU
11+
6KLgQFWgQpVkpoD1oEpbmHwxiBcrGdwDGJM7Pit/T46M161PPmYs4c4x2VR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P3AhsMBQkHhh+AAAoJELwMbe3V5cwDS+sP/jZsgboeMJNwlE1c
44+
I4214kiJG4Xe6fWRJsuFY5HkfbAPrkmOtwYpLmlOl2MDglgacHgM17F9lSoOHBFf
45+
cfWw7yoN3ymVxKALbFw7E4oIxw/0oWJ8jDc7y/rx26nAZty5HjAUbGbEUZFZdPHc
46+
oXaghj5Mu5VId/cBytxMPwP8g2IOrAHu9hgLSLtS/iHz2Kgfr0llo7pDjfTpkZhO
47+
AXIJ4VOZCvkfpSzws/4h7EhDlakfQEOKGDG1VVe8mhsCMh2ZqCvXFtxMJHVODTYv
48+
U5jc6c2C3zAfQmmNwHCz1gnI0uE8xYIAyTINIax3QUbfSJI9un71kxH3faNqCiLh
49+
NghzcfBGO5K7JU1lfwUOE5GOZqgPp0pjPEa9UckvQ0q1+j4uSuKGi77ej0EfGHCB
50+
IHA3B9DT8MDeiQZdCewiEgBcdKkZn4sm6EBqsYdwcYiJwAYxje2ZqWcAQijfo3XW
51+
kqscWLBSDLM0uTSbOwUylk9VPF7bFKPQT7qxcBK0QWhA1DR8VNucSNynnz9uYOzO
52+
UbMNkFTxgC1ehWk+WQUlW+e3QL9xaF5GjIuaw5gDveORUV6se82e1+0dp/pi/rRX
53+
mLv3/HMgMgxRVJtTm2PUO0PYWk4aJux5FP0LKek999mx87rpm7rK0SMjAUnRqoJc
54+
rwDr2z4WuRfiMt+fGtbk9HRaLJvx
55+
=Cr7l
56+
-----END PGP PUBLIC KEY BLOCK-----

debian/watch

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version=3
2+
opts=uversionmangle=s/(rc|a|b|c)/~$1/,pgpsigurlmangle=s/$/.asc/ \
3+
https://pypi.debian.net/tuf/tuf-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

0 commit comments

Comments
 (0)