2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, ppp } :
|
2015-09-15 05:27:19 +01:00
|
|
|
let
|
2009-02-01 13:54:20 +00:00
|
|
|
in
|
2021-11-29 18:24:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rp-pppoe";
|
|
|
|
version = "3.12";
|
|
|
|
|
2009-02-01 13:54:20 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01: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
|
|
|
|
'';
|
2022-05-12 23:01:42 +01:00
|
|
|
|
|
|
|
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "rpppoe_cv_pack_bitfields=rev" ];
|
|
|
|
|
2015-11-23 11:56:03 +00:00
|
|
|
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
|
|
|
|
2022-05-12 23:01:42 +01:00
|
|
|
makeFlags = [ "AR:=$(AR)" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2009-02-01 13:54:20 +00:00
|
|
|
description = "Roaring Penguin Point-to-Point over Ethernet tool";
|
2018-09-10 20:48:02 +01:00
|
|
|
platforms = platforms.linux;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.roaringpenguin.com/products/pppoe";
|
2018-09-10 20:48:02 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2009-02-01 13:54:20 +00:00
|
|
|
};
|
|
|
|
}
|