summary refs log tree commit diff
path: root/pkgs/tools/networking/pptpd/default.nix
blob: e6f5f9503d8e6db756fa0fd3db71824d259e3802 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, ppp }:

stdenv.mkDerivation rec {
  pname   = "pptpd";
  version = "1.4.0";

  src = fetchurl {
    url    = "mirror://sourceforge/poptop/${pname}/${pname}-${version}/${pname}-${version}.tar.gz";
    sha256 = "1h06gyxj51ba6kbbnf6hyivwjia0i6gsmjz8kyggaany8a58pkcg";
  };

  buildInputs = [ ppp ];

  postPatch = ''
    substituteInPlace plugins/Makefile --replace "install -o root" "install"
  '';

  meta = with stdenv.lib; {
    homepage    = "http://poptop.sourceforge.net/dox/";
    description = "The PPTP Server for Linux";
    platforms   = platforms.linux;
    maintainers = with maintainers; [ obadz ];
    license = licenses.gpl2;
  };
}