2012-01-04 16:10:27 +01:00
|
|
|
{ stdenv, fetchurl, substituteAll, libpcap }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ppp-2.4.5";
|
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
|
|
|
|
2012-01-04 16:10:27 +01:00
|
|
|
postPatch = "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
|
|
|
};
|
|
|
|
}
|