Skip to content

Commit 353c381

Browse files
authored
VPN-7641: Remove PPA pieces from repo (#11318)
* VPN-7641: Remove PPA pieces * additional updates * make linter happy
1 parent 9a31361 commit 353c381

6 files changed

Lines changed: 2 additions & 207 deletions

File tree

.dictionary

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Cliquez
1818
Conda
1919
ConnectionDiagnostics
2020
DBUILD
21+
Debian
2122
DNS
2223
DevOps
2324
Docusaurus

.github/workflows/ppa-automation.yaml

Lines changed: 0 additions & 131 deletions
This file was deleted.

linux/debian/mozillavpn.postinst

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,10 @@
11
#!/bin/sh
22

3-
set -e
4-
umask 022
5-
6-
. /usr/share/debconf/confmodule
7-
83
action="$1"
9-
104
if [ "$action" = "configure" ]; then
115
# Remove the legacy XDG autostart start-on-boot configuration
126
rm -f /etc/xdg/autostart/mozillavpn-startup.desktop
137
rm -f /etc/xdg/autostart/org.mozilla.vpn-startup.desktop
14-
15-
# Migrate users from the Mozilla VPN PPA to packages.mozilla.org.
16-
for ppa_sources_list in /etc/apt/sources.list.d/mozillacorp-ubuntu-mozillavpn-*.sources \
17-
/etc/apt/sources.list.d/mozillacorp-ubuntu-mozillavpn-*.list; do
18-
[ -f "$ppa_sources_list" ] && break
19-
done
20-
21-
if [ -f "$ppa_sources_list" ]; then
22-
23-
# Add the packages.mozilla.org repository if not already configured.
24-
if ! grep -qrs '^[[:space:]]*[^#[:space:]].*packages\.mozilla\.org' /etc/apt/sources.list /etc/apt/sources.list.d/ 2>/dev/null; then
25-
install -d /etc/apt/keyrings /etc/apt/sources.list.d
26-
27-
cat > /etc/apt/keyrings/packages.mozilla.org.asc << 'EOF'
28-
-----BEGIN PGP PUBLIC KEY BLOCK-----
29-
30-
xsBNBGCRt7MBCADkYJHHQQoL6tKrW/LbmfR9ljz7ib2aWno4JO3VKQvLwjyUMPpq
31-
/SXXMOnx8jXwgWizpPxQYDRJ0SQXS9ULJ1hXRL/OgMnZAYvYDeV2jBnKsAIEdiG/
32-
e1qm8P4W9qpWJc+hNq7FOT13RzGWRx57SdLWSXo0KeY38r9lvjjOmT/cuOcmjwlD
33-
T9XYf/RSO+yJ/AsyMdAr+ZbDeQUd9HYJiPdI04lGaGM02MjDMnx+monc+y54t+Z+
34-
ry1WtQdzoQt9dHlIPlV1tR+xV5DHHsejCZxu9TWzzSlL5wfBBeEz7R/OIzivGJpW
35-
QdJzd+2QDXSRg9q2XYWP5ZVtSgjVVJjNlb6ZABEBAAHNVEFydGlmYWN0IFJlZ2lz
36-
dHJ5IFJlcG9zaXRvcnkgU2lnbmVyIDxhcnRpZmFjdC1yZWdpc3RyeS1yZXBvc2l0
37-
b3J5LXNpZ25lckBnb29nbGUuY29tPsLAjgQTAQoAOBYhBDW6oLM+nrOW9ZyoOMC6
38-
XObcYxWjBQJgkbezAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEMC6XObc
39-
YxWj+igIAMFh6DrAYMeq9sbZ1ZG6oAMrinUheGQbEqe76nIDQNsZnhDwZ2wWqgVC
40-
7DgOMqlhQmOmzm7M6Nzmq2dvPwq3xC2OeI9fQyzjT72deBTzLP7PJok9PJFOMdLf
41-
ILSsUnmMsheQt4DUO0jYAX2KUuWOIXXJaZ319QyoRNBPYa5qz7qXS7wHLOY89IDq
42-
fHt6Aud8ER5zhyOyhytcYMeaGC1g1IKWmgewnhEq02FantMJGlmmFi2eA0EPD02G
43-
C3742QGqRxLwjWsm5/TpyuU24EYKRGCRm7QdVIo3ugFSetKrn0byOxWGBvtu4fH8
44-
XWvZkRT+u+yzH1s5yFYBqc2JTrrJvRU=
45-
=QnvN
46-
-----END PGP PUBLIC KEY BLOCK-----
47-
EOF
48-
49-
cat > /etc/apt/sources.list.d/mozilla.list << 'EOF'
50-
deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main
51-
EOF
52-
fi
53-
54-
# Pin mozillavpn origin to packages.mozilla.org.
55-
install -d /etc/apt/preferences.d
56-
cat > /etc/apt/preferences.d/mozilla-vpn.pref << 'EOF'
57-
Package: mozillavpn
58-
Pin: origin packages.mozilla.org
59-
Pin-Priority: 1000
60-
EOF
61-
62-
for ppa_sources_list in /etc/apt/sources.list.d/mozillacorp-ubuntu-mozillavpn-*.sources \
63-
/etc/apt/sources.list.d/mozillacorp-ubuntu-mozillavpn-*.list; do
64-
[ -f "$ppa_sources_list" ] && mv "$ppa_sources_list" "${ppa_sources_list}.save"
65-
done
66-
67-
db_input high mozillavpn/ppa-deprecation-warning || true
68-
db_go || true
69-
fi
708
fi
719

7210
#DEBHELPER#

linux/debian/mozillavpn.templates

Lines changed: 0 additions & 10 deletions
This file was deleted.

scripts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ See Android build documentation for details on these scripts.
1313

1414
# Linux-specific scripts
1515

16-
- ./linux/script.sh - compile the client and upload it to the PPA
16+
- ./linux/script.sh - bundle a Github source checkout into Debian/RPM source packages
1717
- ./linux/getdeps.py - extract dependencies from the Debian package control file.
1818

1919
# macOS-specific scripts
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
FROM $DOCKER_IMAGE_PARENT
22

3-
# Add external PPA, latest version of QT is 5.12.x for Ubuntu 20.04
43
RUN apt-get update && \
54
apt-get install --yes cmake ninja-build golang debhelper rsync && \
65
apt-get clean
76

8-
RUN pip3 install --find-links https://pypi.pub.build.mozilla.org/pub/ glean_parser==13.0.0
9-
107
VOLUME /builds/worker/checkouts
118
VOLUME /builds/worker/.task-cache/pip

0 commit comments

Comments
 (0)