# Contributor: Stuart Cardall # Maintainer: William Pitcock pkgname=networkmanager pkgver=1.10.6 pkgrel=0 pkgdesc="network management tool" url="http://projects.gnome.org/NetworkManager/" arch="all" license="GPL-2.0-or-later" depends="dhcpcd iptables dbus wpa_supplicant" install="$pkgname.pre-install $pkgname.pre-upgrade" depends_dev= makedepends="$depends_dev curl-dev dbus-glib-dev eudev-dev libgudev-dev gobject-introspection-dev intltool libndp-dev libnl3-dev libsoup-dev libteam-dev linux-headers modemmanager-dev newt-dev nss-dev polkit-dev ppp-dev readline-dev util-linux-dev jansson-dev vala autoconf automake libtool " subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-openrc" source="https://download.gnome.org/sources/NetworkManager/${pkgver:0:4}/NetworkManager-$pkgver.tar.xz $pkgname.conf $pkgname.initd $pkgname.rules musl-basic.patch musl-network-support.patch musl-dlopen-configure-ac.patch " options="!check" builddir="$srcdir"/NetworkManager-$pkgver prepare() { cd "$builddir" default_prepare autoreconf } build() { cd "$builddir" ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-concheck \ --enable-ifupdown \ --enable-modify-system \ --enable-polkit-agent \ --with-config-dhcp-default=dhcpcd \ --with-crypto=nss \ --with-dhcpcd=yes \ --with-dhclient=yes \ --with-modem-manager-1 \ --with-nmtui=yes \ --with-resolvconf=yes \ --with-session-tracking=no \ --with-systemdsystemunitdir=no \ --with-systemd-journal=no \ --with-systemd-logind=no \ --with-suspend-resume=upower \ --with-wext=yes \ --disable-config-plugin-ibft \ --disable-gtk-doc \ --disable-introspection \ --disable-more-warnings \ --disable-tests \ --without-valgrind \ --disable-wimax # ourLDFLAGS confuses the gir-scanner unset LDFLAGS make libnm-core/nm-core-enum-types.h make } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/networkmanager.initd "$pkgdir"/etc/init.d/networkmanager install -m644 -D "$srcdir/$pkgname.conf" "$pkgdir"/etc/NetworkManager/NetworkManager.conf # allow plugdev users to modify connections install -m644 -D "$srcdir/$pkgname.rules" \ "$pkgdir/usr/share/polkit-1/rules.d/01-org.freedesktop.NetworkManager.settings.modify.system.rules" mkdir -p "$pkgdir/usr/share/apk-tools/$pkgname" # post-install message mv "$pkgdir/usr/share/doc/NetworkManager" "$pkgdir/usr/share/doc/$pkgname" cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <