2012-01-04 16:10:27 +01:00
|
|
|
{ stdenv, fetchurl, substituteAll, libpcap }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-01-04 20:04:09 +01:00
|
|
|
version = "2.4.5";
|
|
|
|
name = "ppp-${version}";
|
2009-02-01 14:54:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-01-04 16:10:27 +01:00
|
|
|
url = "${meta.homepage}ftp/ppp/${name}.tar.gz";
|
|
|
|
sha256 = "019m00q85nrgdpjlhb9021a3iw3pr4a0913gp4h9k7r9r7z7lca3";
|
2009-02-01 14:54:20 +01:00
|
|
|
};
|
|
|
|
|
2012-01-04 16:10:27 +01:00
|
|
|
patches =
|
|
|
|
[ ( substituteAll {
|
|
|
|
src = ./nix-purity.patch;
|
|
|
|
inherit libpcap;
|
|
|
|
glibc = stdenv.gcc.libc;
|
|
|
|
})
|
|
|
|
./nonpriv.patch
|
|
|
|
];
|
2009-02-01 14:54:20 +01:00
|
|
|
|
2013-06-11 01:07:06 +02: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 14:54:20 +01:00
|
|
|
|
2012-01-04 16:10:27 +01:00
|
|
|
buildInputs = [ libpcap ];
|
2009-02-01 14:54:20 +01:00
|
|
|
|
2012-01-04 16:10:27 +01:00
|
|
|
postInstall = "chmod -v -R +rw $out";
|
2009-02-01 14:54:20 +01:00
|
|
|
|
|
|
|
meta = {
|
2012-01-04 16:10:27 +01:00
|
|
|
homepage = http://ppp.samba.org/;
|
2009-02-01 14:54:20 +01:00
|
|
|
description = "Point-to-point implementation for Linux and Solaris";
|
2012-01-04 16:10:27 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2009-02-01 14:54:20 +01:00
|
|
|
};
|
|
|
|
}
|