/
rules
executable file
·30 lines (26 loc) · 1.05 KB
/
rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_install:
bash ./debian/setup-venv.sh client
bash ./debian/setup-venv.sh export
bash ./debian/setup-venv.sh log
bash ./debian/setup-venv.sh proxy
dh_auto_install
dh_apparmor --profile-name=usr.bin.securedrop-client -psecuredrop-client
override_dh_strip_nondeterminism:
find ./debian/ -type f -name '*.pyc' -delete
find ./debian/ -type d -name '__pycache__' -delete
find ./debian/ -type f -name 'pip-selfcheck.json' -delete
find ./debian/ -type f -name 'direct_url.json' -delete
find ./debian/ -type f -name 'RECORD' -delete
dh_strip_nondeterminism $@
# Override debhelper's auto-generated files in `/etc/`
# to force an exact replacement of the files we are modifying
# there (specifically, `/etc/apt/trusted.gpg.d/securedrop-keyring.gpg`
# for the keyring package and `/etc/udisks2/tcrypt.conf` for the
# securedrop-export package).
override_dh_installdeb:
dh_installdeb
cat /dev/null > ${CURDIR}/debian/securedrop-keyring/DEBIAN/conffiles
cat /dev/null > ${CURDIR}/debian/securedrop-export/DEBIAN/conffiles