@@ -1,12 +1,12 @@
11{ stdenv, fetchurl, substituteAll, libpcap }:
22
33stdenv.mkDerivation rec {
4− version = "2.4.5";
4+ version = "2.4.7";
55 name = "ppp-${version}";
66
77 src = fetchurl {
88 url = "mirror://samba/ppp/${name}.tar.gz";
9− sha256 = "019m00q85nrgdpjlhb9021a3iw3pr4a0913gp4h9k7r9r7z7lca3";
9+ sha256 = "0c7vrjxl52pdwi4ckrvfjr08b31lfpgwf3pp0cqy76a77vfs7q02";
1010 };
1111
1212 patches =
@@ -15,24 +15,17 @@ stdenv.mkDerivation rec {
1515 inherit libpcap;
1616 glibc = stdenv.cc.libc;
1717 })
18+ # Without nonpriv.patch, pppd --version doesn't work when not run as
19+ # root.
1820 ./nonpriv.patch
1921 ];
2022
21− postPatch = ''
22− # enable ipv6
23− substituteInPlace pppd/Makefile.linux \
24− --replace "#HAVE_INET6=y" "HAVE_INET6=y"
25− rm -v include/linux/if_pppol2tp.h
26− '';
27−
2823 buildInputs = [ libpcap ];
2924
30− postInstall = "chmod -v -R +rw $out";
31−
3225 meta = {
33− homepage = http://ppp.samba.org/;
26+ homepage = https://ppp.samba.org/;
3427 description = "Point-to-point implementation for Linux and Solaris";
3528 platforms = stdenv.lib.platforms.linux;
36− maintainers = [ stdenv.lib.maintainers.urkud ];
29+ maintainers = [ stdenv.lib.maintainers.falsifian ];
3730 };
3831}