-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from freedomofpress/add-files-rpmspec
Add missing files to rpmspec and manifest
- Loading branch information
Showing
3 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 \ | ||
|
@@ -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 | ||
|