summaryrefslogtreecommitdiff
path: root/net/llnlxftp
diff options
context:
space:
mode:
authorben <ben>2004-02-23 14:41:42 +0000
committerben <ben>2004-02-23 14:41:42 +0000
commit77531c7565ee1b26f6fb2f041ad2f109b5dfa17e (patch)
tree120cee3689681fab944dd0ff0798c7ebd8453044 /net/llnlxftp
parent7b8add4207f010c43eb8c992add1adb3afe3c5a8 (diff)
downloadpkgsrc-77531c7565ee1b26f6fb2f041ad2f109b5dfa17e.tar.gz
Use getlogin() instead of cuserid() on NetBSD.
Diffstat (limited to 'net/llnlxftp')
-rw-r--r--net/llnlxftp/distinfo3
-rw-r--r--net/llnlxftp/patches/patch-ab22
2 files changed, 24 insertions, 1 deletions
diff --git a/net/llnlxftp/distinfo b/net/llnlxftp/distinfo
index a76f7ddadf0..dbe59d85d07 100644
--- a/net/llnlxftp/distinfo
+++ b/net/llnlxftp/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/02/12 05:48:30 ben Exp $
+$NetBSD: distinfo,v 1.2 2004/02/23 14:41:42 ben Exp $
SHA1 (llnlxftp2.1.tar.Z) = bd7a2b1e9a53ae139559f09bfa5c4b590fa0cd5e
Size (llnlxftp2.1.tar.Z) = 359401 bytes
SHA1 (patch-aa) = d4cc87e2dce654d9b21d112cea5befb1ed070ac0
+SHA1 (patch-ab) = f43adf13f0cd6f16eb9df0756d033ff5586227f6
diff --git a/net/llnlxftp/patches/patch-ab b/net/llnlxftp/patches/patch-ab
new file mode 100644
index 00000000000..c686feec281
--- /dev/null
+++ b/net/llnlxftp/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2004/02/23 14:41:42 ben Exp $
+
+--- lconnect.c.orig 1995-10-19 08:20:22.000000000 -0700
++++ lconnect.c
+@@ -53,7 +53,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#if defined(SYSV) || defined(SYSV386) || defined(SVR4)
++#if defined(SYSV) || defined(SYSV386) || defined(SVR4) || defined(__NetBSD__)
+ #include <unistd.h>
+ #endif
+ #include <Xm/Xm.h>
+@@ -95,7 +95,7 @@ int host;
+ hinfo[host].hostname = local_host_name();
+
+ /* Get user name */
+-#ifdef __sony_news
++#if defined(__sony_news) || defined(__NetBSD__)
+ username = getlogin();
+ #else
+ username = cuserid(NULL);