ppp: 2.4.7 -> 2.4.8
This commit is contained in:
@@ -1,21 +1,18 @@
|
||||
{ stdenv, fetchurl, substituteAll, libpcap, openssl }:
|
||||
{ stdenv, fetchurl, fetchpatch, fetchFromGitHub, substituteAll, libpcap, openssl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.4.7";
|
||||
version = "2.4.8";
|
||||
pname = "ppp";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://samba/ppp/${pname}-${version}.tar.gz";
|
||||
sha256 = "0c7vrjxl52pdwi4ckrvfjr08b31lfpgwf3pp0cqy76a77vfs7q02";
|
||||
src = fetchFromGitHub {
|
||||
owner = "paulusmack";
|
||||
repo = "ppp";
|
||||
rev = "ppp-${version}";
|
||||
sha256 = "1i88m79h6g3fzsb4yw3k8bq1grsx3hsyawm7id2vcaab0gfqzjjv";
|
||||
};
|
||||
|
||||
patches =
|
||||
[
|
||||
# fix for glibc>=2.28
|
||||
(fetchurl {
|
||||
url = "https://github.com/paulusmack/ppp/commit/3c7b86229f7bd2600d74db14b1fe5b3896be3875.patch";
|
||||
sha256 = "0qlbi247lx3injpy8a1gcij9yilik0vfaibkpvdp88k3sa1rs69z";
|
||||
})
|
||||
( substituteAll {
|
||||
src = ./nix-purity.patch;
|
||||
inherit libpcap;
|
||||
@@ -25,14 +22,10 @@ stdenv.mkDerivation rec {
|
||||
# Without nonpriv.patch, pppd --version doesn't work when not run as
|
||||
# root.
|
||||
./nonpriv.patch
|
||||
(fetchurl {
|
||||
(fetchpatch {
|
||||
name = "CVE-2015-3310.patch";
|
||||
url = "https://salsa.debian.org/roam/ppp/raw/ef5d585aca6b1200a52c7109caa66ef97964d76e/debian/patches/rc_mksid-no-buffer-overflow";
|
||||
sha256 = "1dk00j7bg9nfgskw39fagnwv1xgsmyv0xnkd6n1v5gy0psw0lvqh";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "https://salsa.debian.org/roam/ppp/raw/ef5d585aca6b1200a52c7109caa66ef97964d76e/debian/patches/0016-pppoe-include-netinet-in.h-before-linux-in.h.patch";
|
||||
sha256 = "1xnmqn02kc6g5y84xynjwnpv9cvrfn3nyv7h7r8j8xi7qf2aj4q8";
|
||||
url = "https://github.com/paulusmack/ppp/commit/858976b1fc3107f1261aae337831959b511b83c2.patch";
|
||||
sha256 = "0wirmcis67xjwllqhz9lsz1b7dcvl8shvz78lxgybc70j2sv7ih4";
|
||||
})
|
||||
(fetchurl {
|
||||
url = https://www.nikhef.nl/~janjust/ppp/ppp-2.4.7-eaptls-mppe-1.102.patch;
|
||||
@@ -49,6 +42,7 @@ stdenv.mkDerivation rec {
|
||||
# everything anyway so we remove it from the Makefiles
|
||||
for file in $(find -name Makefile.linux); do
|
||||
substituteInPlace "$file" --replace '$(INSTALL) -s' '$(INSTALL)'
|
||||
substituteInPlace "$file" --replace '-m 4550' '-m 550'
|
||||
done
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user