summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-03-15 14:11:21 +0000
committerLudovic Courtès <ludo@gnu.org>2009-03-15 14:11:21 +0000
commitd9cfe67b9fa4c6e967882d3218ef72815d7dffc7 (patch)
tree6cac4f505881a14b6506b5b2325310d805e75986
parentb161fd29214c5a0a2e0d21315281d15c32e291f0 (diff)
downloadnixlib-d9cfe67b9fa4c6e967882d3218ef72815d7dffc7.tar
nixlib-d9cfe67b9fa4c6e967882d3218ef72815d7dffc7.tar.gz
nixlib-d9cfe67b9fa4c6e967882d3218ef72815d7dffc7.tar.bz2
nixlib-d9cfe67b9fa4c6e967882d3218ef72815d7dffc7.tar.lz
nixlib-d9cfe67b9fa4c6e967882d3218ef72815d7dffc7.tar.xz
nixlib-d9cfe67b9fa4c6e967882d3218ef72815d7dffc7.tar.zst
nixlib-d9cfe67b9fa4c6e967882d3218ef72815d7dffc7.zip
lsh: Change the PAM service name in accordance with NixOS (had forgotten to commit it).
svn path=/nixpkgs/trunk/; revision=14542
-rw-r--r--pkgs/tools/networking/lsh/default.nix11
-rw-r--r--pkgs/tools/networking/lsh/pam-service-name.patch14
2 files changed, 24 insertions, 1 deletions
diff --git a/pkgs/tools/networking/lsh/default.nix b/pkgs/tools/networking/lsh/default.nix
index 85e0c91a003d..6ca16e79db2b 100644
--- a/pkgs/tools/networking/lsh/default.nix
+++ b/pkgs/tools/networking/lsh/default.nix
@@ -7,11 +7,20 @@ stdenv.mkDerivation {
     sha256 = "614b9d63e13ad3e162c82b6405d1f67713fc622a8bc11337e72949d613713091";
   };
 
+  patches = [ ./pam-service-name.patch ];
+
   buildInputs = [gperf guile gmp zlib liboop gnum4 pam];
 
   meta = {
     description = "GNU lsh, a GPL'd implementation of the SSH protocol";
+
+    longDescription = ''
+      lsh is a free implementation (in the GNU sense) of the ssh
+      version 2 protocol, currently being standardised by the IETF
+      SECSH working group.
+    '';
+    
     homepage = http://www.lysator.liu.se/~nisse/lsh/;
-    license = "GPL";
+    license = "GPLv2+";
   };
 }
diff --git a/pkgs/tools/networking/lsh/pam-service-name.patch b/pkgs/tools/networking/lsh/pam-service-name.patch
new file mode 100644
index 000000000000..6a6156855c51
--- /dev/null
+++ b/pkgs/tools/networking/lsh/pam-service-name.patch
@@ -0,0 +1,14 @@
+Tell `lsh-pam-checkpw', the PAM password helper program, to use a more
+descriptive service name.
+
+--- lsh-2.0.4/src/lsh-pam-checkpw.c	2003-02-16 22:30:10.000000000 +0100
++++ lsh-2.0.4/src/lsh-pam-checkpw.c	2008-11-28 16:16:58.000000000 +0100
+@@ -38,7 +38,7 @@
+ #include <security/pam_appl.h>
+ 
+ #define PWD_MAXLEN 1024
+-#define SERVICE_NAME "other"
++#define SERVICE_NAME "lshd"
+ #define TIMEOUT 600 
+ 
+ static int