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
+4
View File
@@ -0,0 +1,4 @@
XDU is a program for displaying a graphical tree of disk space
utilization as reported by the UNIX utility "du". You can
navigate up and down in the tree, sort things, and print out
information. See the manual page for details.
+25
View File
@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.19 2012/10/23 19:51:35 asau Exp $
#
DISTNAME= xdu-3.0
PKGREVISION= 8
CATEGORIES= sysutils x11
MASTER_SITES= http://sd.wareonearth.com/~phil/xdu/
PATCH_SITES= http://www.nn.iij4u.or.jp/~tutimura/xdu/
EXTRACT_SUFX= .tar.Z
PATCHFILES+= xdu-3.0.dirname.patch \
xdu-3.0.i18n.patch
MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://sd.wareonearth.com/~phil/xdu/
COMMENT= Display the output of "du" in an X window
WRKSRC= ${WRKDIR}
USE_IMAKE= yes
PATCH_DIST_STRIP.xdu-3.0.dirname.patch = -p1
PATCH_DIST_STRIP.xdu-3.0.i18n.patch = -p1
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+4
View File
@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2003/03/03 02:59:29 jschauma Exp $
bin/xdu
lib/X11/app-defaults/XDu
${IMAKE_MAN_DIR}/xdu.${IMAKE_MANNEWSUFFIX}
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: distinfo,v 1.8 2013/01/11 23:32:38 joerg Exp $
SHA1 (xdu-3.0.tar.Z) = 196e2ba03253fd6b8a88fafe6b00e40632183d0c
RMD160 (xdu-3.0.tar.Z) = 0c95ad79aaeb6e58433add71d852cc0b2312a5f9
Size (xdu-3.0.tar.Z) = 20114 bytes
SHA1 (xdu-3.0.dirname.patch) = 0db06f80cc1463f9d4d247d58632d39738c3d52f
RMD160 (xdu-3.0.dirname.patch) = fb233756b80a3c482503be702b80b7841a7d0d7b
Size (xdu-3.0.dirname.patch) = 1672 bytes
SHA1 (xdu-3.0.i18n.patch) = 6f14b5458111b7c9776d15760d1876d242f0dabd
RMD160 (xdu-3.0.i18n.patch) = a1ada2ae69331010dd7f3c0e77cb4410065a7254
Size (xdu-3.0.i18n.patch) = 2760 bytes
SHA1 (patch-aa) = 9e42f0303cb8318ff94e393c88f11babe32625f6
SHA1 (patch-xwin.c) = fba89059b7b7d14bf43d971010ecfced88fc7ad2
+61
View File
@@ -0,0 +1,61 @@
$NetBSD: patch-aa,v 1.6 2013/01/11 23:32:39 joerg Exp $
--- xdu.c.orig 2013-01-11 14:30:40.000000000 +0000
+++ xdu.c
@@ -19,18 +19,19 @@
* limitation a license to do the foregoing actions under any patents of
* the party supplying this software to the X Consortium.
*/
+#include <assert.h>
#include <stdio.h>
+#include <string.h>
#include "version.h"
-extern char *malloc(), *calloc();
-
-#define MAXDEPTH 80 /* max elements in a path */
-#define MAXNAME 1024 /* max pathname element length */
+#define MAXDEPTH 1024 /* max elements in a path */
+#define MAXNAME 4096 /* max pathname element length */
#define MAXPATH 4096 /* max total pathname length */
#define NCOLS 5 /* default number of columns in display */
/* What we IMPORT from xwin.c */
-extern int xsetup(), xmainloop(), xdrawrect(), xrepaint();
+extern int xsetup(), xmainloop(), xrepaint();
+void xdrawrect(char *name, int size, int x, int y, int width, int height);
/* What we EXPORT to xwin.c */
extern int press(), reset(), repaint(), setorder(), reorder();
@@ -96,6 +97,10 @@ int size;
struct node *np;
np = (struct node *)calloc(1,sizeof(struct node));
+ if (np == NULL) {
+ fprintf(stderr, "Out of memory! (#1)\n");
+ exit(1);
+ }
np->name = strdup(name);
np->size = size;
np->num = nnodes;
@@ -610,20 +615,6 @@ pwd()
100.0*topp->size/rootp->size);
}
-char *
-strdup(s)
-char *s;
-{
- int n;
- char *cp;
-
- n = strlen(s);
- cp = malloc(n+1);
- strcpy(cp,s);
-
- return cp;
-}
-
/**************** External Entry Points ****************/
int
+24
View File
@@ -0,0 +1,24 @@
$NetBSD: patch-xwin.c,v 1.1 2013/01/11 23:32:39 joerg Exp $
--- xwin.c.orig 2013-01-11 14:30:59.000000000 +0000
+++ xwin.c
@@ -50,7 +50,6 @@ extern int xmainloop();
extern int xclear();
extern int xrepaint();
extern int xrepaint_noclear();
-extern int xdrawrect();
/* internal routines */
static void help_popup();
@@ -377,10 +376,7 @@ xrepaint_noclear()
repaint(xwa.width, xwa.height);
}
-xdrawrect(name, size, x, y, width, height)
-char *name;
-int size;
-int x, y, width, height;
+void xdrawrect(char *name, int size, int x, int y, int width, int height)
{
int textx, texty;
char label[1024];