Skip to content
Commits on Source (3)
torbrowser-launcher (0.3.2-6) unstable; urgency=medium
* debian/rules:
- Remove override_dh_auto_test, it seems fine without it.
- Add override_dh_auto_install, to exclude local apparmor profile
from shipping as conffile nor normal file.
* debian/preinst:
- Create dummy local apparmor profile if it's nonexisting.
(Closes: #934119).
- Update the commit SHA-1.
* debian/control:
- Add a few Depends to Build-Depends to pass dh_auto_test.
-- Roger Shimizu <rosh@debian.org> Mon, 20 Jan 2020 01:06:01 +0900
torbrowser-launcher (0.3.2-5) unstable; urgency=medium
* debian/maintscript:
......
......@@ -10,7 +10,10 @@ Build-Depends:
help2man,
lsb-release,
python3-all,
python3-distro
python3-distro,
python3-gpg,
python3-pyqt5,
python3-requests
Standards-Version: 3.9.8
Rules-Requires-Root: no
Homepage: https://micahflee.com/torbrowser-launcher/
......@@ -24,8 +27,8 @@ Depends:
${python3:Depends},
ca-certificates,
libdbus-glib-1-2,
python3-pyqt5,
python3-gpg,
python3-pyqt5,
python3-requests,
python3-socks
Recommends: tor
......
......@@ -4,21 +4,27 @@ set -e
# Remove old apparmor profiles shipped not as conffile before, only
# if the checksum matches, which means without user modification
for PROFILE in torbrowser.Browser.firefox torbrowser.Tor.tor ; do
[ "$1" = install -o "$1" = upgrade ] &&
for PROFILE in torbrowser.Browser.firefox torbrowser.Tor.tor ; do
profile=/etc/apparmor.d/local/$PROFILE
# commit [91652b6]:
# commit [064ad1f]:
# db8bcb0d87df8a9727707615ac3651c4 torbrowser.Browser.firefox
# 6862d1564692f7e61a55e2888d671dff torbrowser.Tor.tor
# commit [064ad1f]:
# commit [06eea27]:
# f211f31857d84b30b7d2bf5b4106dde3 torbrowser.Browser.firefox
[ -f "$profile" ] &&
if [ -f "$profile" ]; then
case $(md5sum "$profile"| sed -e 's/ .*//') in
"db8bcb0d87df8a9727707615ac3651c4" |\
"6862d1564692f7e61a55e2888d671dff" |\
"f211f31857d84b30b7d2bf5b4106dde3" )
rm -f "$profile"
touch $profile
;;
esac
else
mkdir -p /etc/apparmor.d/local
touch $profile
fi
done
#DEBHELPER#
......@@ -5,6 +5,10 @@ include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
rm -r debian/*/etc/apparmor.d/local
override_dh_install:
for PROFILE in torbrowser.Tor.tor torbrowser.Browser.firefox ; do \
dh_apparmor --profile-name=$$PROFILE -ptorbrowser-launcher ; \
......@@ -16,6 +20,3 @@ override_dh_install:
override_dh_clean:
rm -rf build share/locale
dh_clean
override_dh_auto_test:
@echo skip the test