pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/eterm Make this package build on Mac OS X.
details: https://anonhg.NetBSD.org/pkgsrc/rev/de115f796a05
branches: trunk
changeset: 542245:de115f796a05
user: agc <agc%pkgsrc.org@localhost>
date: Fri May 09 18:43:07 2008 +0000
description:
Make this package build on Mac OS X.
diffstat:
x11/eterm/distinfo | 4 ++--
x11/eterm/patches/patch-ah | 34 +++++++++++++++++++++++++++++-----
2 files changed, 31 insertions(+), 7 deletions(-)
diffs (87 lines):
diff -r 186316845113 -r de115f796a05 x11/eterm/distinfo
--- a/x11/eterm/distinfo Fri May 09 18:39:54 2008 +0000
+++ b/x11/eterm/distinfo Fri May 09 18:43:07 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2008/04/03 22:42:33 tonnerre Exp $
+$NetBSD: distinfo,v 1.17 2008/05/09 18:43:07 agc Exp $
SHA1 (Eterm-0.9.4.tar.gz) = d63628098b3aa08c8f2bc1bd756683e5fd227995
RMD160 (Eterm-0.9.4.tar.gz) = ce5d7ba74b19e3c8992d104d00f10302c3e8150e
@@ -16,5 +16,5 @@
SHA1 (patch-ab) = d019a18bb32f890d6de7c5bb0cdb43e7715a7d4d
SHA1 (patch-ac) = eaeed9066b546d563f7b0404afbdb9e9737d8f63
SHA1 (patch-ad) = f70a92e4eb84466e379653cbd3a9188db6d408c8
-SHA1 (patch-ah) = e9a924abff857448a6d7c9281915bcf001b7451c
+SHA1 (patch-ah) = 9d2a995fa118e30be20aa3fdc18ffee1eeec1192
SHA1 (patch-ai) = 94d684a490752831de2fb2aba92c0b9f461ddb5a
diff -r 186316845113 -r de115f796a05 x11/eterm/patches/patch-ah
--- a/x11/eterm/patches/patch-ah Fri May 09 18:39:54 2008 +0000
+++ b/x11/eterm/patches/patch-ah Fri May 09 18:43:07 2008 +0000
@@ -1,14 +1,21 @@
-$NetBSD: patch-ah,v 1.6 2006/11/25 14:01:18 sketch Exp $
+$NetBSD: patch-ah,v 1.7 2008/05/09 18:43:07 agc Exp $
--- src/utmp.c.orig 2006-05-11 04:33:40.000000000 +0100
+++ src/utmp.c 2006-11-25 13:01:25.000000000 +0000
-@@ -47,8 +47,13 @@
+@@ -44,11 +44,20 @@
+ static int utmp_pos; /* BSD position of utmp-stamp */
+ # endif
+
++
# ifdef USE_SYSV_UTMP
# ifdef HAVE_UTMPX_H
+# include <utmp.h>
# undef WTMP_FILENAME
-# define WTMP_FILENAME WTMPX_FILE
++# ifndef _PATH_WTMPX
++# define _PATH_WTMPX "/var/log/wtmp"
++# endif
+# if defined(WTMPX_FILE)
+# define WTMP_FILENAME WTMPX_FILE
+# else
@@ -17,7 +24,7 @@
# define update_wtmp updwtmpx
# else /* HAVE_UTMPX_H */
-@@ -128,9 +133,9 @@
+@@ -128,22 +137,26 @@
privileges(INVOKE);
# ifdef HAVE_UTMPX_H
getutmp(&utmp, &utmp2);
@@ -29,7 +36,24 @@
# endif
/* set up the new entry */
-@@ -152,16 +157,15 @@
+ strncpy(utmp.ut_id, ut_id, sizeof(utmp.ut_id));
+ strncpy(utmp.ut_line, pty, sizeof(utmp.ut_line));
++# ifndef __APPLE__
+ strncpy(utmp.ut_name, pwent->pw_name, sizeof(utmp.ut_name));
++# endif
+ strncpy(utmp.ut_user, pwent->pw_name, sizeof(utmp.ut_user));
+ strncpy(utmp.ut_host, hostname, sizeof(utmp.ut_host));
+ utmp.ut_type = USER_PROCESS;
+ utmp.ut_pid = getpid();
+ # ifdef HAVE_UTMPX_H
++# ifndef __APPLE__
+ utmp.ut_session = getsid(0);
+ utmp.ut_xtime = time(NULL);
++# endif /* __APPLE__ */
+ utmp.ut_tv.tv_usec = 0;
+ # else
+ utmp.ut_time = time(NULL);
+@@ -152,16 +165,15 @@
/*
* write a utmp entry to the utmp file
*/
@@ -48,7 +72,7 @@
privileges(REVERT);
return;
fd = 0;
-@@ -177,19 +181,19 @@
+@@ -177,19 +189,19 @@
if (!ut_id[0])
return; /* entry not made */
Home |
Main Index |
Thread Index |
Old Index