# $Id$ # Maintainer: Jan Alexander Steffens (heftig) # Maintainer: Jan de Groot # Contributor: Wael Nasreddine # Contributor: Tor Krill # Contributor: Will Rea # Contributor: Valentine Sinitsyn pkgbase=networkmanager-secure pkgname=(networkmanager-secure libnm-secure libnm-glib-secure) pkgver=1.12.3dev+1+g0a3755c17 pkgrel=2 pkgdesc="Network connection manager and user applications with hostname sending removed" url="https://wiki.gnome.org/Projects/NetworkManager" arch=(x86_64) license=(GPL2 LGPL2.1) _pppver=2.4.7 makedepends=(intltool dhclient iptables gobject-introspection gtk-doc "ppp=$_pppver" modemmanager dbus-glib iproute2 nss polkit wpa_supplicant curl systemd libmm-glib libnewt libndp libteam vala perl-yaml python-gobject git vala jansson bluez-libs glib2-docs dhcpcd iwd dnsmasq systemd-resolvconf libpsl) checkdepends=(libx11 python-dbus) _commit=0a3755c1799d3a4dc1875d4c59c7c568a64c8456 # nm-1-12 source=("git+https://anongit.freedesktop.org/git/NetworkManager/NetworkManager#commit=$_commit") sha256sums=('SKIP') pkgver() { cd NetworkManager git describe | sed 's/-dev/dev/;s/-rc/rc/;s/-/+/g' } prepare() { patch ./NetworkManager/src/dhcp/nm-dhcp-dhcpcd.c ../disable_hostname.diff cd NetworkManager NOCONFIGURE=1 ./autogen.sh } build() { cd NetworkManager ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ runstatedir=/run \ --sbindir=/usr/bin \ --libexecdir=/usr/lib \ --disable-ifcfg-rh \ --disable-ifupdown \ --disable-lto \ --disable-more-logging \ --disable-more-warnings \ --disable-qt \ --disable-static \ --enable-bluez5-dun \ --enable-concheck \ --enable-config-plugin-ibft \ --enable-gtk-doc \ --enable-introspection \ --enable-json-validation \ --enable-ld-gc \ --enable-modify-system \ --enable-polkit \ --enable-polkit-agent \ --enable-teamdctl \ --enable-wifi \ --with-config-dhcp-default=internal \ --with-config-dns-rc-manager-default=symlink \ --with-config-logging-backend-default=journal \ --with-config-plugins-default=keyfile,ibft \ --with-crypto=nss \ --with-dbus-sys-dir=/usr/share/dbus-1/system.d \ --with-dhclient=/usr/bin/dhclient \ --with-dhcpcd-supports-ipv6 \ --with-dhcpcd=/usr/bin/dhcpcd \ --with-dist-version="$pkgver-$pkgrel" \ --with-dnsmasq=/usr/bin/dnsmasq \ --with-dnssec-trigger=/usr/lib/dnssec-trigger/dnssec-trigger-script \ --with-hostname-persist=default \ --with-iptables=/usr/bin/iptables \ --with-iwd \ --with-kernel-firmware-dir=/usr/lib/firmware \ --with-libnm-glib \ --with-libpsl \ --with-modem-manager-1 \ --with-nmcli \ --with-nmtui \ --with-pppd-plugin-dir=/usr/lib/pppd/$_pppver \ --with-pppd=/usr/bin/pppd \ --with-resolvconf=/usr/bin/resolvconf \ --with-session-tracking=systemd \ --with-suspend-resume=systemd \ --with-system-ca-path=/etc/ssl/certs \ --with-systemd-journal \ --with-systemd-logind \ --with-systemdsystemunitdir=/usr/lib/systemd/system \ --with-udev-dir=/usr/lib/udev \ --with-wext \ --without-consolekit \ --without-dhcpcanon \ --without-libaudit \ --without-more-asserts \ --without-netconfig \ --without-ofono \ --without-selinux sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } check() { # netns tests fail in our containers make -C NetworkManager -k check || : } _pick() { local p="$1" f d; shift for f; do d="$srcdir/$p/${f#$pkgdir/}" mkdir -p "$(dirname "$d")" mv "$f" "$d" rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")" done } package_networkmanager-secure() { depends=(libnm-glib iproute2 polkit wpa_supplicant libmm-glib libnewt libndp libteam curl bluez-libs libpsl dhcpcd) optdepends=('dnsmasq: connection sharing' 'bluez: Bluetooth support' 'ppp: dialup connection support' 'modemmanager: cellular network support' 'iwd: wpa_supplicant alternative') backup=('etc/NetworkManager/NetworkManager.conf') groups=('gnome') conflicts=('networkmanager') provides=('networkmanager') DESTDIR="$pkgdir" make -C NetworkManager install # packaged configuration install -Dm644 /dev/stdin "$pkgdir/usr/lib/NetworkManager/conf.d/20-connectivity.conf" <