diff options
-rw-r--r-- | devel/libgtop/Makefile | 52 | ||||
-rw-r--r-- | devel/libgtop/distinfo | 2 | ||||
-rw-r--r-- | devel/libgtop/files/patch-config.h.in | 12 | ||||
-rw-r--r-- | devel/libgtop/files/patch-configure | 81 | ||||
-rw-r--r-- | devel/libgtop/files/patch-libgtop-sysdeps.m4 | 12 | ||||
-rw-r--r-- | devel/libgtop/files/patch-src_daemon_server.c | 17 | ||||
-rw-r--r-- | devel/libgtop/files/pkg-message | 13 | ||||
-rw-r--r-- | devel/libgtop/pkg-descr | 3 | ||||
-rw-r--r-- | devel/libgtop/pkg-plist | 225 |
9 files changed, 417 insertions, 0 deletions
diff --git a/devel/libgtop/Makefile b/devel/libgtop/Makefile new file mode 100644 index 000000000..beb7faf2b --- /dev/null +++ b/devel/libgtop/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: libgtop2 +# Date Created: 29 April 2002 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/devel/libgtop/Makefile,v 1.56 2010/05/02 00:04:47 marcus Exp $ +# + +PORTNAME= libgtop +PORTVERSION= 2.28.4 +CATEGORIES= devel gnome +MASTER_SITES= GNOME +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= GNOME 2 top library + +BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection + +USE_XZ= yes +USE_PERL5_BUILD=yes +USE_XORG= xau +USE_GETTEXT= yes +USE_GMAKE= yes +USE_GNOME= gnomehack glib20 ltverhack intlhack +USE_LDCONFIG= yes +USE_AUTOTOOLS= libtool +CONFIGURE_ARGS= --disable-gtk-doc \ + --with-html-dir=${PREFIX}/share/doc +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DHAVE_NET_IF_VAR_H" \ + LDFLAGS="-L${LOCALBASE}/lib" + +INFO= libgtop2 + +PKGMESSAGE= ${FILESDIR}/pkg-message + +.include <bsd.port.pre.mk> + +.if ( ${OSVERSION} >= 800000 && ${OSVERSION} < 800019 ) || \ + ${OSVERSION} < 700104 +RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof +.endif + +post-configure: + @${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f + +post-install: + @${CHGRP} kmem ${PREFIX}/bin/libgtop_server2 + @${CHMOD} 2555 ${PREFIX}/bin/libgtop_server2 + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/devel/libgtop/distinfo b/devel/libgtop/distinfo new file mode 100644 index 000000000..96dc6955e --- /dev/null +++ b/devel/libgtop/distinfo @@ -0,0 +1,2 @@ +SHA256 (gnome2/libgtop-2.28.4.tar.xz) = b6619cfd1540267ee81d456d1a26c72c793261586f1b00a7b9a7a229d0abe1d8 +SIZE (gnome2/libgtop-2.28.4.tar.xz) = 653940 diff --git a/devel/libgtop/files/patch-config.h.in b/devel/libgtop/files/patch-config.h.in new file mode 100644 index 000000000..8fc4a10b1 --- /dev/null +++ b/devel/libgtop/files/patch-config.h.in @@ -0,0 +1,12 @@ +--- config.h.in.orig 2008-12-06 16:05:23.000000000 -0500 ++++ config.h.in 2008-12-06 16:05:27.000000000 -0500 +@@ -115,6 +115,9 @@ + /* defined if you have linux/isdn.h */ + #undef HAVE_ISDN_H + ++/* Define if you have the kinfo_getfile function */ ++#undef HAVE_KINFO_GETFILE ++ + /* Define to 1 if you have the `lchown' function. */ + #undef HAVE_LCHOWN + diff --git a/devel/libgtop/files/patch-configure b/devel/libgtop/files/patch-configure new file mode 100644 index 000000000..5c7cb8a2a --- /dev/null +++ b/devel/libgtop/files/patch-configure @@ -0,0 +1,81 @@ +--- configure.orig 2011-03-30 10:06:27.000000000 +0200 ++++ configure 2011-03-30 10:07:52.000000000 +0200 +@@ -13230,6 +13230,78 @@ + if test -n "${osreldate}" && test ${osreldate} -ge 600000 ; then + EXTRA_SYSDEPS_LIBS="-lgeom -ldevstat" + fi ++ { echo "$as_me:$LINENO: checking for kinfo_getfile in -lutil" >&5 ++echo $ECHO_N "checking for kinfo_getfile in -lutil... $ECHO_C" >&6; } ++if test "${ac_cv_lib_util_kinfo_getfile+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lutil $LIBS" ++cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char kinfo_getfile (); ++int ++main () ++{ ++return kinfo_getfile (); ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext conftest$ac_exeext ++if { (ac_try="$ac_link" ++case "(($ac_try" in ++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; ++ *) ac_try_echo=$ac_try;; ++esac ++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 ++ (eval "$ac_link") 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); } && { ++ test -z "$ac_c_werror_flag" || ++ test ! -s conftest.err ++ } && test -s conftest$ac_exeext && ++ $as_test_x conftest$ac_exeext; then ++ ac_cv_lib_util_kinfo_getfile=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ ac_cv_lib_util_kinfo_getfile=no ++fi ++ ++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_kinfo_getfile" >&5 ++echo "${ECHO_T}$ac_cv_lib_util_kinfo_getfile" >&6; } ++if test $ac_cv_lib_util_kinfo_getfile = yes; then ++ EXTRA_SYSDEPS_LIBS="${EXTRA_SYSDEPS_LIBS} -lutil" ++ ++cat >>confdefs.h <<\_ACEOF ++#define HAVE_KINFO_GETFILE 1 ++_ACEOF ++ ++else ++ : ++fi ++ + ;; + esac + diff --git a/devel/libgtop/files/patch-libgtop-sysdeps.m4 b/devel/libgtop/files/patch-libgtop-sysdeps.m4 new file mode 100644 index 000000000..1805da02a --- /dev/null +++ b/devel/libgtop/files/patch-libgtop-sysdeps.m4 @@ -0,0 +1,12 @@ +--- libgtop-sysdeps.m4.orig 2008-04-21 14:58:38.000000000 -0400 ++++ libgtop-sysdeps.m4 2008-12-06 16:16:00.000000000 -0500 +@@ -158,6 +160,9 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[ + if test -n "${osreldate}" && test ${osreldate} -ge 600000 ; then + EXTRA_SYSDEPS_LIBS="-lgeom -ldevstat" + fi ++ AC_CHECK_LIB(util, kinfo_getfile, ++ [EXTRA_SYSDEPS_LIBS="${EXTRA_SYSDEPS_LIBS} -lutil" ++ AC_DEFINE(HAVE_KINFO_GETFILE, 1, [Define if you have the kinfo_getfile function])], [:]) + ;; + esac + diff --git a/devel/libgtop/files/patch-src_daemon_server.c b/devel/libgtop/files/patch-src_daemon_server.c new file mode 100644 index 000000000..bf0bba5c7 --- /dev/null +++ b/devel/libgtop/files/patch-src_daemon_server.c @@ -0,0 +1,17 @@ +--- src/daemon/server.c.orig Mon Feb 17 15:22:19 2003 ++++ src/daemon/server.c Mon Feb 17 15:23:31 2003 +@@ -88,11 +88,12 @@ + if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) || + strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) || + strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) { +- fprintf (stderr, "Can only run on %s %s %s\n", ++ fprintf (stderr, "This libgtop was compiled on %s %s %s\n", + LIBGTOP_COMPILE_SYSTEM, + LIBGTOP_COMPILE_RELEASE, + LIBGTOP_COMPILE_MACHINE); +- _exit (1); ++ fprintf (stderr, "If you see strange problems caused by it,\n"); ++ fprintf (stderr, "you should recompile libgtop and dependent applications\n"); + } + #endif + diff --git a/devel/libgtop/files/pkg-message b/devel/libgtop/files/pkg-message new file mode 100644 index 000000000..dacaf62a9 --- /dev/null +++ b/devel/libgtop/files/pkg-message @@ -0,0 +1,13 @@ +=============================================================================== + +In order to use the File System read/write monitor, you must chmod +/dev/devstat so that all users can open it read-only. For example: + +# chmod 0444 /dev/devstat + +In order for this to persist across reboots, add the following to +/etc/devfs.conf: + +perm devstat 0444 + +=============================================================================== diff --git a/devel/libgtop/pkg-descr b/devel/libgtop/pkg-descr new file mode 100644 index 000000000..f263f1127 --- /dev/null +++ b/devel/libgtop/pkg-descr @@ -0,0 +1,3 @@ +This library provides the backend for gtop2, a GNOME 2.0 version +of top(1) that allows display and manipulation of running +processes. diff --git a/devel/libgtop/pkg-plist b/devel/libgtop/pkg-plist new file mode 100644 index 000000000..f472dfeb5 --- /dev/null +++ b/devel/libgtop/pkg-plist @@ -0,0 +1,225 @@ +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/fsusage.h +include/libgtop-2.0/glibtop/global.h +include/libgtop-2.0/glibtop/gnuserv.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/netlist.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/procaffinity.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/procopenfiles.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/procwd.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/union.h +include/libgtop-2.0/glibtop/uptime.h +include/libgtop-2.0/glibtop/version.h +include/libgtop-2.0/glibtop_machine.h +include/libgtop-2.0/glibtop_private.h +include/libgtop-2.0/glibtop_server.h +include/libgtop-2.0/glibtop_suid.h +include/libgtop-2.0/libgtopconfig.h +lib/girepository-1.0/GTop-2.0.typelib +lib/libgtop-2.0.a +lib/libgtop-2.0.la +lib/libgtop-2.0.so +lib/libgtop-2.0.so.7 +libdata/pkgconfig/libgtop-2.0.pc +%%DOCSDIR%%/home.png +%%DOCSDIR%%/index.html +%%DOCSDIR%%/index.sgml +%%DOCSDIR%%/left.png +%%DOCSDIR%%/libgtop-Close.html +%%DOCSDIR%%/libgtop-Command.html +%%DOCSDIR%%/libgtop-GlibTop-Server.html +%%DOCSDIR%%/libgtop-GlibTop.html +%%DOCSDIR%%/libgtop-Net-List.html +%%DOCSDIR%%/libgtop-Net-Load.html +%%DOCSDIR%%/libgtop-PPP.html +%%DOCSDIR%%/libgtop-Shared-Memory-Limits.html +%%DOCSDIR%%/libgtop-Uptime.html +%%DOCSDIR%%/libgtop-cpu.html +%%DOCSDIR%%/libgtop-fsusage.html +%%DOCSDIR%%/libgtop-lib.html +%%DOCSDIR%%/libgtop-loadavg.html +%%DOCSDIR%%/libgtop-mem.html +%%DOCSDIR%%/libgtop-mountlist.html +%%DOCSDIR%%/libgtop-msg-limits.html +%%DOCSDIR%%/libgtop-open.html +%%DOCSDIR%%/libgtop-parameter.html +%%DOCSDIR%%/libgtop-procargs.html +%%DOCSDIR%%/libgtop-prockernel.html +%%DOCSDIR%%/libgtop-proclist.html +%%DOCSDIR%%/libgtop-procmap.html +%%DOCSDIR%%/libgtop-procmem.html +%%DOCSDIR%%/libgtop-procopenfiles.html +%%DOCSDIR%%/libgtop-procsegment.html +%%DOCSDIR%%/libgtop-procsignal.html +%%DOCSDIR%%/libgtop-procstate.html +%%DOCSDIR%%/libgtop-proctime.html +%%DOCSDIR%%/libgtop-procuid.html +%%DOCSDIR%%/libgtop-sem-limits.html +%%DOCSDIR%%/libgtop-signal.html +%%DOCSDIR%%/libgtop-swap.html +%%DOCSDIR%%/libgtop-sysdeps.html +%%DOCSDIR%%/libgtop-sysinfo.html +%%DOCSDIR%%/libgtop-union.html +%%DOCSDIR%%/libgtop-version.html +%%DOCSDIR%%/libgtop-white-paper-overview.html +%%DOCSDIR%%/libgtop-white-paper.html +%%DOCSDIR%%/libgtop.devhelp2 +%%DOCSDIR%%/right.png +%%DOCSDIR%%/style.css +%%DOCSDIR%%/up.png +share/gir-1.0/GTop-2.0.gir +share/locale/am/LC_MESSAGES/libgtop-2.0.mo +share/locale/ar/LC_MESSAGES/libgtop-2.0.mo +share/locale/as/LC_MESSAGES/libgtop-2.0.mo +share/locale/ast/LC_MESSAGES/libgtop-2.0.mo +share/locale/az/LC_MESSAGES/libgtop-2.0.mo +share/locale/be/LC_MESSAGES/libgtop-2.0.mo +share/locale/bg/LC_MESSAGES/libgtop-2.0.mo +share/locale/bn/LC_MESSAGES/libgtop-2.0.mo +share/locale/bn_IN/LC_MESSAGES/libgtop-2.0.mo +share/locale/bs/LC_MESSAGES/libgtop-2.0.mo +share/locale/ca/LC_MESSAGES/libgtop-2.0.mo +share/locale/ca@valencia/LC_MESSAGES/libgtop-2.0.mo +share/locale/cs/LC_MESSAGES/libgtop-2.0.mo +share/locale/cy/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/dz/LC_MESSAGES/libgtop-2.0.mo +share/locale/el/LC_MESSAGES/libgtop-2.0.mo +share/locale/en@shaw/LC_MESSAGES/libgtop-2.0.mo +share/locale/en_CA/LC_MESSAGES/libgtop-2.0.mo +share/locale/en_GB/LC_MESSAGES/libgtop-2.0.mo +share/locale/eo/LC_MESSAGES/libgtop-2.0.mo +share/locale/es/LC_MESSAGES/libgtop-2.0.mo +share/locale/et/LC_MESSAGES/libgtop-2.0.mo +share/locale/eu/LC_MESSAGES/libgtop-2.0.mo +share/locale/fa/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/gu/LC_MESSAGES/libgtop-2.0.mo +share/locale/he/LC_MESSAGES/libgtop-2.0.mo +share/locale/hi/LC_MESSAGES/libgtop-2.0.mo +share/locale/hr/LC_MESSAGES/libgtop-2.0.mo +share/locale/hu/LC_MESSAGES/libgtop-2.0.mo +share/locale/id/LC_MESSAGES/libgtop-2.0.mo +share/locale/it/LC_MESSAGES/libgtop-2.0.mo +share/locale/ja/LC_MESSAGES/libgtop-2.0.mo +share/locale/ka/LC_MESSAGES/libgtop-2.0.mo +share/locale/kn/LC_MESSAGES/libgtop-2.0.mo +share/locale/ko/LC_MESSAGES/libgtop-2.0.mo +share/locale/ku/LC_MESSAGES/libgtop-2.0.mo +share/locale/ky/LC_MESSAGES/libgtop-2.0.mo +share/locale/la/LC_MESSAGES/libgtop-2.0.mo +share/locale/lt/LC_MESSAGES/libgtop-2.0.mo +share/locale/lv/LC_MESSAGES/libgtop-2.0.mo +share/locale/mai/LC_MESSAGES/libgtop-2.0.mo +share/locale/mg/LC_MESSAGES/libgtop-2.0.mo +share/locale/mi/LC_MESSAGES/libgtop-2.0.mo +share/locale/mk/LC_MESSAGES/libgtop-2.0.mo +share/locale/ml/LC_MESSAGES/libgtop-2.0.mo +share/locale/mn/LC_MESSAGES/libgtop-2.0.mo +share/locale/mr/LC_MESSAGES/libgtop-2.0.mo +share/locale/ms/LC_MESSAGES/libgtop-2.0.mo +share/locale/nb/LC_MESSAGES/libgtop-2.0.mo +share/locale/ne/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/oc/LC_MESSAGES/libgtop-2.0.mo +share/locale/or/LC_MESSAGES/libgtop-2.0.mo +share/locale/pa/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/ro/LC_MESSAGES/libgtop-2.0.mo +share/locale/ru/LC_MESSAGES/libgtop-2.0.mo +share/locale/rw/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/sq/LC_MESSAGES/libgtop-2.0.mo +share/locale/sr/LC_MESSAGES/libgtop-2.0.mo +share/locale/sr@latin/LC_MESSAGES/libgtop-2.0.mo +share/locale/sv/LC_MESSAGES/libgtop-2.0.mo +share/locale/ta/LC_MESSAGES/libgtop-2.0.mo +share/locale/te/LC_MESSAGES/libgtop-2.0.mo +share/locale/th/LC_MESSAGES/libgtop-2.0.mo +share/locale/tr/LC_MESSAGES/libgtop-2.0.mo +share/locale/ug/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/xh/LC_MESSAGES/libgtop-2.0.mo +share/locale/zh_CN/LC_MESSAGES/libgtop-2.0.mo +share/locale/zh_HK/LC_MESSAGES/libgtop-2.0.mo +share/locale/zh_TW/LC_MESSAGES/libgtop-2.0.mo +@dirrm %%DOCSDIR%% +@dirrm include/libgtop-2.0/glibtop +@dirrm include/libgtop-2.0 +@dirrmtry share/locale/zh_HK/LC_MESSAGES +@dirrmtry share/locale/zh_HK +@dirrmtry share/locale/xh/LC_MESSAGES +@dirrmtry share/locale/xh +@dirrmtry share/locale/ug/LC_MESSAGES +@dirrmtry share/locale/ug +@dirrmtry share/locale/te/LC_MESSAGES +@dirrmtry share/locale/te +@dirrmtry share/locale/sr@latin/LC_MESSAGES +@dirrmtry share/locale/sr@latin +@dirrmtry share/locale/rw/LC_MESSAGES +@dirrmtry share/locale/rw +@dirrmtry share/locale/oc/LC_MESSAGES +@dirrmtry share/locale/oc +@dirrmtry share/locale/mr/LC_MESSAGES +@dirrmtry share/locale/mr +@dirrmtry share/locale/mi/LC_MESSAGES +@dirrmtry share/locale/mi +@dirrmtry share/locale/mg/LC_MESSAGES +@dirrmtry share/locale/mg +@dirrmtry share/locale/mai/LC_MESSAGES +@dirrmtry share/locale/mai +@dirrmtry share/locale/la/LC_MESSAGES +@dirrmtry share/locale/la +@dirrmtry share/locale/ky/LC_MESSAGES +@dirrmtry share/locale/ky +@dirrmtry share/locale/ku/LC_MESSAGES +@dirrmtry share/locale/ku +@dirrmtry share/locale/en@shaw/LC_MESSAGES +@dirrmtry share/locale/en@shaw +@dirrmtry share/locale/dz/LC_MESSAGES +@dirrmtry share/locale/dz +@dirrmtry share/locale/ca@valencia/LC_MESSAGES +@dirrmtry share/locale/ca@valencia +@dirrmtry share/locale/bn_IN/LC_MESSAGES +@dirrmtry share/locale/bn_IN +@dirrmtry share/locale/ast/LC_MESSAGES +@dirrmtry share/locale/ast +@dirrmtry share/locale/as/LC_MESSAGES +@dirrmtry share/locale/as |