2020-02-22 08:58:17 -08:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkgconfig
|
|
|
|
, openconnect
|
|
|
|
, file
|
|
|
|
openvpn
|
|
|
|
, vpnc
|
|
|
|
, glib
|
|
|
|
, dbus
|
|
|
|
, iptables
|
|
|
|
, gnutls
|
|
|
|
, polkit,
|
|
|
|
, readline6
|
|
|
|
, pptp
|
|
|
|
, ppp
|
|
|
|
}:
|
2014-01-03 16:13:26 -08:00
|
|
|
|
2014-12-08 03:47:00 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "connman";
|
2020-02-22 08:58:25 -08:00
|
|
|
version = "1.38";
|
2016-05-03 11:03:14 -07:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "mirror://kernel/linux/network/connman/${pname}-${version}.tar.xz";
|
2020-02-22 08:58:25 -08:00
|
|
|
sha256 = "0awkqigvhwwxiapw0x6yd4whl465ka8a4al0v2pcqy9ggjlsqc6b";
|
2014-01-03 16:13:26 -08:00
|
|
|
};
|
|
|
|
|
2020-02-22 08:58:17 -08:00
|
|
|
buildInputs = [
|
|
|
|
openconnect
|
|
|
|
polkit
|
|
|
|
openvpn
|
|
|
|
vpnc
|
|
|
|
glib
|
|
|
|
dbus
|
|
|
|
iptables
|
|
|
|
gnutls
|
|
|
|
readline6
|
|
|
|
pptp
|
|
|
|
ppp
|
|
|
|
];
|
2016-05-03 11:03:14 -07:00
|
|
|
|
2020-02-22 08:58:17 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
file
|
|
|
|
];
|
2014-01-03 16:13:26 -08:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i "s/\/usr\/bin\/file/file/g" ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=\${out}/etc"
|
|
|
|
"--localstatedir=/var"
|
2019-09-16 09:43:21 -07:00
|
|
|
"--with-dbusconfdir=${placeholder "out"}/share"
|
|
|
|
"--with-dbusdatadir=${placeholder "out"}/share"
|
2014-01-03 16:13:26 -08:00
|
|
|
"--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 11:03:14 -07:00
|
|
|
"--with-pptp=${pptp}/sbin/pptp"
|
2017-12-19 02:34:11 -08:00
|
|
|
"--enable-iwd"
|
2014-01-03 16:13:26 -08:00
|
|
|
];
|
|
|
|
|
2016-01-01 23:56:22 -08:00
|
|
|
meta = with stdenv.lib; {
|
2016-09-22 13:55:15 -07:00
|
|
|
description = "A daemon for managing internet connections";
|
2018-05-19 09:49:18 -07:00
|
|
|
homepage = https://01.org/connman;
|
2016-01-01 23:56:22 -08:00
|
|
|
maintainers = [ maintainers.matejc ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2014-01-03 16:13:26 -08:00
|
|
|
};
|
|
|
|
}
|