3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/rp-pppoe/default.nix

31 lines
770 B
Nix
Raw Normal View History

2015-11-23 11:56:03 +00:00
{ stdenv, fetchurl, ppp } :
let
2015-11-23 11:56:03 +00:00
version = "3.12";
in
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
2015-11-23 11:56:03 +00:00
name = "rp-pppoe-" + version;
src = fetchurl {
url = "https://www.roaringpenguin.com/files/download/rp-pppoe-${version}.tar.gz";
2015-11-23 11:56:03 +00:00
sha256 = "1hl6rjvplapgsyrap8xj46kc9kqwdlm6ya6gp3lv0ihm0c24wy80";
};
2015-11-23 11:56:03 +00:00
buildInputs = [ ppp ];
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)@'
'';
2018-09-10 20:48:02 +01:00
meta = with stdenv.lib; {
description = "Roaring Penguin Point-to-Point over Ethernet tool";
2018-09-10 20:48:02 +01:00
platforms = platforms.linux;
homepage = "https://www.roaringpenguin.com/products/pppoe";
2018-09-10 20:48:02 +01:00
license = licenses.gpl2Plus;
};
}