mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Add VPNC, a Cisco-compatible VPN client.
svn path=/nixpkgs/trunk/; revision=10618
This commit is contained in:
parent
3ebfd510ba
commit
df326e6a44
19
pkgs/tools/networking/vpnc/default.nix
Normal file
19
pkgs/tools/networking/vpnc/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{stdenv, fetchurl, libgcrypt, perl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "vpnc-0.5.1";
|
||||
src = fetchurl {
|
||||
url = http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.5.1.tar.gz;
|
||||
sha256 = "f63660bd020bbe6a39e8eb67ad60c54d719046c6198a6834371d098947f9a2ed";
|
||||
};
|
||||
|
||||
patches = [ ./makefile.patch ];
|
||||
|
||||
buildInputs = [libgcrypt perl];
|
||||
|
||||
meta = {
|
||||
description = "VPNC, a virtual private network (VPN) client for Cisco's VPN concentrators";
|
||||
homepage = http://www.unix-ag.uni-kl.de/~massar/vpnc/;
|
||||
license = "GPL";
|
||||
};
|
||||
}
|
22
pkgs/tools/networking/vpnc/makefile.patch
Normal file
22
pkgs/tools/networking/vpnc/makefile.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- vpnc-0.5.1.orig/Makefile 2008-02-10 22:22:43.000000000 +0100
|
||||
+++ vpnc-0.5.1/Makefile 2008-02-10 22:22:32.000000000 +0100
|
||||
@@ -20,8 +20,8 @@
|
||||
# $Id: Makefile 236 2007-09-05 20:40:59Z Joerg Mayer $
|
||||
|
||||
DESTDIR=
|
||||
-PREFIX=/usr/local
|
||||
-ETCDIR=/etc/vpnc
|
||||
+PREFIX=$(out)
|
||||
+ETCDIR=$(out)/etc/vpnc
|
||||
BINDIR=$(PREFIX)/bin
|
||||
SBINDIR=$(PREFIX)/sbin
|
||||
MANDIR=$(PREFIX)/share/man
|
||||
@@ -71,7 +71,7 @@
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
vpnc.8 : vpnc.8.template makeman.pl vpnc
|
||||
- ./makeman.pl
|
||||
+ perl makeman.pl
|
||||
|
||||
cisco-decrypt : cisco-decrypt.o config.o supp.o sysdep.o vpnc-debug.o
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
@ -833,6 +833,10 @@ rec {
|
||||
inherit fetchurl stdenv ncurses;
|
||||
};
|
||||
|
||||
vpnc = import ../tools/networking/vpnc {
|
||||
inherit fetchurl stdenv libgcrypt perl;
|
||||
};
|
||||
|
||||
testdisk = import ../tools/misc/testdisk {
|
||||
inherit fetchurl stdenv ncurses libjpeg e2fsprogs zlib openssl;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user