Compare commits
	
		
			5 Commits
		
	
	
		
			LIBGTOP_1_
			...
			GNOME_0_20
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					266d62bc3c | ||
| 
						 | 
					4c3fb58e3e | ||
| 
						 | 
					223f986205 | ||
| 
						 | 
					ec0d751472 | ||
| 
						 | 
					005eaa8e95 | 
							
								
								
									
										17
									
								
								ChangeLog
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								ChangeLog
									
									
									
									
									
								
							@@ -1,3 +1,20 @@
 | 
			
		||||
1998-06-03  Martin Baulig  <baulig@merkur.uni-trier.de>
 | 
			
		||||
 | 
			
		||||
	* libgtop.spec: New file.
 | 
			
		||||
	
 | 
			
		||||
	* Makefile.am (EXTRA_DIST): Added `autogen.sh' and
 | 
			
		||||
	`libgtop.spec'.
 | 
			
		||||
	
 | 
			
		||||
	* configure.in (LIBGTOP_INCS): is now identically to
 | 
			
		||||
	`LIBGTOP_GUILE_INCS'.
 | 
			
		||||
 | 
			
		||||
	* include/glibtop/global.h: only including intl headers
 | 
			
		||||
	while compiling libgtop.
 | 
			
		||||
 | 
			
		||||
1998-06-02  Federico Mena Quintero  <federico@nuclecu.unam.mx>
 | 
			
		||||
 | 
			
		||||
	* src/server/main.c: #include <locale.h>
 | 
			
		||||
 | 
			
		||||
1998-05-24  Martin Baulig  <martin@home-of-linux.org>
 | 
			
		||||
 | 
			
		||||
	* sysdeps/sun4/{open.c, mem.c, glibtop_machine.h}: added
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ DIST_SUBDIRS = po intl support macros include sysdeps src lib examples
 | 
			
		||||
 | 
			
		||||
include_HEADERS = glibtop.h
 | 
			
		||||
 | 
			
		||||
EXTRA_DIST = copyright.txt libgtopConf.sh.in
 | 
			
		||||
EXTRA_DIST = autogen.sh libgtop.spec copyright.txt libgtopConf.sh.in
 | 
			
		||||
 | 
			
		||||
release:
 | 
			
		||||
	$(MAKE) dist distdir=$(PACKAGE)$(VERSION)
 | 
			
		||||
 
 | 
			
		||||
@@ -153,6 +153,7 @@ else
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if test "x$ac_cv_guile_found" = "xyes" ; then
 | 
			
		||||
  LIBGTOP_INCS="$LIBGTOP_INCS $GUILE_INCS"
 | 
			
		||||
  LIBGTOP_GUILE_INCS="$LIBGTOP_INCS $GUILE_INCS"
 | 
			
		||||
  LIBGTOP_GUILE_LIBS="$LIBGTOP_GUILE_LIBS $GUILE_LIBS"
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,8 @@
 | 
			
		||||
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 | 
			
		||||
   Boston, MA 02111-1307, USA.  */
 | 
			
		||||
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
 | 
			
		||||
#include <glibtop.h>
 | 
			
		||||
#include <glibtop/open.h>
 | 
			
		||||
#include <glibtop/close.h>
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,8 @@
 | 
			
		||||
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 | 
			
		||||
   Boston, MA 02111-1307, USA.  */
 | 
			
		||||
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
 | 
			
		||||
#include <glibtop.h>
 | 
			
		||||
#include <glibtop/open.h>
 | 
			
		||||
#include <glibtop/close.h>
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,8 @@
 | 
			
		||||
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 | 
			
		||||
   Boston, MA 02111-1307, USA.  */
 | 
			
		||||
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
 | 
			
		||||
#include <glibtop.h>
 | 
			
		||||
     
 | 
			
		||||
#include <glibtop/open.h>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +0,0 @@
 | 
			
		||||
(display (get-cpu)) (newline)
 | 
			
		||||
(display (get-mem)) (newline)
 | 
			
		||||
(display (get-swap)) (newline)
 | 
			
		||||
(display (get-uptime)) (newline)
 | 
			
		||||
(display (get-loadavg)) (newline)
 | 
			
		||||
(display (get-shm_limits)) (newline)
 | 
			
		||||
(display (get-msg_limits)) (newline)
 | 
			
		||||
(display (get-sem_limits)) (newline)
 | 
			
		||||
(display (get-sysdeps)) (newline)
 | 
			
		||||
(display (get-proclist)) (newline)
 | 
			
		||||
@@ -55,11 +55,13 @@
 | 
			
		||||
#include <guile/gh.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef _IN_LIBGTOP
 | 
			
		||||
#if (defined HAVE_LIBINTL_H) || (defined HAVE_GETTEXT)
 | 
			
		||||
#include <libintl.h>
 | 
			
		||||
#else
 | 
			
		||||
#include <libgettext.h>
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,32 +0,0 @@
 | 
			
		||||
/* $Id$ */
 | 
			
		||||
 | 
			
		||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
 | 
			
		||||
   This file is part of the Gnome Top Library.
 | 
			
		||||
   Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
 | 
			
		||||
 | 
			
		||||
   The Gnome Top Library is free software; you can redistribute it and/or
 | 
			
		||||
   modify it under the terms of the GNU Library General Public License as
 | 
			
		||||
   published by the Free Software Foundation; either version 2 of the
 | 
			
		||||
   License, or (at your option) any later version.
 | 
			
		||||
 | 
			
		||||
   The Gnome Top Library is distributed in the hope that it will be useful,
 | 
			
		||||
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
			
		||||
   Library General Public License for more details.
 | 
			
		||||
 | 
			
		||||
   You should have received a copy of the GNU Library General Public
 | 
			
		||||
   License along with the GNU C Library; see the file COPYING.LIB.  If not,
 | 
			
		||||
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 | 
			
		||||
   Boston, MA 02111-1307, USA.  */
 | 
			
		||||
 | 
			
		||||
#include <glibtop/sysdeps.h>
 | 
			
		||||
#include <glibtop/command.h>
 | 
			
		||||
 | 
			
		||||
/* Checks which features are implemented. */
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
glibtop_get_sysdeps__r (glibtop *server, glibtop_sysdeps *buf)
 | 
			
		||||
{
 | 
			
		||||
	glibtop_init__r (&server);
 | 
			
		||||
	glibtop_call__r (server, GLIBTOP_CMND_SYSDEPS, 0, NULL, sizeof (glibtop_sysdeps), buf);
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										89
									
								
								libgtop.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										89
									
								
								libgtop.spec
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,89 @@
 | 
			
		||||
# Note that this is NOT a relocatable package
 | 
			
		||||
%define ver      0.01
 | 
			
		||||
%define rel      SNAP
 | 
			
		||||
%define prefix   /usr
 | 
			
		||||
 | 
			
		||||
Summary: GNOME Top Library
 | 
			
		||||
Name: libgtop
 | 
			
		||||
Version: %ver
 | 
			
		||||
Release: %rel
 | 
			
		||||
Copyright: LGPL
 | 
			
		||||
Group: X11/gnome
 | 
			
		||||
Source: ftp://ftp.gnome.org/pub/libgtop-%{ver}.tar.gz
 | 
			
		||||
BuildRoot: /tmp/libgtop-root
 | 
			
		||||
Obsoletes: gnome
 | 
			
		||||
Packager: Marc Ewing <marc@redhat.com>
 | 
			
		||||
URL: http://www.gnome.org/
 | 
			
		||||
Docdir: %{prefix}/doc
 | 
			
		||||
 | 
			
		||||
%description
 | 
			
		||||
Library that fetches information about the running system such as cpu
 | 
			
		||||
and memory usage, active processes etc. On Linux systems, these information
 | 
			
		||||
are taken directly from the /proc filesystem. For other systems such as
 | 
			
		||||
Solaris, where such programs need to be suid root (or only setgid kmem/mem
 | 
			
		||||
on some systems), it provides a suid/setgid server that fetches those
 | 
			
		||||
information and a client-side library that talks to this server.
 | 
			
		||||
 | 
			
		||||
Main idea was to have the same interface for all operating systems,
 | 
			
		||||
thus all system dependent details are hidden in the implementation
 | 
			
		||||
of that server.
 | 
			
		||||
 | 
			
		||||
%package devel
 | 
			
		||||
Summary: Libraries, includes, etc to use libgtop in GNOME applications
 | 
			
		||||
Group: X11/gnome
 | 
			
		||||
Requires: libgtop
 | 
			
		||||
Obsoletes: gnome
 | 
			
		||||
 | 
			
		||||
%description devel
 | 
			
		||||
Libraries, include files, etc you need to use libgtop in GNOME applications.
 | 
			
		||||
 | 
			
		||||
%prep
 | 
			
		||||
%setup
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
# Needed for snapshot releases.
 | 
			
		||||
if [ ! -f configure ]; then
 | 
			
		||||
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix
 | 
			
		||||
else
 | 
			
		||||
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ "$SMP" != "" ]; then
 | 
			
		||||
  (make "MAKE=make -k -j $SMP"; exit 0)
 | 
			
		||||
  make
 | 
			
		||||
else
 | 
			
		||||
  make
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
%install
 | 
			
		||||
rm -rf $RPM_BUILD_ROOT
 | 
			
		||||
 | 
			
		||||
make prefix=$RPM_BUILD_ROOT%{prefix} install
 | 
			
		||||
 | 
			
		||||
%clean
 | 
			
		||||
rm -rf $RPM_BUILD_ROOT
 | 
			
		||||
 | 
			
		||||
%post 
 | 
			
		||||
if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
 | 
			
		||||
  echo "%{prefix}/lib" >> /etc/ld.so.conf
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
/sbin/ldconfig
 | 
			
		||||
 | 
			
		||||
%postun -p /sbin/ldconfig
 | 
			
		||||
 | 
			
		||||
%files
 | 
			
		||||
%defattr(-, root, root)
 | 
			
		||||
 | 
			
		||||
%doc AUTHORS COPYING ChangeLog NEWS README
 | 
			
		||||
%{prefix}/lib/lib*.so.*
 | 
			
		||||
%{prefix}/bin/*
 | 
			
		||||
 | 
			
		||||
%files devel
 | 
			
		||||
%defattr(-, root, root)
 | 
			
		||||
 | 
			
		||||
%{prefix}/lib/lib*.so
 | 
			
		||||
%{prefix}/lib/*a
 | 
			
		||||
%{prefix}/lib/*.sh
 | 
			
		||||
%{prefix}/lib/libgtop
 | 
			
		||||
%{prefix}/include/*
 | 
			
		||||
@@ -6,7 +6,6 @@ lib/open.c
 | 
			
		||||
lib/read.c
 | 
			
		||||
lib/swap.c
 | 
			
		||||
lib/write.c
 | 
			
		||||
lib/sysdeps.c
 | 
			
		||||
lib/uptime.c
 | 
			
		||||
lib/loadavg.c
 | 
			
		||||
lib/shm_limits.c
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,7 @@
 | 
			
		||||
#include <glibtop/open.h>
 | 
			
		||||
 | 
			
		||||
#include <fcntl.h>
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
 | 
			
		||||
#if defined(HAVE_GETDTABLESIZE)
 | 
			
		||||
#define GET_MAX_FDS() getdtablesize()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user