mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
69e173dad1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/xl2tpd/versions. These checks were done: - built on NixOS - /nix/store/xvvr6zvnn8q3k0021bp74yfql82yp7q1-xl2tpd-1.3.12/bin/pfc passed the binary check. - /nix/store/xvvr6zvnn8q3k0021bp74yfql82yp7q1-xl2tpd-1.3.12/bin/xl2tpd passed the binary check. - /nix/store/xvvr6zvnn8q3k0021bp74yfql82yp7q1-xl2tpd-1.3.12/bin/xl2tpd-control passed the binary check. - 2 of 3 passed binary check by having a zero exit code. - 1 of 3 passed binary check by having the new version present in output. - found 1.3.12 with grep in /nix/store/xvvr6zvnn8q3k0021bp74yfql82yp7q1-xl2tpd-1.3.12 - directory tree listing: https://gist.github.com/9e7e06daf4d57291dbefde0aff0da546 - du listing: https://gist.github.com/0eb400f5c7f43510ed9dc63f43181d95
30 lines
728 B
Nix
30 lines
728 B
Nix
{ stdenv, fetchFromGitHub, libpcap, ppp }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "xl2tpd-${version}";
|
|
version = "1.3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xelerance";
|
|
repo = "xl2tpd";
|
|
rev = "v${version}";
|
|
sha256 = "0slza1v8qligy8c83j0x3jzb85m9ibjxyyvpwsykrkypav8a6ii1";
|
|
};
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace l2tp.h --replace /usr/sbin/pppd ${ppp}/sbin/pppd
|
|
'';
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.xelerance.com/software/xl2tpd/;
|
|
description = "Layer 2 Tunnelling Protocol Daemon (RFC 2661)";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|