debian/0000755000000000000000000000000011742111341007161 5ustar debian/source/0000755000000000000000000000000011742111317010464 5ustar debian/source/format0000644000000000000000000000001411742111317011672 0ustar 3.0 (quilt) debian/source/git-patches0000644000000000000000000000006111742111317012614 0ustar upstream/$UPSTREAM_VERSION..patches/$DEB_VERSION debian/dirs0000644000000000000000000000006211742111317010046 0ustar usr/bin etc/X11/app-defaults usr/share/man/man1/ debian/compat0000644000000000000000000000000211742111317010362 0ustar 9 debian/changelog0000644000000000000000000001025211742111317011036 0ustar xdu (3.0-18) unstable; urgency=low [ Jari Aalto ] * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt". - Patch 00 is new. Contains in-line changes to original files. - Patch 03 was updated with "quilt refresh" to make it apply cleanly. * Update to Standards-Version to 3.9.3.1 and debhelper to 9. * Add build-arch and build-indep targets; use dh_prep in rules file. [ Rémi Vanicat ] * Integrate change by Jari Aalto using gitpkg (Closes: #668360). * Add Vcs-git for public git repository * Use section 1 for the man page -- Rémi Vanicat Fri, 13 Apr 2012 22:55:29 +0200 xdu (3.0-17) unstable; urgency=low * Bug fix: "xdu: ships files in /usr/man", thanks to Colin Watson (Closes: #391693). * Add --as-needed linker option to remove unneeded dependency * Bumped standards version to 3.7.2.2. * Corrected dependency to debhelper * We are now linda and lintian clean -- Remi Vanicat Sun, 8 Oct 2006 12:27:00 +0200 xdu (3.0-16) unstable; urgency=low * rman is not needed anymore -- Remi Vanicat Sun, 23 Apr 2006 10:43:50 +0200 xdu (3.0-15) unstable; urgency=low * rebuild because x11-common conflict with xdu * added rman as a build dependency -- Remi Vanicat Sun, 16 Apr 2006 09:57:31 +0200 xdu (3.0-14) unstable; urgency=low * Change dependency after xlibs-dev removal (closes: #346809) -- Remi Vanicat Fri, 13 Jan 2006 17:36:02 +0100 xdu (3.0-13) unstable; urgency=low * Correct some typo in the man page (thanks to A Costa ) (closes: #306704) -- Remi Vanicat Thu, 28 Apr 2005 09:54:24 +0200 xdu (3.0-12) unstable; urgency=low * really apply the malloc patch (closes: #280317) -- Remi Vanicat Mon, 13 Dec 2004 22:03:21 +0100 xdu (3.0-11) unstable; urgency=low * remove malloc #define (tahnks to Andreas Jochens ) (closes: #259927) -- Remi Vanicat Mon, 6 Sep 2004 08:48:09 +0200 xdu (3.0-10) unstable; urgency=low * Dpatchification * Overriding the text widget's translation table (closes: #206606) -- Remi Vanicat Sun, 19 Oct 2003 18:41:06 +0200 xdu (3.0-9) unstable; urgency=low * Removing trailing newline in the xdu title (thanks to Flavio Stanchina's patch, closes: #125867) -- Remi Vanicat Wed, 15 Oct 2003 12:11:42 +0200 xdu (3.0-8) unstable; urgency=low * New maintainer (remi Vanicat ) * Update to debian Policy 3.6.1 (no change needed) -- Remi Vanicat Tue, 30 Sep 2003 10:59:17 +0200 xdu (3.0-7) unstable; urgency=low * Added libxaw7-dev to build depends (closes: #108879) -- Fredrik Hallenberg Sat, 25 Aug 2001 10:47:05 +0200 xdu (3.0-6) unstable; urgency=low * Added xutils to build depends (closes: #86485) -- Fredrik Hallenberg Sun, 18 Feb 2001 15:23:04 +0100 xdu (3.0-5) unstable; urgency=low * Moved app-defaults (closes: #86308) -- Fredrik Hallenberg Sat, 17 Feb 2001 11:10:20 +0100 xdu (3.0-4) unstable; urgency=low * Updated X resources (closes: #70513) -- Fredrik Hallenberg Wed, 30 Aug 2000 20:55:00 +0200 xdu (3.0-3) unstable; urgency=low * Applied patch from steve@arise.demon.co.uk to make xdu handle directory names with spaces (closes: #52595) * Bumped standards version to 3.1.1. -- Fredrik Hallenberg Mon, 13 Dec 1999 22:08:23 +0100 xdu (3.0-2) unstable; urgency=low * Maintainer release. (#26286) * Removed Makefile from diff. -- Fredrik Hallenberg Tue, 1 Sep 1998 08:33:43 +0200 xdu (3.0-1.1) unstable; urgency=low * non-maintainer upload for Alpha * add string.h include for prototypes * don't use own strdup() if one is available (implementing the autoconf for this is left as an exercise for the reader ;-) -- Paul Slootman Mon, 31 Aug 1998 22:38:36 +0200 xdu (3.0-1) unstable; urgency=low * Initial Release. -- Fredrik Hallenberg Wed, 8 Apr 1998 13:09:01 +0200 debian/copyright0000644000000000000000000000174711742111317011130 0ustar This package was debianized by Fredrik Hallenberg on Wed, 8 Apr 1998 13:09:01 +0200. It have been adopted by Remi Vanicat on Tue, 30 Sep 2003 10:59:17 +0200. It was downloaded from ftp://ftp.arl.mil/pub/xdu-3.0.tar.Z Copyright (c) Phillip C. Dykstra 1991, 1993, 1994 The X Consortium, and any party obtaining a copy of these files from the X Consortium, directly or indirectly, is granted, free of charge, a full and unrestricted irrevocable, world-wide, paid up, royalty-free, nonexclusive right and license to deal in this software and documentation files (the "Software"), including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons who receive copies from any such party to do so. This license includes without limitation a license to do the foregoing actions under any patents of the party supplying this software to the X Consortium. debian/rules0000755000000000000000000000210411742111317010241 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PACKAGE = xdu build-arch: build build-indep: build build: build-stamp build-stamp: dh_testdir xmkmf $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp -test -f Makefile && $(MAKE) clean && rm Makefile dh_clean # Build architecture-independent files here. binary-indep: build # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build dh_testdir dh_testroot dh_prep dh_installdirs install -m755 xdu debian/xdu/usr/bin install -m644 xdu.man debian/xdu/usr/share/man/man1/xdu.1 install -m644 XDu.ad debian/xdu/etc/X11/app-defaults/XDu dh_installdocs README dh_installchangelogs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary debian/control0000644000000000000000000000122311742111317010565 0ustar Source: xdu Section: utils Priority: optional Maintainer: Rémi Vanicat Standards-Version: 3.9.3.1 Build-Depends: debhelper (>= 9), libxt-dev, xutils-dev (>= 1:1.0.2-2), libxaw7-dev Vcs-Git: git://anonscm.debian.org/collab-maint/xdu.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/xdu.git Package: xdu Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: display the output of "du" in an X window 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. debian/patches/0000755000000000000000000000000011742111341010610 5ustar debian/patches/0001-Define-EXTRA_LDOPTIONS-in-Imakefile.patch0000644000000000000000000000117711742111341020213 0ustar From 538dbad23f7c01224dbb65a8930e4bb2ddb4c6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Fri, 13 Apr 2012 20:16:37 +0200 Subject: [PATCH] Define EXTRA_LDOPTIONS in Imakefile. --- Imakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Imakefile b/Imakefile index a40e57b..00af91a 100644 --- a/Imakefile +++ b/Imakefile @@ -7,6 +7,8 @@ XCOMM LOCAL_LIBRARIES = XawClientLibs SRCS = xdu.c xwin.c OBJS = xdu.o xwin.o +EXTRA_LDOPTIONS = -Xlinker --as-needed +#warning ExtraXawClientLibs /**/ ComplexProgramTarget(xdu) InstallAppDefaults(XDu) -- 1.7.10 debian/patches/0007-Do-not-forward-declare-malloc-etc.patch0000644000000000000000000000114011742111341020426 0ustar From 10cb7bbbd0afb3401803f3b8d3ea457cc145193a Mon Sep 17 00:00:00 2001 From: Andreas Jochens Date: Fri, 13 Apr 2012 20:46:00 +0200 Subject: [PATCH] Do not forward declare malloc() etc. --- xdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdu.c b/xdu.c index 6e79010..b14d842 100644 --- a/xdu.c +++ b/xdu.c @@ -23,7 +23,7 @@ #include #include "version.h" -extern char *malloc(), *calloc(); +// extern char *malloc(), *calloc(); #define MAXDEPTH 80 /* max elements in a path */ #define MAXNAME 1024 /* max pathname element length */ -- 1.7.10 debian/patches/0003-Use-string.h-don-t-use-strdup-when-not-needed.patch0000644000000000000000000000202111742111341022601 0ustar From db2044403cb429769749640ea1ef5809cac8b1cc Mon Sep 17 00:00:00 2001 From: Paul Slootman Date: Fri, 13 Apr 2012 20:25:21 +0200 Subject: [PATCH] Use string.h, don't use strdup when not needed. One should had the autoconf stuff to see if strdup is available --- xdu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xdu.c b/xdu.c index fe05843..a79ebef 100644 --- a/xdu.c +++ b/xdu.c @@ -20,6 +20,7 @@ * the party supplying this software to the X Consortium. */ #include +#include #include "version.h" extern char *malloc(), *calloc(); @@ -38,7 +39,9 @@ extern nodeinfo(), helpinfo(); int ncols = NCOLS; /* internal routines */ +#ifdef NEED_STRDUP char *strdup(); +#endif void addtree(); void parse_file(); void parse_entry(); @@ -622,6 +625,7 @@ pwd() 100.0*topp->size/rootp->size); } +#ifdef NEED_STRDUP char * strdup(s) char *s; @@ -635,6 +639,7 @@ char *s; return cp; } +#endif /**************** External Entry Points ****************/ -- 1.7.10 debian/patches/0004-Handle-dirname-with-space.patch0000644000000000000000000000167211742111341017072 0ustar From 4ed2ec137058ad8be577c219d64c3fa96ae7c67b Mon Sep 17 00:00:00 2001 From: Steve Haslam Date: Fri, 13 Apr 2012 20:30:15 +0200 Subject: [PATCH] Handle dirname with space Closes #52595 --- xdu.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/xdu.c b/xdu.c index a79ebef..6e79010 100644 --- a/xdu.c +++ b/xdu.c @@ -235,7 +235,7 @@ parse_file(filename) char *filename; { char buf[4096]; - char name[4096]; + char *name; int size; FILE *fp; @@ -248,7 +248,16 @@ char *filename; } } while (fgets(buf,sizeof(buf),fp) != NULL) { - sscanf(buf, "%d %s\n", &size, name); + int pos; + strtok(buf, "\n\r"); + pos = strcspn(buf, " \t"); + if (buf[pos] == '\0') + continue; + buf[pos++] = '\0'; + while (buf[pos] == '\t' || buf[pos] == ' ') + pos++; + size = atoi(buf); + name = buf + pos; /*printf("%d %s\n", size, name);*/ parse_entry(name,size); } -- 1.7.10 debian/patches/0005-Remove-the-trailing-new-line-in-title.patch0000644000000000000000000000143611742111341021300 0ustar From 8e9d0715baf91f610618ce8904dcfcf2a21c00eb Mon Sep 17 00:00:00 2001 From: Flavio Stanchina Date: Fri, 13 Apr 2012 20:35:23 +0200 Subject: [PATCH] Remove the trailing new line in title. It make the title text appears incorrectly with some windows manager. Closes #125867 --- xwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwin.c b/xwin.c index dbecb5d..35a873f 100644 --- a/xwin.c +++ b/xwin.c @@ -308,7 +308,7 @@ char **argv; /* Create the top level Widget */ n = 0; - XtSetArg(args[n], XtNtitle, "XDU Disk Usage Display ('h' for help)\n"); n++; + XtSetArg(args[n], XtNtitle, "XDU Disk Usage Display ('h' for help)"); n++; toplevel = XtAppInitialize(&app_con, "XDu", options, XtNumber(options), argcp, argv, -- 1.7.10 debian/patches/0002-modifications-to-the-resource-files.patch0000644000000000000000000000172511742111341021170 0ustar From 36eca38c67ac40f555d75d722ebf87d30f868a0a Mon Sep 17 00:00:00 2001 From: Fredrik Hallenberg Date: Fri, 13 Apr 2012 20:17:17 +0200 Subject: [PATCH] modifications to the resource files --- XDu.ad | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/XDu.ad b/XDu.ad index 62f60c0..9f0fc0d 100644 --- a/XDu.ad +++ b/XDu.ad @@ -7,13 +7,13 @@ ! Order choices: first, last, alpha, ralpha, size, rsize ! Color to taste. ! -!XDu*foreground: yellow -!XDu*background: blue4 -!XDu*help*foreground: green -!XDu*help*background: red4 -XDu*window.width: 600 -XDu*window.height: 480 -XDu.font: -*-helvetica-bold-r-normal--14-* -XDu.ncol: 5 -XDu.showsize: true -XDu.order: first +!*foreground: yellow +!*background: blue4 +!*help*foreground: green +!*help*background: red4 +*window.Width: 600 +*window.Height: 480 +!*Font: -*-helvetica-bold-r-normal--14-* +!*Ncol: 5 +!*ShowSize: true +!*Order: first -- 1.7.10 debian/patches/series0000644000000000000000000000062011742111341012023 0ustar # debian/source/git-patches exported from git by quilt-patches-deb-export-hook 0001-Define-EXTRA_LDOPTIONS-in-Imakefile.patch 0002-modifications-to-the-resource-files.patch 0003-Use-string.h-don-t-use-strdup-when-not-needed.patch 0004-Handle-dirname-with-space.patch 0005-Remove-the-trailing-new-line-in-title.patch 0006-Make-q-quit-the-help-window.patch 0007-Do-not-forward-declare-malloc-etc.patch debian/patches/0006-Make-q-quit-the-help-window.patch0000644000000000000000000000132211742111341017316 0ustar From 210dd923749a342ae53f3baffafc2b95b4448b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Fri, 13 Apr 2012 20:42:08 +0200 Subject: [PATCH] Make q quit the help window. Overriding the text translation close #206606 --- xwin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwin.c b/xwin.c index 35a873f..1f03090 100644 --- a/xwin.c +++ b/xwin.c @@ -482,6 +482,7 @@ Mouse Commands\n\ trans_table = XtParseTranslationTable("Q: RemoveHelp()"); XtAugmentTranslations(form, trans_table); + XtOverrideTranslations(text, trans_table); /* Set up ICCCM delete window */ wm_delete_window = XInternAtom(XtDisplay(popup), "WM_DELETE_WINDOW", False); -- 1.7.10 debian/README.source0000644000000000000000000000041211742111317011340 0ustar If you are using the source from git you need to generate the patches using gitpgk: $ git config gitpkg.deb-export-hook /usr/share/gitpkg/hooks/quilt-patches-deb-export-hook $ gitpkg master -- Rémi Vanicat , Fri, 13 Apr 2012 22:27:52 +0200