2018-02-22 13:53:10 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, openconnect, file, gawk,
|
2016-01-02 08:56:22 +01:00
|
|
|
openvpn, vpnc, glib, dbus, iptables, gnutls, polkit,
|
2016-05-03 20:03:14 +02:00
|
|
|
wpa_supplicant, readline6, pptp, ppp }:
|
2014-01-04 01:13:26 +01:00
|
|
|
|
2014-12-08 12:47:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "connman-${version}";
|
2018-05-19 18:49:18 +02:00
|
|
|
version = "1.36";
|
2016-05-03 20:03:14 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kernel/linux/network/connman/${name}.tar.xz";
|
2018-05-19 18:49:18 +02:00
|
|
|
sha256 = "0x00dq5c2frz06md3g5y0jh5kbcj2hrfl5qjcqga8gs4ri0xp2f7";
|
2014-01-04 01:13:26 +01:00
|
|
|
};
|
|
|
|
|
2016-05-03 20:03:14 +02:00
|
|
|
buildInputs = [ openconnect polkit
|
|
|
|
openvpn vpnc glib dbus iptables gnutls
|
|
|
|
wpa_supplicant readline6 pptp ppp ];
|
|
|
|
|
2016-05-03 20:05:57 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig file gawk ];
|
2014-01-04 01:13:26 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export WPASUPPLICANT=${wpa_supplicant}/sbin/wpa_supplicant
|
2016-05-03 20:03:14 +02:00
|
|
|
export PPPD=${ppp}/sbin/pppd
|
2016-05-03 20:05:57 +02:00
|
|
|
export AWK=${gawk}/bin/gawk
|
2014-01-04 01:13:26 +01:00
|
|
|
sed -i "s/\/usr\/bin\/file/file/g" ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=\${out}/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-dbusconfdir=\${out}/etc"
|
|
|
|
"--with-dbusdatadir=\${out}/usr/share"
|
|
|
|
"--disable-maintainer-mode"
|
|
|
|
"--enable-openconnect=builtin"
|
|
|
|
"--with-openconnect=${openconnect}/sbin/openconnect"
|
|
|
|
"--enable-openvpn=builtin"
|
|
|
|
"--with-openvpn=${openvpn}/sbin/openvpn"
|
|
|
|
"--enable-vpnc=builtin"
|
|
|
|
"--with-vpnc=${vpnc}/sbin/vpnc"
|
|
|
|
"--enable-session-policy-local=builtin"
|
|
|
|
"--enable-client"
|
|
|
|
"--enable-bluetooth"
|
|
|
|
"--enable-wifi"
|
|
|
|
"--enable-polkit"
|
|
|
|
"--enable-tools"
|
|
|
|
"--enable-datafiles"
|
|
|
|
"--enable-pptp"
|
2016-05-03 20:03:14 +02:00
|
|
|
"--with-pptp=${pptp}/sbin/pptp"
|
2017-12-19 11:34:11 +01:00
|
|
|
"--enable-iwd"
|
2014-01-04 01:13:26 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp ./client/connmanctl $out/sbin/connmanctl
|
|
|
|
'';
|
|
|
|
|
2016-01-02 08:56:22 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-09-22 22:55:15 +02:00
|
|
|
description = "A daemon for managing internet connections";
|
2018-05-19 18:49:18 +02:00
|
|
|
homepage = https://01.org/connman;
|
2016-01-02 08:56:22 +01:00
|
|
|
maintainers = [ maintainers.matejc ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2014-01-04 01:13:26 +01:00
|
|
|
};
|
|
|
|
}
|