diff options
author | Jason Huebel <jhuebel@gentoo.org> | 2004-05-07 15:47:48 +0000 |
---|---|---|
committer | Jason Huebel <jhuebel@gentoo.org> | 2004-05-07 15:47:48 +0000 |
commit | a854c032e2e2ed4c134b29e06ab237c1f10f73af (patch) | |
tree | 623b1111eafe250eb868516cbd15b6bb56be16e4 /net-misc/putty | |
parent | Stable on sparc (Manifest recommit) (diff) | |
download | gentoo-2-a854c032e2e2ed4c134b29e06ab237c1f10f73af.tar.gz gentoo-2-a854c032e2e2ed4c134b29e06ab237c1f10f73af.tar.bz2 gentoo-2-a854c032e2e2ed4c134b29e06ab237c1f10f73af.zip |
~amd64 and added ut_time patch for amd64
Diffstat (limited to 'net-misc/putty')
-rw-r--r-- | net-misc/putty/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/putty/files/putty-ut_time.patch | 21 | ||||
-rw-r--r-- | net-misc/putty/putty-20030902-r1.ebuild | 4 | ||||
-rw-r--r-- | net-misc/putty/putty-20040313-r1.ebuild | 7 |
4 files changed, 33 insertions, 5 deletions
diff --git a/net-misc/putty/ChangeLog b/net-misc/putty/ChangeLog index 7aee7e3ca84b..a2a169a56c6e 100644 --- a/net-misc/putty/ChangeLog +++ b/net-misc/putty/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/putty # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/ChangeLog,v 1.13 2004/05/06 09:10:12 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/ChangeLog,v 1.14 2004/05/07 15:47:48 jhuebel Exp $ + + 07 May 2004; Jason Eric Huebel <jhuebel@gentoo.org> + +files/putty-ut_time.patch, putty-20040313-r1.ebuild: + ~amd64 and added ut_time patch for amd64 *putty-20040313-r1 (06 May 2004) diff --git a/net-misc/putty/files/putty-ut_time.patch b/net-misc/putty/files/putty-ut_time.patch new file mode 100644 index 000000000000..5d5d8b026de5 --- /dev/null +++ b/net-misc/putty/files/putty-ut_time.patch @@ -0,0 +1,21 @@ +diff -ur putty.old/unix/pty.c putty/unix/pty.c +--- putty.old/unix/pty.c 2003-05-11 07:28:53.000000000 -0500 ++++ putty/unix/pty.c 2004-05-07 10:03:44.174148128 -0500 +@@ -106,7 +106,7 @@ + strncpy(utmp_entry.ut_id, ttyname+8, lenof(utmp_entry.ut_id)); + strncpy(utmp_entry.ut_user, pw->pw_name, lenof(utmp_entry.ut_user)); + strncpy(utmp_entry.ut_host, location, lenof(utmp_entry.ut_host)); +- time(&utmp_entry.ut_time); ++ utmp_entry.ut_time = time(NULL); + + #if defined HAVE_PUTUTLINE + utmpname(UTMP_FILE); +@@ -147,7 +147,7 @@ + + utmp_entry.ut_type = DEAD_PROCESS; + memset(utmp_entry.ut_user, 0, lenof(utmp_entry.ut_user)); +- time(&utmp_entry.ut_time); ++ utmp_entry.ut_time = time(NULL); + + if ((wtmp = fopen(WTMP_FILE, "a")) != NULL) { + fwrite(&utmp_entry, 1, sizeof(utmp_entry), wtmp); diff --git a/net-misc/putty/putty-20030902-r1.ebuild b/net-misc/putty/putty-20030902-r1.ebuild index cff0d75bb982..77abfe18129f 100644 --- a/net-misc/putty/putty-20030902-r1.ebuild +++ b/net-misc/putty/putty-20030902-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. +# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-20030902-r1.ebuild,v 1.3 2003/10/29 16:48:08 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-20030902-r1.ebuild,v 1.4 2004/05/07 15:47:48 jhuebel Exp $ DESCRIPTION="UNIX port of the famous Telnet and SSH client" diff --git a/net-misc/putty/putty-20040313-r1.ebuild b/net-misc/putty/putty-20040313-r1.ebuild index 5095c531d363..5bb2cf9674c2 100644 --- a/net-misc/putty/putty-20040313-r1.ebuild +++ b/net-misc/putty/putty-20040313-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-20040313-r1.ebuild,v 1.1 2004/05/06 09:10:12 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/putty/putty-20040313-r1.ebuild,v 1.2 2004/05/07 15:47:48 jhuebel Exp $ inherit eutils @@ -11,7 +11,7 @@ SRC_URI="mirror://gentoo/putty-cvs-${PV}.tar.bz2" LICENSE="MIT" SLOT="0" -KEYWORDS="~x86 ~alpha ~ppc ~sparc" +KEYWORDS="~x86 ~alpha ~ppc ~sparc ~amd64" IUSE="doc" RDEPEND="=x11-libs/gtk+-1.2* virtual/x11" @@ -33,6 +33,9 @@ src_unpack() { ebegin "Setting CFLAGS" sed -i "s!-O2!${CFLAGS}!g" ${S}/unix/Makefile.gtk eend $? + + # apply ut_time patch for amd64 + use amd64 && epatch ${FILESDIR}/putty-ut_time.patch } src_compile() { |