2015-11-23 11:56:03 +00:00
|
|
|
{ stdenv, fetchurl, ppp } :
|
2015-09-15 04:27:19 +00:00
|
|
|
let
|
2015-11-23 11:56:03 +00:00
|
|
|
version = "3.12";
|
2009-02-01 13:54:20 +00:00
|
|
|
in
|
2015-11-23 11:56:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rp-pppoe-" + version;
|
2009-02-01 13:54:20 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.roaringpenguin.com/files/download/rp-pppoe-${version}.tar.gz";
|
2015-11-23 11:56:03 +00:00
|
|
|
sha256 = "1hl6rjvplapgsyrap8xj46kc9kqwdlm6ya6gp3lv0ihm0c24wy80";
|
2009-02-01 13:54:20 +00:00
|
|
|
};
|
|
|
|
|
2015-11-23 11:56:03 +00:00
|
|
|
buildInputs = [ ppp ];
|
2009-02-01 13:54:20 +00:00
|
|
|
|
|
|
|
|
2015-11-23 11:56:03 +00:00
|
|
|
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)@'
|
|
|
|
'';
|
2009-02-01 13:54:20 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Roaring Penguin Point-to-Point over Ethernet tool";
|
2015-11-23 11:56:03 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
homepage = https://www.roaringpenguin.com/products/pppoe;
|
2009-02-01 13:54:20 +00:00
|
|
|
};
|
|
|
|
}
|