Skip to content

Commit

Permalink
Merge pull request #425 from freedomofpress/add-files-rpmspec
Browse files Browse the repository at this point in the history
Add missing files to rpmspec and manifest
  • Loading branch information
redshiftzero authored Jan 23, 2020
2 parents 823815c + 4a0ae4d commit 73dfb8c
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 10 deletions.
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Status

Ready for review / Work in progress

## Description of Changes

Fixes #.

Changes proposed in this pull request:

## Testing

How should the reviewer test this PR?
Write out any special testing steps here.

## Checklist

### If you have made changes to the provisioning logic

- [ ] Linting (`make flake8`) and tests (`make test`) pass in dom0 of a Qubes install

- [ ] I have added/removed files, and have updated packaging logic in MANIFEST.in and rpm-build/SPECS/securedrop-workstation-dom0-config.spec
8 changes: 8 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
include dom0/*.sls
include dom0/*.top
include dom0/*.j2
include dom0/securedrop-update
include dom0/securedrop-login
include dom0/securedrop-launcher.desktop
include dom0/securedrop-handle-upgrade
include config.json.example
include README.md
include LICENSE
include VERSION
include Makefile
include sd-proxy/*
include sd-whonix/*
include sd-app/*
include sd-workstation/*
include scripts/*
include sys-firewall/*
include launcher/*.py
include launcher/sdw_updater_gui/*.py
32 changes: 22 additions & 10 deletions rpm-build/SPECS/securedrop-workstation-dom0-config.spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,46 @@ configuration over time.
%{__python3} setup.py build

%install
%{__python3} setup.py install --skip-build --root %{buildroot}
%{__python3} setup.py install --no-compile --skip-build --root %{buildroot}
install -m 755 -d %{buildroot}/opt/securedrop/launcher
install -m 755 -d %{buildroot}/opt/securedrop/launcher/sdw_updater_gui
install -m 755 -d %{buildroot}/srv
install -m 755 -d %{buildroot}/srv/salt/sd
install -m 755 -d %{buildroot}/srv/salt/sd/sd-app
install -m 755 -d %{buildroot}/srv/salt/sd/sd-proxy
install -m 755 -d %{buildroot}/srv/salt/sd/sd-journalist
install -m 755 -d %{buildroot}/srv/salt/sd/sd-whonix
install -m 755 -d %{buildroot}/srv/salt/sd/sd-workstation
install -m 755 -d %{buildroot}/usr/share/securedrop-workstation-dom0-config/scripts
install -m 755 -d %{buildroot}/usr/share/securedrop/icons
install -m 755 -d %{buildroot}/srv/salt/sd/sys-firewall
install -m 755 -d %{buildroot}/usr/share/%{name}/scripts
install -m 644 dom0/*.sls %{buildroot}/srv/salt/
install -m 644 dom0/*.top %{buildroot}/srv/salt/
install -m 644 dom0/*.j2 %{buildroot}/srv/salt/
install -m 644 dom0/securedrop-update %{buildroot}/srv/salt/
install -m 644 dom0/securedrop-login %{buildroot}/srv/salt/
install -m 644 dom0/securedrop-launcher.desktop %{buildroot}/srv/salt/
install -m 655 dom0/securedrop-handle-upgrade %{buildroot}/srv/salt/
# The next file should get installed via RPM not via salt
install -m 755 dom0/securedrop-update %{buildroot}/srv/salt/securedrop-update
install sd-app/* %{buildroot}/srv/salt/sd/sd-app/
install sd-workstation/* %{buildroot}/srv/salt/sd/sd-workstation/
install -m 644 sd-proxy/logo-small.png %{buildroot}/usr/share/securedrop/icons/sd-logo.png
install -m 644 sd-app/* %{buildroot}/srv/salt/sd/sd-app/
install -m 644 sd-proxy/* %{buildroot}/srv/salt/sd/sd-proxy/
install -m 644 sd-whonix/* %{buildroot}/srv/salt/sd/sd-whonix/
install -m 644 sd-workstation/* %{buildroot}/srv/salt/sd/sd-workstation/
install -m 644 sys-firewall/* %{buildroot}/srv/salt/sd/sys-firewall/
install -m 644 Makefile %{buildroot}/usr/share/%{name}/Makefile
install -m 755 scripts/* %{buildroot}/usr/share/%{name}/scripts/
install -m 644 launcher/*.py %{buildroot}/opt/securedrop/launcher/
install -m 644 launcher/sdw_updater_gui/*.py %{buildroot}/opt/securedrop/launcher/sdw_updater_gui/
%files
%doc README.md LICENSE
%{python3_sitelib}/securedrop_workstation_dom0_config*
%{_datadir}/%{name}
%{_datadir}/securedrop/*
%{_bindir}/securedrop-update
/srv/salt/sd*
/srv/salt/dom0-xfce-desktop-file.j2
/srv/salt/securedrop-*
/srv/salt/fpf*
/srv/salt/securedrop-update

/opt/securedrop/*
%post
find /srv/salt -maxdepth 1 -type f -iname '*.top' \
| xargs -n1 basename \
Expand All @@ -69,4 +82,3 @@ find /srv/salt -maxdepth 1 -type f -iname '*.top' \

* Fri Oct 26 2018 Kushal Das <[email protected]> - 0.0.1-1
- First release

0 comments on commit 73dfb8c

Please sign in to comment.