2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ppp } :
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
version = "3.12";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "rp-pppoe-" + version;
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.roaringpenguin.com/files/download/rp-pppoe-${version}.tar.gz";
|
|
|
|
sha256 = "1hl6rjvplapgsyrap8xj46kc9kqwdlm6ya6gp3lv0ihm0c24wy80";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ppp ];
|
|
|
|
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
export PPPD=${ppp}/sbin/pppd
|
|
|
|
'';
|
|
|
|
postConfigure = ''
|
|
|
|
sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/etc/ppp@'
|
|
|
|
sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)@'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Roaring Penguin Point-to-Point over Ethernet tool";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
homepage = "https://www.roaringpenguin.com/products/pppoe";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|