Skip to content

Commit

Permalink
Adds initial packaging for securedrop-log
Browse files Browse the repository at this point in the history
  • Loading branch information
kushaldas committed Dec 10, 2019
1 parent 7a8c274 commit 64a153b
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ securedrop-workstation-svs-disp: ## Builds Debian metapackage for Disposable VM
securedrop-export: ## Builds Debian package for Qubes Workstation export scripts
PKG_NAME="securedrop-export" ./scripts/build-debianpackage

.PHONY: securedrop-log
securedrop-log: ## Builds Debian package for Qubes Workstation securedrop-log scripts
PKG_NAME="securedrop-log" ./scripts/build-debianpackage

.PHONY: install-deps
install-deps: ## Install initial Debian packaging dependencies
./scripts/install-deps
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-debianpackage
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cp -r "$CUR_DIR/$PKG_NAME/" "$TOP_BUILDDIR/"

# If the package is contained in the list, it should be a python package. In
# that case, we should extract tarball, and validate wheel hashes.
if [[ "${PKG_NAME}" =~ ^(securedrop-client|securedrop-proxy|securedrop-export)$ ]]; then
if [[ "${PKG_NAME}" =~ ^(securedrop-client|securedrop-proxy|securedrop-export|securedrop-log)$ ]]; then
echo "${PKG_NAME} is a Python package"

if [[ -z "${PKG_PATH:-}" ]]; then
Expand Down
5 changes: 5 additions & 0 deletions securedrop-log/debian/changelog-buster
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
securedrop-log (0.0.1+buster) unstable; urgency=medium

* Initial release on Debian buster

-- Kushal Das <[email protected]> Fri, 06 Dec 2019 11:05:38 +0530
1 change: 1 addition & 0 deletions securedrop-log/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
16 changes: 16 additions & 0 deletions securedrop-log/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: securedrop-log
Section: utils
Priority: optional
Maintainer: SecureDrop Team <[email protected]>
Build-Depends: debhelper (>= 9), dh-python, python3-all, python3-setuptools, dh-virtualenv
Standards-Version: 3.9.8
Homepage: https://github.com/freedomofpress/securedrop-log
Vcs-Git: https://github.com/freedomofpress/securedrop-log.git
X-Python-3-Version: >= 3.7

Package: securedrop-log
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}
Description: Python module and qrexec service to store logs for SecureDrop Workstation
This package provides Python module and qrexec service files to create a logging VM in
SecureDrop Workstation project in Qubes.
27 changes: 27 additions & 0 deletions securedrop-log/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Upstream-Name: securedrop-log
Source: https://github.com/freedomofpress/securedrop-log

Files: *
Copyright: 2019 Freedom of the Press Foundation
License: GPL-3.0+

Files: debian/*
Copyright: 2019 Freedom of the Press Foundation <[email protected]>
License: GPL-3.0+

License: GPL-3.0+
This program 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 3 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 3 can be found in "/usr/share/common-licenses/GPL-3".
11 changes: 11 additions & 0 deletions securedrop-log/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/make -f

%:
dh $@ --with python-virtualenv --python /usr/bin/python3 --setuptools --index-url https://dev-bin.ops.securedrop.org/simple --requirements build-requirements.txt

override_dh_strip_nondeterminism:
find ./debian/ -type f -name '*.pyc' -delete
find ./debian/ -type f -name 'pip-selfcheck.json' -delete
find -type f -name RECORD -exec sed -i -e '/.*\.pyc.*/d' {} +
dh_strip_nondeterminism $@

1 change: 1 addition & 0 deletions securedrop-log/debian/securedrop-log.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
securedrop.Log etc/qubes-rpc/
1 change: 1 addition & 0 deletions securedrop-log/debian/securedrop-log.links
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
opt/venvs/securedrop-log/bin/securedrop-log usr/sbin/securedrop-log
7 changes: 7 additions & 0 deletions securedrop-log/debian/securedrop-log.triggers
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Register interest in Python interpreter changes; and
# don't make the Python package dependent on the virtualenv package
# processing (noawait)
interest-noawait /usr/bin/python3

# Also provide a symbolic trigger for all dh-virtualenv packages
interest dh-virtualenv-interpreter-update

0 comments on commit 64a153b

Please sign in to comment.