summaryrefslogtreecommitdiffstats
path: root/devel/libgtop/files
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2011-08-31 04:55:55 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2011-08-31 04:55:55 +0800
commita92b60ba72245f9208968626e8d66341a2f29dda (patch)
tree8770e7c13fadbed06896cc14108ea104a7824a1c /devel/libgtop/files
parent09f0dac5635b07182a3076cb6a34d57b6805e694 (diff)
downloadmarcuscom-ports-a92b60ba72245f9208968626e8d66341a2f29dda.tar
marcuscom-ports-a92b60ba72245f9208968626e8d66341a2f29dda.tar.gz
marcuscom-ports-a92b60ba72245f9208968626e8d66341a2f29dda.tar.bz2
marcuscom-ports-a92b60ba72245f9208968626e8d66341a2f29dda.tar.lz
marcuscom-ports-a92b60ba72245f9208968626e8d66341a2f29dda.tar.xz
marcuscom-ports-a92b60ba72245f9208968626e8d66341a2f29dda.tar.zst
marcuscom-ports-a92b60ba72245f9208968626e8d66341a2f29dda.zip
Update to 2.28.4.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16136 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/libgtop/files')
-rw-r--r--devel/libgtop/files/patch-config.h.in12
-rw-r--r--devel/libgtop/files/patch-configure81
-rw-r--r--devel/libgtop/files/patch-libgtop-sysdeps.m412
-rw-r--r--devel/libgtop/files/patch-src_daemon_server.c17
-rw-r--r--devel/libgtop/files/pkg-message13
5 files changed, 135 insertions, 0 deletions
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
+
+===============================================================================