mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
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
# 9d36a9fb3c)
# 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 <lukas.puehringer@nyu.edu>
This commit is contained in:
parent
60875f912b
commit
3d2c9c370e
9 changed files with 140 additions and 0 deletions
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
python-tuf (0.11.2.dev3-1) unstable; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Lukas Puehringer <lukas.puehringer@nyu.edu> Thu, 27 Jun 2019 09:06:21 -0400
|
||||
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
12
|
||||
32
debian/control
vendored
Normal file
32
debian/control
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
Source: python-tuf
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Maintainer: tuf developers <theupdateframework@googlegroups.com>
|
||||
Uploaders:
|
||||
Lukas Puehringer <lukas.puehringer@nyu.edu>,
|
||||
Justin Cappos <jcappos@nyu.edu>,
|
||||
Build-Depends:
|
||||
dh-python,
|
||||
debhelper (>= 12~),
|
||||
python3-all,
|
||||
python3-setuptools,
|
||||
python3-six,
|
||||
python3-iso8601,
|
||||
python3-requests,
|
||||
python3-securesystemslib (>= 0.11.3),
|
||||
Standards-Version: 4.3.0
|
||||
Homepage: https://theupdateframework.com
|
||||
Vcs-Git: https://github.com/theupdateframework/tuf.git
|
||||
Vcs-Browser: https://github.com/theupdateframework/tuf
|
||||
|
||||
Package: python3-tuf
|
||||
Architecture: all
|
||||
Depends:
|
||||
${python3:Depends},
|
||||
${misc:Depends},
|
||||
Description: plug-and-play library for securing a software updater
|
||||
The Update Framework (TUF) helps developers to maintain the security of a
|
||||
software update system, even against attackers that compromise the repository
|
||||
or signing keys.
|
||||
.
|
||||
tuf is developed at the Secure Systems Lab of NYU.
|
||||
24
debian/copyright
vendored
Normal file
24
debian/copyright
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: tuf
|
||||
Source: https://github.com/theupdateframework
|
||||
|
||||
Files: *
|
||||
Copyright: 2018 New York University
|
||||
License: Apache-2.0
|
||||
Copyright 2018 New York University
|
||||
.
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian systems, the full text of the Apache-2.0
|
||||
License can be found in the file
|
||||
`/usr/share/common-licenses/Apache-2.0'.
|
||||
7
debian/rules
vendored
Executable file
7
debian/rules
vendored
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
#export DH_VERBOSE = 1
|
||||
export PYBUILD_NAME = tuf
|
||||
|
||||
%:
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
||||
11
debian/source/options
vendored
Normal file
11
debian/source/options
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Default ignore patterns contains *.o and *.a. So we need to define our own
|
||||
# patterns to get them included.
|
||||
--tar-ignore=.*.sw?
|
||||
--tar-ignore=*/*~
|
||||
--tar-ignore=,,*
|
||||
--tar-ignore=.[#~]*
|
||||
--tar-ignore=.deps
|
||||
--tar-ignore=.git
|
||||
--tar-ignore=.gitattributes
|
||||
--tar-ignore=.gitignore
|
||||
--tar-ignore=.gitmodules
|
||||
56
debian/upstream/signing-key.asc
vendored
Normal file
56
debian/upstream/signing-key.asc
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
pub rsa4096 2015-11-24 [SC] [expires: 2019-11-24]
|
||||
C2FB9C910758B6827BC43233BC0C6DEDD5E5CC03
|
||||
uid [ full ] Sebastien Awwad <sebastien.awwad@gmail.com>
|
||||
sub rsa4096 2015-11-24 [E] [expires: 2019-11-24]
|
||||
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBFZUo/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UnRqoJc
|
||||
rwDr2z4WuRfiMt+fGtbk9HRaLJvx
|
||||
=Cr7l
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
3
debian/watch
vendored
Normal file
3
debian/watch
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version=3
|
||||
opts=uversionmangle=s/(rc|a|b|c)/~$1/,pgpsigurlmangle=s/$/.asc/ \
|
||||
https://pypi.debian.net/tuf/tuf-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
|
||||
Loading…
Reference in a new issue