2014-01-04 00:13:26 +00:00
|
|
|
{ stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, openconnect, file,
|
2016-01-02 07:56:22 +00:00
|
|
|
openvpn, vpnc, glib, dbus, iptables, gnutls, polkit,
|
2014-01-04 00:13:26 +00:00
|
|
|
wpa_supplicant, readline6, pptp, ppp, tree }:
|
|
|
|
|
2014-12-08 11:47:00 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "connman-${version}";
|
2016-02-08 08:53:02 +00:00
|
|
|
version = "1.31";
|
2014-01-04 00:13:26 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.kernel.org/pub/scm/network/connman/connman.git";
|
2014-12-08 11:47:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2016-02-08 08:53:02 +00:00
|
|
|
sha256 = "90dab6b11841cb4b6400711d234b59fb4fad4e8778bed6e7ad3ac7ac135d6893";
|
2014-01-04 00:13:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake libtool pkgconfig openconnect polkit
|
2016-01-02 07:56:22 +00:00
|
|
|
file openvpn vpnc glib dbus iptables gnutls
|
2014-01-04 00:13:26 +00:00
|
|
|
wpa_supplicant readline6 pptp ppp tree ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export WPASUPPLICANT=${wpa_supplicant}/sbin/wpa_supplicant
|
|
|
|
./bootstrap
|
|
|
|
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 = [
|
|
|
|
"--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"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp ./client/connmanctl $out/sbin/connmanctl
|
|
|
|
'';
|
|
|
|
|
2016-01-02 07:56:22 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Provides a daemon for managing internet connections";
|
2014-01-04 00:13:26 +00:00
|
|
|
homepage = "https://connman.net/";
|
2016-01-02 07:56:22 +00:00
|
|
|
maintainers = [ maintainers.matejc ];
|
2014-01-04 00:13:26 +00:00
|
|
|
# tested only on linux, might work on others also
|
2016-01-02 07:56:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2014-01-04 00:13:26 +00:00
|
|
|
};
|
|
|
|
}
|