nixpkgs/pkgs/tools/networking/rp-pppoe/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
911 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ppp } :
let
in
stdenv.mkDerivation rec {
pname = "rp-pppoe";
version = "3.12";
src = fetchurl {
url = "https://www.roaringpenguin.com/files/download/rp-pppoe-${version}.tar.gz";
2015-11-23 12:56:03 +01:00
sha256 = "1hl6rjvplapgsyrap8xj46kc9kqwdlm6ya6gp3lv0ihm0c24wy80";
};
2015-11-23 12:56:03 +01:00
buildInputs = [ ppp ];
2015-11-23 12:56:03 +01:00
preConfigure = ''
cd src
export PPPD=${ppp}/sbin/pppd
'';
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "rpppoe_cv_pack_bitfields=rev" ];
2015-11-23 12:56:03 +01:00
postConfigure = ''
sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/etc/ppp@'
sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)@'
'';
makeFlags = [ "AR:=$(AR)" ];
meta = with lib; {
description = "Roaring Penguin Point-to-Point over Ethernet tool";
2018-09-10 21:48:02 +02:00
platforms = platforms.linux;
homepage = "https://www.roaringpenguin.com/products/pppoe";
2018-09-10 21:48:02 +02:00
license = licenses.gpl2Plus;
};
}