Remove some pre-installed addons, fixes #59

screenshots@mozilla.org.xpi might be benign; that needs to be looked
into before merging.
This commit is contained in:
ohfp 2020-04-10 12:21:41 +02:00
parent aa65d098e1
commit 90d4fbb2d9
2 changed files with 13 additions and 0 deletions

View file

@ -276,6 +276,12 @@ END
exec /usr/lib/$pkgname/librewolf "\$@"
END
# Remove some pre-installed addons that might be questionable
rm -f "$pkgdir/usr/lib/$pkgname/browser/features/doh-rollout@mozilla.org.xpi"
rm -f "$pkgdir/usr/lib/$pkgname/browser/features/screenshots@mozilla.org.xpi"
rm -f "$pkgdir/usr/lib/$pkgname/browser/features/webcompat-reporter@mozilla.org.xpi"
rm -f "$pkgdir/usr/lib/$pkgname/browser/features/webcompat@mozilla.org.xpi"
# Replace duplicate binary with wrapper
# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
ln -srfv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/librewolf-bin"

View file

@ -36,6 +36,13 @@ cp -r $_EXTRACTED_TARBALL_FOLDER/settings/* $_EXTRACTED_TARBALL_FOLDER;
# Add distribution.ini
distini="$_EXTRACTED_TARBALL_FOLDER/distribution/distribution.ini"
# Remove some pre-installed addons that might be questionable
rm -f "$_EXTRACTED_TARBALL_FOLDER/browser/features/doh-rollout@mozilla.org.xpi"
rm -f "$_EXTRACTED_TARBALL_FOLDER/browser/features/screenshots@mozilla.org.xpi"
rm -f "$_EXTRACTED_TARBALL_FOLDER/browser/features/webcompat-reporter@mozilla.org.xpi"
rm -f "$_EXTRACTED_TARBALL_FOLDER/browser/features/webcompat@mozilla.org.xpi"
install -Dvm644 /dev/stdin "$distini" <<END
[Global]
id=io.gitlab.LibreWolf