connman: 1.31 -> 1.32 fetch release tarball instead of git checkout and drop autotools

This update is compatible with iptables 1.6.0 (see #12178)

+13 -13
+13 -13
pkgs/tools/networking/connman/default.nix
··· 1 - { stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, openconnect, file, 2 openvpn, vpnc, glib, dbus, iptables, gnutls, polkit, 3 - wpa_supplicant, readline6, pptp, ppp, tree }: 4 5 stdenv.mkDerivation rec { 6 name = "connman-${version}"; 7 - version = "1.31"; 8 - src = fetchgit { 9 - url = "git://git.kernel.org/pub/scm/network/connman/connman.git"; 10 - rev = "refs/tags/${version}"; 11 - sha256 = "90dab6b11841cb4b6400711d234b59fb4fad4e8778bed6e7ad3ac7ac135d6893"; 12 }; 13 14 - buildInputs = [ autoconf automake libtool pkgconfig openconnect polkit 15 - file openvpn vpnc glib dbus iptables gnutls 16 - wpa_supplicant readline6 pptp ppp tree ]; 17 18 preConfigure = '' 19 export WPASUPPLICANT=${wpa_supplicant}/sbin/wpa_supplicant 20 - ./bootstrap 21 sed -i "s/\/usr\/bin\/file/file/g" ./configure 22 - substituteInPlace configure --replace /usr/sbin/pptp ${pptp}/sbin/pptp 23 - substituteInPlace configure --replace /usr/sbin/pppd ${ppp}/sbin/pppd 24 ''; 25 26 configureFlags = [ ··· 43 "--enable-tools" 44 "--enable-datafiles" 45 "--enable-pptp" 46 ]; 47 48 postInstall = ''
··· 1 + { stdenv, fetchurl, pkgconfig, openconnect, file, 2 openvpn, vpnc, glib, dbus, iptables, gnutls, polkit, 3 + wpa_supplicant, readline6, pptp, ppp }: 4 5 stdenv.mkDerivation rec { 6 name = "connman-${version}"; 7 + version = "1.32"; 8 + src = fetchurl { 9 + url = "mirror://kernel/linux/network/connman/${name}.tar.xz"; 10 + sha256 = "0k4kw2j78gwxf0rq79a099qkzl6wi4v5i7rfs4rn0si0fd68d19i"; 11 }; 12 13 + buildInputs = [ openconnect polkit 14 + openvpn vpnc glib dbus iptables gnutls 15 + wpa_supplicant readline6 pptp ppp ]; 16 + 17 + nativeBuildInputs = [ pkgconfig file ]; 18 19 preConfigure = '' 20 export WPASUPPLICANT=${wpa_supplicant}/sbin/wpa_supplicant 21 + export PPPD=${ppp}/sbin/pppd 22 sed -i "s/\/usr\/bin\/file/file/g" ./configure 23 ''; 24 25 configureFlags = [ ··· 42 "--enable-tools" 43 "--enable-datafiles" 44 "--enable-pptp" 45 + "--with-pptp=${pptp}/sbin/pptp" 46 ]; 47 48 postInstall = ''