at v206 30 lines 786 B view raw
1{ stdenv, fetchurl, perl, ppp, iproute }: 2 3stdenv.mkDerivation rec { 4 name = "pptp-1.7.2"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/pptpclient/${name}.tar.gz"; 8 sha256 = "1g4lfv9vhid4v7kx1mlfcrprj3h7ny6g4kv564qzlf9abl3f12p9"; 9 }; 10 11 patchPhase = 12 '' 13 sed -e 's/install -o root/install/' -i Makefile 14 sed -e 's,/bin/ip,${iproute}/sbin/ip,' -i routing.c 15 ''; 16 preConfigure = 17 '' 18 makeFlagsArray=( PPPD=${ppp}/sbin/pppd BINDIR=$out/sbin \ 19 MANDIR=$out/share/man/man8 PPPDIR=$out/etc/ppp ) 20 ''; 21 22 nativeBuildInputs = [ perl ]; 23 24 meta = { 25 description = "PPTP client for Linux"; 26 homepage = http://pptpclient.sourceforge.net/; 27 platforms = stdenv.lib.platforms.linux; 28 maintainers = [ stdenv.lib.maintainers.urkud ]; 29 }; 30}