diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2022-09-23 23:32:15 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2022-10-06 13:59:39 -0400 |
commit | 0d6991ae8f868308eddbea07598040247ade17a5 (patch) | |
tree | 4855ca34be8831163f1ea6aedcd4fd0c32f04e98 /nonprism | |
parent | 3d4d9cef3c7a0521f5c2954939186af672ed92c5 (diff) |
[your-privacy]: disable NetworkManager connectivity check
Diffstat (limited to 'nonprism')
-rw-r--r-- | nonprism/your-privacy/PKGBUILD | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/nonprism/your-privacy/PKGBUILD b/nonprism/your-privacy/PKGBUILD index caeae56a7..6b4f52e38 100644 --- a/nonprism/your-privacy/PKGBUILD +++ b/nonprism/your-privacy/PKGBUILD @@ -12,7 +12,7 @@ pkgname=your-privacy -pkgver=20211130 +pkgver=20221006 pkgrel=1 _gitver=ab32447a5a47a2a5ec5a3fa6043dc6b9024e3674 pkgdesc="This package will remove support for protocols and services known to endanger privacy." @@ -21,6 +21,7 @@ url=https://wiki.parabola.nu/Blacklist license=(GPL3) makedepends=(librelib) +backup=(etc/NetworkManager/conf.d/20-connectivity.conf) install=${pkgname}.install source=(${pkgname}-blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_gitver} @@ -42,4 +43,18 @@ package() # disable automatic archlinux-keyring refresh install -Dm644 archlinux-keyring.hook "${pkgdir}"/usr/share/libalpm/hooks/archlinux-keyring.hook + + # disable NetworkManager connectviity check + # TODO: This may disable some user-friendliness features. + # Something a bit more sophisticated may be needed, + # such as a source-level replacement check: + # $ dns_ip=$(sed 's|^nameserver ||p;d' /etc/resolv.conf) ; [[ -n "${dns_ip}" ]] && ping -c 1 ${dns_ip} &> /dev/null ; + # As of now, we are over-riding 'networkmanager' only for [nonsystemd], + # which already changes the target URI to parabola.nu. + # This simple solution is an attempt to avoid also packaging it for [nonprism]. + install -Dm644 /dev/stdin "${pkgdir}"/etc/NetworkManager/conf.d/20-connectivity.conf <<EOF +[connectivity] +uri=https://www.parabola.nu/static/nm-check.txt +enabled=false +EOF } |