Import libgtop2-2.0.0

--
LibGTop is a library for obtaining information about processes and the system.
This includes information about the following areas:

* General System Information
* SYS V IPC Limits:
* Network:
* Process List:
* Process information:
* Process maps:
* File system usage:

From marcm for gnome2
This commit is contained in:
todd 2003-01-31 18:35:57 +00:00
parent 312bb938a1
commit 1cfb9c8af0
9 changed files with 408 additions and 0 deletions

39
devel/libgtop2/Makefile Normal file
View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/01/31 18:35:57 todd Exp $
COMMENT= "portable library for obtaining system information"
V= 2.0.0
DISTNAME= libgtop-${V}
PKGNAME= libgtop2-${V}
CATEGORIES= devel
HOMEPAGE= http://www.gnome.org
MAINTAINER= Marc Matteo <marcm@openbsd.org>
SYSDEPS= openbsd-libgtop-020830
DISTFILES= ${DISTNAME}.tar.bz2 \
${SYSDEPS}.tar.gz:0
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgtop/2.0/}
MASTER_SITES0= http://nforced.com/openbsd/distfiles/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES=
LIB_DEPENDS=
SEPARATE_BUILD= concurrent
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-extract:
@mv ${WRKDIR}/${SYSDEPS} ${WRKSRC}/sysdeps/openbsd
.include <bsd.port.mk>

6
devel/libgtop2/distinfo Normal file
View File

@ -0,0 +1,6 @@
MD5 (libgtop-2.0.0.tar.bz2) = 80cda9d8541b3e7404a65f180e98f42d
MD5 (openbsd-libgtop-020830.tar.gz) = 382e1c276bb5a92969d963c97294d7d4
RMD160 (libgtop-2.0.0.tar.bz2) = ec3f93ae688ca103c5e949cde6795ada1ce0432b
RMD160 (openbsd-libgtop-020830.tar.gz) = 94bacc99553d5eb72e4d6cb5f0ce219468f3d663
SHA1 (libgtop-2.0.0.tar.bz2) = 9178e5cede22ae5a8928677b195fe585b84b3b86
SHA1 (openbsd-libgtop-020830.tar.gz) = 6d78d7daf6d6f543b7e192a68b24ee2f09cbbb31

View File

@ -0,0 +1,74 @@
$OpenBSD: patch-aclocal_m4,v 1.1.1.1 2003/01/31 18:35:57 todd Exp $
--- aclocal.m4.orig Mon Jun 10 14:45:51 2002
+++ aclocal.m4 Fri Dec 6 22:27:34 2002
@@ -716,17 +716,23 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
fi
libgtop_need_server=no
;;
- freebsd*|netbsd*|openbsd*|bsdi*)
+ freebsd*|netbsd*|bsdi*)
libgtop_sysdeps_dir=freebsd
libgtop_use_machine_h=yes
libgtop_need_server=yes
- libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
+ libgtop_postinstall='chgrp kmem $(DESTDIR)$(bindir)/libgtop_server && chmod 2755 $(DESTDIR)$(bindir)/libgtop_server2'
+ ;;
+ openbsd*)
+ libgtop_sysdeps_dir=openbsd
+ libgtop_use_machine_h=yes
+ libgtop_need_server=yes
+ libgtop_postinstall='chgrp kmem $(DESTDIR)$(bindir)/libgtop_server && chmod 2755 $(DESTDIR)$(bindir)/libgtop_server2'
;;
solaris*)
libgtop_sysdeps_dir=solaris
libgtop_use_machine_h=yes
libgtop_need_server=yes
- libgtop_postinstall='chgrp sys $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
+ libgtop_postinstall='chgrp kmem $(DESTDIR)$(bindir)/libgtop_server && chmod 2755 $(DESTDIR)$(bindir)/libgtop_server2'
;;
*)
if test x$hacker_mode = xyes ; then
@@ -2561,10 +2567,24 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-R$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ else
+ case "$host_os" in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-R$libdir'
+ ;;
+ esac
+ fi
;;
os2*)
@@ -4171,6 +4191,16 @@ newos6*)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+openbsd*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
+ else
+ lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
+ fi
;;
osf3* | osf4* | osf5*)

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-configure_in,v 1.1.1.1 2003/01/31 18:35:57 todd Exp $
--- configure.in.orig Mon Jun 10 23:45:47 2002
+++ configure.in Mon Jul 29 21:53:39 2002
@@ -372,7 +372,7 @@ LIBGTOP_INCS="$LIBGTOP_INCS $SUPPORTINCS
LIBGTOP_GUILE_LIBS="$LIBGTOP_LIBS"
LIBGTOP_GUILE_INCS="$LIBGTOP_INCS"
LIBGTOP_BINDIR='$(bindir)'
-LIBGTOP_SERVER='$(bindir)/libgtop_server'
+LIBGTOP_SERVER='$(bindir)/libgtop_server2'
sysdeps_dir="$libgtop_sysdeps_dir"
AC_SUBST(sysdeps_dir)
@@ -441,7 +441,7 @@ AC_SUBST(LIBGTOP_SERVER)
if test x$libgtop_need_server = xyes ; then
sysdeps_suid_lib="\$(top_builddir)/sysdeps/\$(sysdeps_dir)/libgtop_sysdeps_suid-2.0.la"
- server_programs='libgtop_server'
+ server_programs='libgtop_server2'
else
sysdeps_suid_lib=
server_programs=
@@ -468,6 +468,7 @@ sysdeps/osf1/Makefile
sysdeps/linux/Makefile
sysdeps/kernel/Makefile
sysdeps/freebsd/Makefile
+sysdeps/openbsd/Makefile
sysdeps/solaris/Makefile
src/Makefile
src/daemon/Makefile

View File

@ -0,0 +1,62 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2003/01/31 18:35:57 todd Exp $
--- ltmain.sh.orig Mon Jun 10 23:45:50 2002
+++ ltmain.sh Sun Jul 28 19:35:04 2002
@@ -1037,6 +1037,17 @@ compiler."
continue
;;
+ -pthread)
+ case $host in
+ *-*-openbsd*)
+ deplibs="$deplibs $arg"
+ ;;
+ *)
+ continue
+ ;;
+ esac
+ ;;
+
-module)
module=yes
continue
@@ -4412,40 +4423,6 @@ relink_command=\"$relink_command\""
# Exit here if they wanted silent mode.
test "$show" = ":" && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_daemon_Makefile_in,v 1.1.1.1 2003/01/31 18:35:57 todd Exp $
--- src/daemon/Makefile.in.orig Mon Jun 10 23:49:23 2002
+++ src/daemon/Makefile.in Mon Jul 29 21:54:46 2002
@@ -161,7 +161,7 @@ EXTRA_PROGRAMS = libgtop_server2
libgtop_daemon2_SOURCES = gnuserv.c slave.c main.c io.c version.c daemon.h server_config.h
-libgtop_daemon2_LDADD = $(top_builddir)/lib/libgtop-2.0.la $(top_builddir)/sysdeps/common/libgtop_common-2.0.la $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la @sysdeps_suid_lib@ $(suid_sysdeps) $(suid_common) $(LIBGTOP_LIBS) @LIBSUPPORT@ @INTLLIBS@ @libs_xauth@
+libgtop_daemon2_LDADD = $(top_builddir)/lib/libgtop-2.0.la $(top_builddir)/sysdeps/common/libgtop_common-2.0.la $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la @sysdeps_suid_lib@ $(suid_sysdeps) $(suid_common) $(LIBGTOP_LIBS) @LIBSUPPORT@ @INTLLIBS@ @libs_xauth@ -L$(top_builddir)/lib/.libs -L$(top_builddir)/sysdeps/@sysdeps_dir@/.libs -L$(top_builddir)/sysdeps/common/.libs
@ENABLE_STATIC_TRUE@libgtop_daemon2_LDFLAGS = -static

14
devel/libgtop2/pkg/DESCR Normal file
View File

@ -0,0 +1,14 @@
LibGTop is a library for obtaining information about processes and the system.
This includes information about the following areas:
* General System Information
* SYS V IPC Limits:
* Network:
* Process List:
* Process information:
* Process maps:
* File system usage:
For more information about the gtop library see:
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2003/01/31 18:35:57 todd Exp $
lib/libgnomesupport-2.0.so.0.0
lib/libgtop-2.0.so.0.0
lib/libgtop_common-2.0.so.0.0
lib/libgtop_names-2.0.so.0.0
lib/libgtop_suid_common-2.0.so.0.0
lib/libgtop_sysdeps-2.0.so.0.0
lib/libgtop_sysdeps_suid-2.0.so.0.0
DYNLIBDIR(%D/lib)

163
devel/libgtop2/pkg/PLIST Normal file
View File

@ -0,0 +1,163 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/01/31 18:35:57 todd Exp $
@unexec install-info --delete --info-dir=%D/info %D/info/libgtop2.info
bin/libgtop_daemon2
bin/libgtop_server2
include/libgtop-2.0/glibtop.h
include/libgtop-2.0/glibtop/close.h
include/libgtop-2.0/glibtop/command.h
include/libgtop-2.0/glibtop/cpu.h
include/libgtop-2.0/glibtop/error.h
include/libgtop-2.0/glibtop/fsusage.h
include/libgtop-2.0/glibtop/global.h
include/libgtop-2.0/glibtop/gnuserv.h
include/libgtop-2.0/glibtop/inodedb.h
include/libgtop-2.0/glibtop/loadavg.h
include/libgtop-2.0/glibtop/mem.h
include/libgtop-2.0/glibtop/mountlist.h
include/libgtop-2.0/glibtop/msg_limits.h
include/libgtop-2.0/glibtop/netload.h
include/libgtop-2.0/glibtop/open.h
include/libgtop-2.0/glibtop/parameter.h
include/libgtop-2.0/glibtop/ppp.h
include/libgtop-2.0/glibtop/procargs.h
include/libgtop-2.0/glibtop/prockernel.h
include/libgtop-2.0/glibtop/proclist.h
include/libgtop-2.0/glibtop/procmap.h
include/libgtop-2.0/glibtop/procmem.h
include/libgtop-2.0/glibtop/procsegment.h
include/libgtop-2.0/glibtop/procsignal.h
include/libgtop-2.0/glibtop/procstate.h
include/libgtop-2.0/glibtop/proctime.h
include/libgtop-2.0/glibtop/procuid.h
include/libgtop-2.0/glibtop/read.h
include/libgtop-2.0/glibtop/read_data.h
include/libgtop-2.0/glibtop/sem_limits.h
include/libgtop-2.0/glibtop/shm_limits.h
include/libgtop-2.0/glibtop/signal.h
include/libgtop-2.0/glibtop/swap.h
include/libgtop-2.0/glibtop/sysdeps.h
include/libgtop-2.0/glibtop/sysinfo.h
include/libgtop-2.0/glibtop/types.h
include/libgtop-2.0/glibtop/union.h
include/libgtop-2.0/glibtop/uptime.h
include/libgtop-2.0/glibtop/version.h
include/libgtop-2.0/glibtop/write.h
include/libgtop-2.0/glibtop/xmalloc.h
include/libgtop-2.0/glibtop_machine.h
include/libgtop-2.0/glibtop_server.h
include/libgtop-2.0/glibtop_suid.h
info/libgtop2.info
lib/libgnomesupport-2.0.a
lib/libgnomesupport-2.0.la
lib/libgtop-2.0.a
lib/libgtop-2.0.la
@comment lib/libgtop/include/gnomesupport.h
lib/libgtop_common-2.0.a
lib/libgtop_common-2.0.la
lib/libgtop_names-2.0.a
lib/libgtop_names-2.0.la
lib/libgtop_suid_common-2.0.a
lib/libgtop_suid_common-2.0.la
lib/libgtop_sysdeps-2.0.a
lib/libgtop_sysdeps-2.0.la
lib/libgtop_sysdeps_suid-2.0.a
lib/libgtop_sysdeps_suid-2.0.la
lib/pkgconfig/libgtop-2.0.pc
share/locale/az/LC_MESSAGES/libgtop-2.0.mo
share/locale/ca/LC_MESSAGES/libgtop-2.0.mo
share/locale/da/LC_MESSAGES/libgtop-2.0.mo
share/locale/de/LC_MESSAGES/libgtop-2.0.mo
share/locale/el/LC_MESSAGES/libgtop-2.0.mo
share/locale/es/LC_MESSAGES/libgtop-2.0.mo
share/locale/es_ES/LC_MESSAGES/libgtop-2.0.mo
share/locale/fi/LC_MESSAGES/libgtop-2.0.mo
share/locale/fr/LC_MESSAGES/libgtop-2.0.mo
share/locale/ga/LC_MESSAGES/libgtop-2.0.mo
share/locale/gl/LC_MESSAGES/libgtop-2.0.mo
share/locale/hu/LC_MESSAGES/libgtop-2.0.mo
share/locale/ja/LC_MESSAGES/libgtop-2.0.mo
share/locale/ko/LC_MESSAGES/libgtop-2.0.mo
share/locale/ms/LC_MESSAGES/libgtop-2.0.mo
share/locale/nl/LC_MESSAGES/libgtop-2.0.mo
share/locale/nn/LC_MESSAGES/libgtop-2.0.mo
share/locale/no/LC_MESSAGES/libgtop-2.0.mo
share/locale/pl/LC_MESSAGES/libgtop-2.0.mo
share/locale/pt/LC_MESSAGES/libgtop-2.0.mo
share/locale/pt_BR/LC_MESSAGES/libgtop-2.0.mo
share/locale/ru/LC_MESSAGES/libgtop-2.0.mo
share/locale/sk/LC_MESSAGES/libgtop-2.0.mo
share/locale/sl/LC_MESSAGES/libgtop-2.0.mo
share/locale/sv/LC_MESSAGES/libgtop-2.0.mo
share/locale/tr/LC_MESSAGES/libgtop-2.0.mo
share/locale/uk/LC_MESSAGES/libgtop-2.0.mo
share/locale/vi/LC_MESSAGES/libgtop-2.0.mo
share/locale/zh_CN/LC_MESSAGES/libgtop-2.0.mo
share/locale/zh_TW/LC_MESSAGES/libgtop-2.0.mo
%%SHARED%%
@comment @dirrm share/locale/zh_TW/LC_MESSAGES
@comment @dirrm share/locale/zh_TW
@comment @dirrm share/locale/zh_CN/LC_MESSAGES
@comment @dirrm share/locale/zh_CN
@comment @dirrm share/locale/vi/LC_MESSAGES
@comment @dirrm share/locale/vi
@comment @dirrm share/locale/uk/LC_MESSAGES
@comment @dirrm share/locale/uk
@comment @dirrm share/locale/tr/LC_MESSAGES
@comment @dirrm share/locale/tr
@comment @dirrm share/locale/sv/LC_MESSAGES
@comment @dirrm share/locale/sv
@comment @dirrm share/locale/sl/LC_MESSAGES
@comment @dirrm share/locale/sl
@comment @dirrm share/locale/sk/LC_MESSAGES
@comment @dirrm share/locale/sk
@comment @dirrm share/locale/ru/LC_MESSAGES
@comment @dirrm share/locale/ru
@comment @dirrm share/locale/pt_BR/LC_MESSAGES
@comment @dirrm share/locale/pt_BR
@comment @dirrm share/locale/pt/LC_MESSAGES
@comment @dirrm share/locale/pt
@comment @dirrm share/locale/pl/LC_MESSAGES
@comment @dirrm share/locale/pl
@comment @dirrm share/locale/no/LC_MESSAGES
@comment @dirrm share/locale/no
@comment @dirrm share/locale/nn/LC_MESSAGES
@comment @dirrm share/locale/nn
@comment @dirrm share/locale/nl/LC_MESSAGES
@comment @dirrm share/locale/nl
@comment @dirrm share/locale/ms/LC_MESSAGES
@comment @dirrm share/locale/ms
@comment @dirrm share/locale/ko/LC_MESSAGES
@comment @dirrm share/locale/ko
@comment @dirrm share/locale/ja/LC_MESSAGES
@comment @dirrm share/locale/ja
@comment @dirrm share/locale/hu/LC_MESSAGES
@comment @dirrm share/locale/hu
@comment @dirrm share/locale/gl/LC_MESSAGES
@comment @dirrm share/locale/gl
@comment @dirrm share/locale/ga/LC_MESSAGES
@comment @dirrm share/locale/ga
@comment @dirrm share/locale/fr/LC_MESSAGES
@comment @dirrm share/locale/fr
@comment @dirrm share/locale/fi/LC_MESSAGES
@comment @dirrm share/locale/fi
@comment @dirrm share/locale/es_ES/LC_MESSAGES
@comment @dirrm share/locale/es_ES
@comment @dirrm share/locale/es/LC_MESSAGES
@comment @dirrm share/locale/es
@comment @dirrm share/locale/el/LC_MESSAGES
@comment @dirrm share/locale/el
@comment @dirrm share/locale/de/LC_MESSAGES
@comment @dirrm share/locale/de
@comment @dirrm share/locale/da/LC_MESSAGES
@comment @dirrm share/locale/da
@comment @dirrm share/locale/ca/LC_MESSAGES
@comment @dirrm share/locale/ca
@comment @dirrm share/locale/az/LC_MESSAGES
@comment @dirrm share/locale/az
@comment @dirrm share/locale
@comment @dirrm lib/pkgconfig
@comment @dirrm lib/libgtop/include
@comment @dirrm lib/libgtop
@dirrm include/libgtop-2.0/glibtop
@dirrm include/libgtop-2.0
@exec install-info --info-dir=%D/info %D/info/libgtop2.info