summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/durep
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/durep')
-rw-r--r--app-admin/durep/Manifest1
-rw-r--r--app-admin/durep/durep-0.9-r4.ebuild34
-rw-r--r--app-admin/durep/files/durep-0.9-dirhandle.patch31
-rw-r--r--app-admin/durep/files/durep-0.9-gigabyte.patch17
-rw-r--r--app-admin/durep/files/durep-0.9-r4-color-output.patch98
-rw-r--r--app-admin/durep/metadata.xml8
6 files changed, 189 insertions, 0 deletions
diff --git a/app-admin/durep/Manifest b/app-admin/durep/Manifest
new file mode 100644
index 000000000000..b04546389452
--- /dev/null
+++ b/app-admin/durep/Manifest
@@ -0,0 +1 @@
+DIST durep-0.9.tar.gz 13713 SHA256 71605ebc4d25f6452e2aaa0119e9a6b7e753fe46ec2999e17311389a03016825 SHA512 a8a58cf4a77fa43e06eb22ce70e566fe9c5dd6921677dbe4691a6dd95e2fad3735778a9858e3b80957ba6efd20293fcd2ba4ddc9cfe29f5813997de0f9c96b6d WHIRLPOOL a64f822cae74934e45eb9c5acf87f708feb84854f6912a6c9342ffb79cee9569d4685fbe09f78144404695995dc454e25603cd2720e1618cfdf98376e907c18f
diff --git a/app-admin/durep/durep-0.9-r4.ebuild b/app-admin/durep/durep-0.9-r4.ebuild
new file mode 100644
index 000000000000..66982b5a412a
--- /dev/null
+++ b/app-admin/durep/durep-0.9-r4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="A perl script designed for monitoring disk usage in a more visual way than du"
+HOMEPAGE="http://gentoo.org"
+SRC_URI="http://www.hibernaculum.net/download/${P}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-perl/MLDBM
+ virtual/perl-Getopt-Long
+ virtual/perl-Term-ANSIColor"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gigabyte.patch \
+ "${FILESDIR}"/${PF}-color-output.patch \
+ "${FILESDIR}"/${P}-dirhandle.patch
+}
+
+src_install() {
+ dobin durep
+ doman durep.1
+ dodoc BUGS CHANGES README THANKS
+ dohtml -A cgi *.cgi *.css *.png
+}
diff --git a/app-admin/durep/files/durep-0.9-dirhandle.patch b/app-admin/durep/files/durep-0.9-dirhandle.patch
new file mode 100644
index 000000000000..ee2930622370
--- /dev/null
+++ b/app-admin/durep/files/durep-0.9-dirhandle.patch
@@ -0,0 +1,31 @@
+--- durep 2007-09-08 11:44:05.000000000 -0500
++++ durep.new 2008-12-15 10:04:14.907825184 -0600
+@@ -175,6 +175,7 @@
+ my $coalesced_size = 0;
+ my $node = {};
+ my $temp;
++ my $dirhandle;
+
+ $node->{ID} = $next_id++;
+ if(defined $parent) {
+@@ -196,9 +197,9 @@
+
+ $node->{TYPE} &= $TYPE_COLLAPSED unless $store;
+
+- opendir(DIR, $dir) or warn "Unable to open dir '$dir': $!\n" and return $node;
++ opendir($dirhandle, $dir) or warn "Unable to open dir '$dir': $!\n" and return $node;
+
+- foreach(readdir(DIR)) {
++ foreach(readdir($dirhandle)) {
+ @stats = lstat "$dir/$_" or warn "Unable to lstat '$dir/$_': $!\n" and next;
+
+ $node->{MTIME} = $stats[9] if($_ eq ".");
+@@ -247,7 +248,7 @@
+ $file_count++;
+ $node->{FCOUNT}++;
+ }
+- closedir(DIR);
++ closedir($dirhandle);
+
+ if($coalesced_count) {
+ if($store) {
diff --git a/app-admin/durep/files/durep-0.9-gigabyte.patch b/app-admin/durep/files/durep-0.9-gigabyte.patch
new file mode 100644
index 000000000000..315cb1c7c813
--- /dev/null
+++ b/app-admin/durep/files/durep-0.9-gigabyte.patch
@@ -0,0 +1,17 @@
+fix `durep -hs 1g` output
+
+Patch by Stephen Tallowitz
+
+http://bugs.gentoo.org/108942
+
+--- durep
++++ durep
+@@ -468,7 +468,7 @@
+ elsif ($temp =~ m/^[mM]/) {
+ return $size * 1048576;
+ }
+- elsif ($temp =~ m/^[mM]/) {
++ elsif ($temp =~ m/^[gG]/) {
+ return $size * 1048576 * 1024;
+ }
+ return $size;
diff --git a/app-admin/durep/files/durep-0.9-r4-color-output.patch b/app-admin/durep/files/durep-0.9-r4-color-output.patch
new file mode 100644
index 000000000000..6b8956199406
--- /dev/null
+++ b/app-admin/durep/files/durep-0.9-r4-color-output.patch
@@ -0,0 +1,98 @@
+--- durep
++++ durep
+@@ -14,6 +14,8 @@
+ #############################################################################
+
+ use Getopt::Long;
++use feature 'switch';
++use Term::ANSIColor qw(:constants);
+ use File::Basename;
+ use MLDBM qw(DB_File Storable);
+ use Fcntl;
+@@ -27,6 +29,7 @@
+ our ($root_node, $filesystem_id, @stats);
+ our ($opt_help, $opt_version, $opt_textdepth, $opt_hidesize, $opt_showdate, $opt_nosort, $opt_quiet);
+ our ($opt_savefile, $opt_loadfile, $opt_desc, $opt_collate);
++our ($opt_nocolor);
+ our ($opt_files, $opt_onefilesystem, $opt_collapsepath, $opt_excludepath, $opt_coalescefiles);
+ our ($root_dir, $file_count, $dir_count, $next_id);
+ our ($TYPE_FILE, $TYPE_DIR, $TYPE_EMPTY, $TYPE_COALESCED, $TYPE_COLLAPSED);
+@@ -56,6 +59,8 @@
+ "d|desc=s" => \$opt_desc,
+ "c|collate=s" => \$opt_collate,
+
++ "nc|nocolor" => \$opt_nocolor,
++
+ "f|files" => \$opt_files,
+ "x|one-file-system" => \$opt_onefilesystem,
+ "cp|collapse-path=s" => \$opt_collapsepath,
+@@ -332,13 +337,58 @@
+ printf(" [%s%s] ", "#" x $numofchars, " " x (30-$numofchars));
+ printf("%6.2f%% ", $percent);
+ printf("%s ", shortDate($entry->{MTIME})) if $opt_showdate;
+- printf("%s%s\n", $entry->{NAME}, $entry->{TYPE} & $TYPE_DIR ? "/" : "");
++
++ printColor( $entry ) unless ( $opt_nocolor );
++ printNoColor( $entry ) if ( $opt_nocolor );
+ if($entry->{TYPE} & $TYPE_DIR) {
+ printDir($entry, $indent+1) if(!defined $opt_textdepth || ($opt_textdepth > $indent+1));
+ }
+ }
+ }
+
++sub printColor {
++ my $entry = shift;
++
++ my @tmp = split /\./, $entry->{NAME};
++
++ if ( $entry->{TYPE} & $TYPE_DIR ) {
++ print BLUE, BOLD, $entry->{NAME}."/\n", RESET
++ }
++ else {
++ given ($tmp[$#tmp]) {
++ #executable (bright green)
++ when([ qw(cmd exe com btm bat sh csh) ]) {
++ print BOLD, GREEN, $entry->{NAME}."\n", RESET
++ }
++ #archives / compressed (bright red)
++ when([ qw(tar tgz arj taz lzh zip z Z gz bz2 tbz2 tz deb rpm rar ace zoo cpio 7z rz) ]) {
++ print BOLD, RED, $entry->{NAME}."\n", RESET
++ }
++ #image formats
++ when([ qw(jpg jpeg gif bmp ppm tga xbm xpm tif tiff png mng xcf pcx mpg mpeg m2v avi mkv
++ ogm mp4 mp4v mov qt wmv asf rm rmvb flc fli gl dl) ]) {
++ print BOLD, MAGENTA, $entry->{NAME}."\n", RESET
++ }
++ #misc.
++ when([ qw(pdf ps txt patch diff log tex doc) ]) {
++ print GREEN, $entry->{NAME}."\n", RESET
++ }
++ when([ qw(mp3 wav mid midi au ogg flac aac) ]) {
++ print CYAN, $entry->{NAME}."\n", RESET
++ }
++ default {
++ print $entry->{NAME}."\n", RESET
++ }
++ }
++ }
++}
++
++sub printNoColor {
++ my $entry = shift;
++
++ printf("%s%s\n", $entry->{NAME}, $entry->{TYPE} & $TYPE_DIR ? "/" : "");
++}
++
+ sub processSizeOption {
+ my ($size, $temp);
+
+@@ -438,6 +488,9 @@
+ -d, --desc=<description> give description of save file
+ -c, --collate=<dir> collate save files in dir for web report
+
++Color Option:
++ -nc, --nocolor no color output
++ By default durep color outpu
+ Inclusion Options:
+ -f, --files do not descend into subdirs, only report files
+ -x, --one-file-system do not traverse file systems
diff --git a/app-admin/durep/metadata.xml b/app-admin/durep/metadata.xml
new file mode 100644
index 000000000000..06fca6f76106
--- /dev/null
+++ b/app-admin/durep/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>A perl script designed for monitoring disk usage. Similar to du</longdescription>
+</pkgmetadata>