Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
sysutils/lavaps/DESCR Normal file
View File

@@ -0,0 +1,6 @@
Lavaps is an interactive process-tracking program like ``top'', but
with a much different attitude. Rather than presenting lots of
specific info in digital form, it tries to present certain important
information in a graphical analog form. The idea is that you can run
it in the background and get a rough idea of what's happening to your
system without devoting much concentration to the task.

38
sysutils/lavaps/Makefile Normal file
View File

@@ -0,0 +1,38 @@
# $NetBSD: Makefile,v 1.41 2013/06/06 12:55:05 wiz Exp $
#
DISTNAME= lavaps-2.7
PKGREVISION= 7
CATEGORIES= sysutils x11
MASTER_SITES= http://www.isi.edu/~johnh/SOFTWARE/LAVAPS/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.isi.edu/~johnh/SOFTWARE/LAVAPS/
COMMENT= Lava lamp of currently running processes
MAKE_JOBS_SAFE= no
USE_LANGUAGES= c c++
USE_TOOLS+= perl pod2man pod2html
GNU_CONFIGURE= YES
CONFIGURE_ARGS+=--with-tcltk \
--with-tcl-ver=8.5.12 \
--with-tk-ver=8.5.12 \
--with-tcltk-lib-suffix-type=nodot
# prevents the GConf schema from going into / when building the tcl/tk version
MAKE_ENV+= PKGSRC_INSTALL_SCHEMAS=no
BUILDLINK_DEPMETHOD.libXt?= build
CFLAGS.NetBSD+= -D_KMEMUSER
.include "../../x11/tk/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libICE/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
sysutils/lavaps/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:53:24 zuntum Exp $
bin/lavaps
man/man1/lavaps.1

15
sysutils/lavaps/distinfo Normal file
View File

@@ -0,0 +1,15 @@
$NetBSD: distinfo,v 1.10 2011/11/25 22:18:54 joerg Exp $
SHA1 (lavaps-2.7.tar.gz) = 5fb788359e22f80842423f211d42d8ebe2c58236
RMD160 (lavaps-2.7.tar.gz) = 286530bca67f9d324c0edfc2def6d6b2a6f24255
Size (lavaps-2.7.tar.gz) = 399332 bytes
SHA1 (patch-aa) = 8a159ee81f0a3261214a71e38f97e1e20e703f57
SHA1 (patch-ab) = 2bfc2059afab1a8a4fa16aa91ba6d2f9425c573d
SHA1 (patch-ac) = 8d6f43933eecc72cc75ffec1489cbf316a21c5fe
SHA1 (patch-ad) = 520a4cc7bbafcca8cab50d0f92aed2a333e4da72
SHA1 (patch-ae) = 82b0d0161eeef941f868b20282b9a7743be89461
SHA1 (patch-af) = de66e431cdf61697d16df1f6e21d5f65390b845f
SHA1 (patch-ag) = dffad352c3812bd473ce37eed39413bbd77c3f8c
SHA1 (patch-ah) = a2f8439e44674438cde037c41cbcc14897f42f86
SHA1 (patch-src_const__str.hh) = 952fa949abbd5585a8511dc130a3a347f079df7b
SHA1 (patch-src_lava__signal.cc) = cf4abf7f8fe1c72d255f4398d9e9ba55ecab6f24

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-aa,v 1.6 2008/07/21 02:55:34 dholland Exp $
--- src/process_view.cc~ 2008-07-20 21:38:23.000000000 -0400
+++ src/process_view.cc 2008-07-20 21:39:06.000000000 -0400
@@ -27,6 +27,7 @@
#include <sstream>
#include <math.h>
+#include <assert.h>
#include "main.hh"
#include "process_view.hh"

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ab,v 1.5 2008/07/21 02:55:34 dholland Exp $
--- src/tcl_blob.cc~ 2003-12-01 20:11:32.000000000 -0500
+++ src/tcl_blob.cc 2008-07-20 21:39:56.000000000 -0400
@@ -24,6 +24,7 @@
#ifdef USE_TCL_BLOB
#include <stdlib.h> // atoi
+#include <assert.h>
#include <tcl.h>
#include <signal.h>

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ac,v 1.2 2008/07/21 02:55:34 dholland Exp $
--- src/tcl_blob_shape.cc~ 2003-11-30 20:05:57.000000000 -0500
+++ src/tcl_blob_shape.cc 2008-07-20 21:40:57.000000000 -0400
@@ -24,6 +24,7 @@
#ifdef USE_TCL_BLOB
#include <stdlib.h> // atoi
+#include <assert.h>
#include <tcl.h>
#include <iostream>

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ad,v 1.3 2008/07/21 02:55:34 dholland Exp $
--- configure~ 2004-12-24 21:37:07.000000000 -0500
+++ configure 2008-07-20 21:43:31.000000000 -0400
@@ -6232,7 +6232,7 @@
echo "$as_me:$LINENO: result: yes---Mach/MacOS-X" >&5
echo "${ECHO_T}yes---Mach/MacOS-X" >&6
;;
-*-*-*bsd*)
+*-*-*bsd* | *-*-dragonfly*)
PLATFORM_SPECIFIC_TCLTK_INCLUDES="-I/usr/local/include/tk$TK_DOTTED_HI_VERS -I/usr/local/include/tcl$TCL_DOTTED_HI_VERS -L/usr/local/lib"
case "${platform}" in
*-*-*darwin*)

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.2 2008/07/21 02:55:34 dholland Exp $
--- src/process_model.cc.orig 2003-07-14 23:32:09.000000000 -0400
+++ src/process_model.cc 2008-07-20 21:58:55.000000000 -0400
@@ -86,7 +86,7 @@ process_model::set_cmd(const char *cmd)
void
process_model::dump()
{
- cout << int(this) << " "<< pid_ << " " << uid_ << " " << cmd_.c_str() << " " <<
+ cout << intptr_t(this) << " "<< pid_ << " " << uid_ << " " << cmd_.c_str() << " " <<
endl;
}

View File

@@ -0,0 +1,32 @@
$NetBSD: patch-af,v 1.2 2008/07/21 02:55:34 dholland Exp $
--- src/process_scan_bsd.cc~ 2003-11-30 20:04:48.000000000 -0500
+++ src/process_scan_bsd.cc 2008-07-20 21:50:04.000000000 -0400
@@ -56,7 +56,13 @@ extern "C" {
#include <sys/param.h>
#include <sys/sysctl.h> // KERN_PROC_ALL
#include <sys/types.h>
+#ifdef __DragonFly__
+#define template
+#endif
#include <sys/user.h>
+#ifdef __DragonFly__
+#undef template
+#endif
#include <fcntl.h>
#include <kvm.h>
#include <unistd.h>
@@ -226,6 +232,13 @@ int process_scan_bsd::extract_uid() { re
int process_scan_bsd::extract_nice() { return int(cur_kp_->kp_proc.p_nice); }
int process_scan_bsd::extract_utime_msec() { return time_value_t_to_msec(kur_kp_->times.user_time) + time_value_t_to_msec(cur_kp_->tasks_info.user_time); }
int process_scan_bsd::extract_stime_msec() { return time_value_t_to_msec(kur_kp_->times.system _time) + time_value_t_to_msec(cur_kp_->tasks_info.system_time); }
+#elif defined(__DragonFly__)
+char *process_scan_bsd::extract_cmd() { return cur_kp_->kp_proc.p_comm; }
+int process_scan_bsd::extract_pid() { return int(cur_kp_->kp_proc.p_pid); }
+int process_scan_bsd::extract_uid() { return int(cur_kp_->kp_eproc.e_pcred.cr_ruid); }
+int process_scan_bsd::extract_nice() { return int(cur_kp_->kp_proc.p_nice); }
+int process_scan_bsd::extract_utime_msec() { return ticks_to_msec(cur_kp_->kp_eproc.e_uticks); }
+int process_scan_bsd::extract_stime_msec() { return ticks_to_msec(cur_kp_->kp_eproc.e_sticks); }
#else
#error unknown bsd variant
#endif

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-ag,v 1.2 2011/11/25 22:18:54 joerg Exp $
--- src/blob.cc.orig 2004-12-16 05:12:38.000000000 +0000
+++ src/blob.cc
@@ -21,6 +21,7 @@
#include "config.h"
+#include <inttypes.h>
#include <stdlib.h> // atoi
#include <iostream>
@@ -503,7 +504,7 @@ void
blob::print()
{
ENTRY_TRACE(__FILE__,__LINE__);
- cout << O_("blob: ") << (unsigned)this << O_(" x=") << x_ << O_(" step=") << x_step_ << O_(" num=") << num_ << O_(":");
+ cout << O_("blob: ") << (uintptr_t)this << O_(" x=") << x_ << O_(" step=") << x_step_ << O_(" num=") << num_ << O_(":");
for (int i = 0; i < num_; i++) {
cout << O_(" ") << y_lows_[i] << O_("-") << y_highs_[i];
};

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ah,v 1.1 2008/07/27 16:47:46 dholland Exp $
--- src/Makefile.in~ 2004-12-24 21:42:03.000000000 -0500
+++ src/Makefile.in 2008-07-27 12:36:30.000000000 -0400
@@ -471,20 +471,22 @@
install-schemaDATA: $(schema_DATA)
@$(NORMAL_INSTALL)
test -z "$(schemadir)" || $(mkdir_p) "$(DESTDIR)$(schemadir)"
- @list='$(schema_DATA)'; for p in $$list; do \
+ @if [ "$PKGSRC_INSTALL_SCHEMAS" = "yes" ]; then \
+ list='$(schema_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(schemaDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(schemadir)/$$f'"; \
$(schemaDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(schemadir)/$$f"; \
- done
+ done; fi
uninstall-schemaDATA:
@$(NORMAL_UNINSTALL)
- @list='$(schema_DATA)'; for p in $$list; do \
+ @if [ "$PKGSRC_INSTALL_SCHEMAS" = "yes" ]; then \
+ list='$(schema_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(schemadir)/$$f'"; \
rm -f "$(DESTDIR)$(schemadir)/$$f"; \
- done
+ done; fi
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-src_const__str.hh,v 1.1 2011/11/25 22:18:54 joerg Exp $
--- src/const_str.hh.orig 2011-11-25 19:27:49.000000000 +0000
+++ src/const_str.hh
@@ -24,6 +24,7 @@
#ifndef lavaps_const_str_h
#define lavaps_const_str_h
+#include <stdlib.h>
#include <string.h>
class const_str {

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-src_lava__signal.cc,v 1.1 2011/11/25 22:18:54 joerg Exp $
--- src/lava_signal.cc.orig 2011-11-25 19:29:00.000000000 +0000
+++ src/lava_signal.cc
@@ -31,6 +31,7 @@
#include <sys/resource.h>
#include <sys/types.h>
#include <signal.h>
+#include <string.h>
int
lava_signal(int pid, int sig)