diff options
author | ade <ade@FreeBSD.org> | 2000-02-24 02:38:28 +0800 |
---|---|---|
committer | ade <ade@FreeBSD.org> | 2000-02-24 02:38:28 +0800 |
commit | 0e43f00b3bc0407570c3ed0897c79b94b696d87e (patch) | |
tree | 1ac95275096550a326a17fa7b45026d97486a194 /x11/libgnome | |
parent | 95a6c670380f5b82f0ad3f1f0350b959a684e252 (diff) | |
download | freebsd-ports-gnome-0e43f00b3bc0407570c3ed0897c79b94b696d87e.tar.gz freebsd-ports-gnome-0e43f00b3bc0407570c3ed0897c79b94b696d87e.tar.zst freebsd-ports-gnome-0e43f00b3bc0407570c3ed0897c79b94b696d87e.zip |
Squeeze another update (to 1.0.56) under the wire before 4.0-RELEASE
Diffstat (limited to 'x11/libgnome')
-rw-r--r-- | x11/libgnome/Makefile | 6 | ||||
-rw-r--r-- | x11/libgnome/distinfo | 2 | ||||
-rw-r--r-- | x11/libgnome/files/patch-bk | 259 | ||||
-rw-r--r-- | x11/libgnome/pkg-plist | 1 |
4 files changed, 5 insertions, 263 deletions
diff --git a/x11/libgnome/Makefile b/x11/libgnome/Makefile index 17120179563b..f039b6069f37 100644 --- a/x11/libgnome/Makefile +++ b/x11/libgnome/Makefile @@ -1,13 +1,13 @@ # New ports collection makefile for: gnomelibs -# Version required: 1.0.55 +# Version required: 1.0.56 # Date created: 17 June 1998 # Whom: Yukihiro Nakai <Nakai@technologist.com> # # $FreeBSD$ # -DISTNAME= gnome-libs-1.0.55 -PKGNAME= gnomelibs-1.0.55 +DISTNAME= gnome-libs-1.0.56 +PKGNAME= gnomelibs-1.0.56 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/gnome-libs diff --git a/x11/libgnome/distinfo b/x11/libgnome/distinfo index 972f840929a3..234eb1a87a1d 100644 --- a/x11/libgnome/distinfo +++ b/x11/libgnome/distinfo @@ -1 +1 @@ -MD5 (gnome-libs-1.0.55.tar.gz) = be8779341d598b4d5656b2383028b36c +MD5 (gnome-libs-1.0.56.tar.gz) = fd2941e2a7fd89afd39c962fd0791003 diff --git a/x11/libgnome/files/patch-bk b/x11/libgnome/files/patch-bk deleted file mode 100644 index 41ea08e17006..000000000000 --- a/x11/libgnome/files/patch-bk +++ /dev/null @@ -1,259 +0,0 @@ ---- zvt/gnome-pty-helper.c.orig Thu Jan 6 06:27:52 2000 -+++ zvt/gnome-pty-helper.c Thu Jan 20 16:40:32 2000 -@@ -319,7 +319,7 @@ - } - - static int --open_ptys (int utmp, int wtmp) -+open_ptys (int utmp, int wtmp, int lastlog) - { - char *term_name; - int status, master_pty, slave_pty; -@@ -454,7 +454,7 @@ - - /* These two may overlap so set them first */ - term.c_cc[VTIME] = 0; -- term.c_cc[VMIN] = 0; -+ term.c_cc[VMIN] = 1; - - /* - * Now set the characters. This is of course a religious matter -@@ -496,10 +496,21 @@ - #ifdef VEOL2 - term.c_cc[VEOL2] = 0; - #endif -+#ifdef VSTATUS -+ term.c_cc[VSTATUS] = 'T'-64; -+#endif -+#ifdef VDSUSP -+ term.c_cc[VDSUSP] = 'Y'-64; -+#endif - - status = openpty (&master_pty, &slave_pty, term_name, &term, NULL); -+#ifdef HAVE_SETEUID -+ seteuid(savedUid); -+ setegid(savedGid); -+#else - setuid(savedUid); - setgid(savedGid); -+#endif - - if (status == -1){ - result = 0; -@@ -521,8 +532,8 @@ - exit (0); - } - -- if (utmp || wtmp){ -- p->data = update_dbs (utmp, wtmp, login_name, display_name, term_name); -+ if (utmp || wtmp || lastlog){ -+ p->data = update_dbs (utmp, wtmp, lastlog, login_name, display_name, term_name); - } - - return 1; -@@ -676,19 +687,35 @@ - - switch (op){ - case GNOME_PTY_OPEN_PTY_UTMP: -- open_ptys (1, 0); -+ open_ptys (1, 0, 0); - break; - - case GNOME_PTY_OPEN_PTY_UWTMP: -- open_ptys (1, 1); -+ open_ptys (1, 1, 0); - break; - - case GNOME_PTY_OPEN_PTY_WTMP: -- open_ptys (0, 1); -+ open_ptys (0, 1, 0); - break; - -+ case GNOME_PTY_OPEN_PTY_LASTLOG: -+ open_ptys (0, 0, 1); -+ break; -+ -+ case GNOME_PTY_OPEN_PTY_LASTLOGUTMP: -+ open_ptys (1, 0, 1); -+ break; -+ -+ case GNOME_PTY_OPEN_PTY_LASTLOGUWTMP: -+ open_ptys (1, 1, 1); -+ break; -+ -+ case GNOME_PTY_OPEN_PTY_LASTLOGWTMP: -+ open_ptys (0, 1, 1); -+ break; -+ - case GNOME_PTY_OPEN_NO_DB_UPDATE: -- open_ptys (0, 0); -+ open_ptys (0, 0, 0); - break; - - case GNOME_PTY_CLOSE_PTY: ---- zvt/gnome-pty.h.orig Wed Jan 12 10:22:01 2000 -+++ zvt/gnome-pty.h Wed Jan 12 10:35:06 2000 -@@ -5,12 +5,16 @@ - GNOME_PTY_OPEN_PTY_UTMP = 1, - GNOME_PTY_OPEN_PTY_UWTMP, - GNOME_PTY_OPEN_PTY_WTMP, -+ GNOME_PTY_OPEN_PTY_LASTLOG, -+ GNOME_PTY_OPEN_PTY_LASTLOGUTMP, -+ GNOME_PTY_OPEN_PTY_LASTLOGUWTMP, -+ GNOME_PTY_OPEN_PTY_LASTLOGWTMP, - GNOME_PTY_OPEN_NO_DB_UPDATE, - GNOME_PTY_CLOSE_PTY - } GnomePtyOps; - --void *update_dbs (int utmp, int wtmp, char *login_name, char *display_name, char *term_name); --void *write_login_record (char *login_name, char *display_name, char *term_name, int utmp, int wtmp); -+void *update_dbs (int utmp, int wtmp, int lastlog, char *login_name, char *display_name, char *term_name); -+void *write_login_record (char *login_name, char *display_name, char *term_name, int utmp, int wtmp, int lastlog); - void write_logout_record (void *data, int utmp, int wtmp); - - #endif ---- zvt/gnome-utmp.c.orig Wed Jan 12 07:44:41 2000 -+++ zvt/gnome-utmp.c Wed Jan 12 11:24:30 2000 -@@ -31,6 +31,11 @@ - # include <paths.h> - #endif - -+#ifdef _PATH_LASTLOG -+#include <sys/types.h> -+#include <sys/uio.h> -+#endif /* _PATH_LASTLOG */ -+ - #if defined(HAVE_UTMPX_H) - # include <utmpx.h> - #endif -@@ -165,6 +170,30 @@ - } - #endif - -+#ifdef _PATH_LASTLOG -+static void -+update_lastlog(UTMP *ut) -+{ -+ int fd; -+ struct iovec *p; -+ struct iovec iov[3]; -+ -+ p = iov; -+ p->iov_base = (char *)&ut->ut_time; -+ p->iov_len = sizeof ut->ut_time; -+ (++p)->iov_base = ut->ut_line; -+ p->iov_len = sizeof ut->ut_line; -+ (++p)->iov_base = ut->ut_host; -+ p->iov_len = sizeof ut->ut_host; -+ if ((fd = open(_PATH_LASTLOG, O_WRONLY, 0)) >= 0) { -+ (void) lseek(fd, getuid() * sizeof (struct lastlog), -+ SEEK_SET); -+ (void) writev(fd, iov, sizeof iov / sizeof (struct iovec)); -+ (void) close(fd); -+ } -+} -+#endif /* _PATH_LASTLOG */ -+ - void - write_logout_record (void *data, int utmp, int wtmp) - { -@@ -197,7 +226,7 @@ - } - - void * --write_login_record (char *login_name, char *display_name, char *term_name, int utmp, int wtmp) -+write_login_record (char *login_name, char *display_name, char *term_name, int utmp, int wtmp, int lastlog) - { - UTMP *ut; - char *pty = term_name; -@@ -263,6 +292,11 @@ - # endif - #endif - -+#ifdef _PATH_LASTLOG -+ if (lastlog) -+ update_lastlog(ut); -+#endif /* _PATH_LASTLOG */ -+ - if (utmp) - update_utmp (ut); - -@@ -273,7 +307,7 @@ - } - - void * --update_dbs (int utmp, int wtmp, char *login_name, char *display_name, char *term_name) -+update_dbs (int utmp, int wtmp, int lastlog, char *login_name, char *display_name, char *term_name) - { -- return write_login_record (login_name, display_name, term_name, utmp, wtmp); -+ return write_login_record (login_name, display_name, term_name, utmp, wtmp, lastlog); - } ---- zvt/subshell.c.orig Wed Jan 12 10:25:30 2000 -+++ zvt/subshell.c Wed Jan 12 11:23:49 2000 -@@ -25,6 +25,7 @@ - #include "subshell-includes.h" - #define ZVT_TERM_DO_UTMP_LOG 1 - #define ZVT_TERM_DO_WTMP_LOG 2 -+#define ZVT_TERM_DO_LASTLOG 4 - - /* Pid of the helper SUID process */ - static pid_t helper_pid; -@@ -260,14 +261,22 @@ - op = GNOME_PTY_OPEN_NO_DB_UPDATE; - - if (update_wutmp & ZVT_TERM_DO_UTMP_LOG){ -- if (update_wutmp & ZVT_TERM_DO_WTMP_LOG) -+ if (update_wutmp & (ZVT_TERM_DO_WTMP_LOG | ZVT_TERM_DO_LASTLOG)) -+ op = GNOME_PTY_OPEN_PTY_LASTLOGUWTMP; -+ else if (update_wutmp & ZVT_TERM_DO_WTMP_LOG) - op = GNOME_PTY_OPEN_PTY_UWTMP; -+ else if (update_wutmp & ZVT_TERM_DO_LASTLOG) -+ op = GNOME_PTY_OPEN_PTY_LASTLOGUTMP; - else - op = GNOME_PTY_OPEN_PTY_UTMP; -- } else { -- if (update_wutmp & ZVT_TERM_DO_WTMP_LOG) -+ } else if (update_wutmp & ZVT_TERM_DO_WTMP_LOG) { -+ if (update_wutmp & (ZVT_TERM_DO_WTMP_LOG | ZVT_TERM_DO_LASTLOG)) -+ op = GNOME_PTY_OPEN_PTY_LASTLOGWTMP; -+ else if (update_wutmp & ZVT_TERM_DO_WTMP_LOG) - op = GNOME_PTY_OPEN_PTY_WTMP; -- } -+ } else -+ if (update_wutmp & ZVT_TERM_DO_LASTLOG) -+ op = GNOME_PTY_OPEN_PTY_LASTLOG; - - if (write (helper_socket_protocol [0], &op, sizeof (op)) < 0) - return NULL; ---- zvt/test-utmp.c.orig Wed Jan 12 10:22:06 2000 -+++ zvt/test-utmp.c Wed Jan 12 10:24:21 2000 -@@ -8,7 +8,7 @@ - main () - { - void *utmp; -- utmp = update_dbs (1, 1, "testlogin", ":0", "/dev/ttyp9"); -+ utmp = update_dbs (1, 1, 1, "testlogin", ":0", "/dev/ttyp9"); - sleep (120); - write_logout_record (utmp, 1, 1); - return 0; ---- zvt/zterm.c.orig Wed Jan 12 10:55:55 2000 -+++ zvt/zterm.c Wed Jan 12 10:56:13 2000 -@@ -264,7 +264,7 @@ - gtk_widget_show (window); - - /* fork the shell/program */ -- switch (zvt_term_forkpty(ZVT_TERM (term), ZVT_TERM_DO_UTMP_LOG | ZVT_TERM_DO_WTMP_LOG)) { -+ switch (zvt_term_forkpty(ZVT_TERM (term), ZVT_TERM_DO_UTMP_LOG | ZVT_TERM_DO_WTMP_LOG | ZVT_TERM_DO_LASTLOG)) { - case -1: - perror("ERROR: unable to fork:"); - exit(1); ---- zvt/zvtterm.h.orig Wed Jan 12 10:36:48 2000 -+++ zvt/zvtterm.h Wed Jan 12 10:37:21 2000 -@@ -177,6 +177,7 @@ - /* options for fork */ - #define ZVT_TERM_DO_UTMP_LOG 1 - #define ZVT_TERM_DO_WTMP_LOG 2 -+#define ZVT_TERM_DO_LASTLOG 4 - - /* background flag options */ - #define ZVT_BACKGROUND_SHADED 0x01 /* shade background image. This must be left as 1 for api compat! */ diff --git a/x11/libgnome/pkg-plist b/x11/libgnome/pkg-plist index 5abcb7dada15..05b84aefddb6 100644 --- a/x11/libgnome/pkg-plist +++ b/x11/libgnome/pkg-plist @@ -255,6 +255,7 @@ share/locale/hu/LC_MESSAGES/gnome-libs.mo share/locale/it/LC_MESSAGES/gnome-libs.mo share/locale/ja/LC_MESSAGES/gnome-libs.mo share/locale/ko/LC_MESSAGES/gnome-libs.mo +share/locale/lt/LC_MESSAGES/gnome-libs.mo share/locale/nl/LC_MESSAGES/gnome-libs.mo share/locale/no/LC_MESSAGES/gnome-libs.mo share/locale/pl/LC_MESSAGES/gnome-libs.mo |