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)
This commit is contained in:
parent
6d55b2e9c0
commit
b95eebec65
|
@ -1,26 +1,25 @@
|
||||||
{ stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, openconnect, file,
|
{ stdenv, fetchurl, pkgconfig, openconnect, file,
|
||||||
openvpn, vpnc, glib, dbus, iptables, gnutls, polkit,
|
openvpn, vpnc, glib, dbus, iptables, gnutls, polkit,
|
||||||
wpa_supplicant, readline6, pptp, ppp, tree }:
|
wpa_supplicant, readline6, pptp, ppp }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "connman-${version}";
|
name = "connman-${version}";
|
||||||
version = "1.31";
|
version = "1.32";
|
||||||
src = fetchgit {
|
src = fetchurl {
|
||||||
url = "git://git.kernel.org/pub/scm/network/connman/connman.git";
|
url = "mirror://kernel/linux/network/connman/${name}.tar.xz";
|
||||||
rev = "refs/tags/${version}";
|
sha256 = "0k4kw2j78gwxf0rq79a099qkzl6wi4v5i7rfs4rn0si0fd68d19i";
|
||||||
sha256 = "90dab6b11841cb4b6400711d234b59fb4fad4e8778bed6e7ad3ac7ac135d6893";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ autoconf automake libtool pkgconfig openconnect polkit
|
buildInputs = [ openconnect polkit
|
||||||
file openvpn vpnc glib dbus iptables gnutls
|
openvpn vpnc glib dbus iptables gnutls
|
||||||
wpa_supplicant readline6 pptp ppp tree ];
|
wpa_supplicant readline6 pptp ppp ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig file ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export WPASUPPLICANT=${wpa_supplicant}/sbin/wpa_supplicant
|
export WPASUPPLICANT=${wpa_supplicant}/sbin/wpa_supplicant
|
||||||
./bootstrap
|
export PPPD=${ppp}/sbin/pppd
|
||||||
sed -i "s/\/usr\/bin\/file/file/g" ./configure
|
sed -i "s/\/usr\/bin\/file/file/g" ./configure
|
||||||
substituteInPlace configure --replace /usr/sbin/pptp ${pptp}/sbin/pptp
|
|
||||||
substituteInPlace configure --replace /usr/sbin/pppd ${ppp}/sbin/pppd
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -43,6 +42,7 @@ stdenv.mkDerivation rec {
|
||||||
"--enable-tools"
|
"--enable-tools"
|
||||||
"--enable-datafiles"
|
"--enable-datafiles"
|
||||||
"--enable-pptp"
|
"--enable-pptp"
|
||||||
|
"--with-pptp=${pptp}/sbin/pptp"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Reference in New Issue