2012-01-04 15:10:27 +00:00
|
|
|
{ stdenv, fetchurl, substituteAll, libpcap }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-01-04 19:04:09 +00:00
|
|
|
version = "2.4.5";
|
|
|
|
name = "ppp-${version}";
|
2009-02-01 13:54:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-01-04 15:10:27 +00:00
|
|
|
url = "${meta.homepage}ftp/ppp/${name}.tar.gz";
|
|
|
|
sha256 = "019m00q85nrgdpjlhb9021a3iw3pr4a0913gp4h9k7r9r7z7lca3";
|
2009-02-01 13:54:20 +00:00
|
|
|
};
|
|
|
|
|
2012-01-04 15:10:27 +00:00
|
|
|
patches =
|
|
|
|
[ ( substituteAll {
|
|
|
|
src = ./nix-purity.patch;
|
|
|
|
inherit libpcap;
|
2014-12-17 18:11:30 +00:00
|
|
|
glibc = stdenv.cc.libc;
|
2012-01-04 15:10:27 +00:00
|
|
|
})
|
|
|
|
./nonpriv.patch
|
|
|
|
];
|
2009-02-01 13:54:20 +00:00
|
|
|
|
2013-06-10 23:07:06 +00:00
|
|
|
postPatch = ''
|
|
|
|
# enable ipv6
|
|
|
|
substituteInPlace pppd/Makefile.linux \
|
|
|
|
--replace "#HAVE_INET6=y" "HAVE_INET6=y"
|
|
|
|
rm -v include/linux/if_pppol2tp.h
|
|
|
|
'';
|
2009-02-01 13:54:20 +00:00
|
|
|
|
2012-01-04 15:10:27 +00:00
|
|
|
buildInputs = [ libpcap ];
|
2009-02-01 13:54:20 +00:00
|
|
|
|
2012-01-04 15:10:27 +00:00
|
|
|
postInstall = "chmod -v -R +rw $out";
|
2009-02-01 13:54:20 +00:00
|
|
|
|
|
|
|
meta = {
|
2012-01-04 15:10:27 +00:00
|
|
|
homepage = http://ppp.samba.org/;
|
2009-02-01 13:54:20 +00:00
|
|
|
description = "Point-to-point implementation for Linux and Solaris";
|
2012-01-04 15:10:27 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2009-02-01 13:54:20 +00:00
|
|
|
};
|
|
|
|
}
|