mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
Merge branch 'pkgs/openvpn/openvpn_learnaddress' of git://github.com/offlinehacker/nixpkgs
add openvpn_learnaddress script
This commit is contained in:
commit
da17e151d8
27
pkgs/tools/networking/openvpn/openvpn_learnaddress.nix
Normal file
27
pkgs/tools/networking/openvpn/openvpn_learnaddress.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv, fetchgit, makeWrapper, coreutils, gawk, utillinux }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "openvpn-learnaddress-19b03c3";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = https://gist.github.com/4058733.git;
|
||||||
|
rev = "19b03c3beb0190df46ea07bf4b68244acb8eae80";
|
||||||
|
sha256 = "16pcyvyhwsx34i0cjkkx906lmrwdd9gvznvqdwlad4ha8l8f8z42";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper coreutils gawk utillinux ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm555 ovpn-learnaddress $out/libexec/openvpn/openvpn-learnaddress
|
||||||
|
|
||||||
|
wrapProgram $out/libexec/openvpn/openvpn-learnaddress \
|
||||||
|
--prefix PATH : ${coreutils}/bin:${gawk}/bin:${utillinux}/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Openvpn learn-address script to manage a hosts-like file";
|
||||||
|
homepage = https://gist.github.com/offlinehacker/4058733/;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.offline ];
|
||||||
|
platforms = stdenv.lib.platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -1598,6 +1598,8 @@ let
|
|||||||
|
|
||||||
openvpn = callPackage ../tools/networking/openvpn { };
|
openvpn = callPackage ../tools/networking/openvpn { };
|
||||||
|
|
||||||
|
openvpn_learnaddress = callPackage ../tools/networking/openvpn/openvpn_learnaddress.nix { };
|
||||||
|
|
||||||
optipng = callPackage ../tools/graphics/optipng { };
|
optipng = callPackage ../tools/graphics/optipng { };
|
||||||
|
|
||||||
oslrd = callPackage ../tools/networking/oslrd { };
|
oslrd = callPackage ../tools/networking/oslrd { };
|
||||||
|
Loading…
Reference in New Issue
Block a user