aboutsummaryrefslogtreecommitdiff
path: root/sysutils/philesight
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-02-11 19:09:52 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-02-11 19:09:52 +0000
commit16173924fb97108975389136305c42ce979d3c4c (patch)
tree00e0b4e38b86b9bfb988229770ae18dc409f6e18 /sysutils/philesight
parent305459a6aeb2b62cc1118a2cb16cd94a13d3ad86 (diff)
downloadports-16173924fb97108975389136305c42ce979d3c4c.tar.gz
ports-16173924fb97108975389136305c42ce979d3c4c.zip
Notes
Diffstat (limited to 'sysutils/philesight')
-rw-r--r--sysutils/philesight/Makefile44
-rw-r--r--sysutils/philesight/distinfo3
-rw-r--r--sysutils/philesight/files/extra-patch-ruby1930
-rw-r--r--sysutils/philesight/pkg-descr12
4 files changed, 89 insertions, 0 deletions
diff --git a/sysutils/philesight/Makefile b/sysutils/philesight/Makefile
new file mode 100644
index 000000000000..b1834b268ba0
--- /dev/null
+++ b/sysutils/philesight/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: philesight
+# Date created: 2009-02-11
+# Whom: stas
+#
+# $FreeBSD$
+#
+
+PORTNAME= philesight
+PORTVERSION= 20090105
+CATEGORIES= sysutils
+MASTER_SITES= http://zevv.nl/play/code/philesight/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= Shows a graphics representation of the filesystem usage
+
+RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/cairo.so:${PORTSDIR}/graphics/ruby-cairo \
+ ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
+
+USE_RUBY= yes
+NO_BUILD= yes
+RUBY_SHEBANG_FILES= ${PORTNAME} ${PORTNAME}.rb ${PORTNAME}.cgi
+
+PORTEXAMPLES= ${PORTNAME}.cgi
+PLIST_FILES= bin/${PORTNAME} ${RUBY_SITELIBDIR:C,^${PREFIX}/?,,}/${PORTNAME}.rb
+
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} == 1.9
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-ruby19
+.endif
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.rb ${RUBY_SITELIBDIR}/
+
+.if !defined(WITHOUT_EXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}/
+. for FILE in ${PORTEXAMPLES}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${EXAMPLESDIR}/
+. endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/philesight/distinfo b/sysutils/philesight/distinfo
new file mode 100644
index 000000000000..8c66b77d8569
--- /dev/null
+++ b/sysutils/philesight/distinfo
@@ -0,0 +1,3 @@
+MD5 (philesight-20090105.tgz) = 764f9f345757e31f0dbae04be5abf969
+SHA256 (philesight-20090105.tgz) = 6be8fdcdc949049eaeaa1d017cf9eeeac6fabcb816a04fac990428483df89f80
+SIZE (philesight-20090105.tgz) = 8052
diff --git a/sysutils/philesight/files/extra-patch-ruby19 b/sysutils/philesight/files/extra-patch-ruby19
new file mode 100644
index 000000000000..e0b0026988e9
--- /dev/null
+++ b/sysutils/philesight/files/extra-patch-ruby19
@@ -0,0 +1,30 @@
+--- philesight.rb.orig 2009-02-11 21:59:28.000000000 +0300
++++ philesight.rb 2009-02-11 22:00:07.000000000 +0300
+@@ -257,7 +257,7 @@
+ if(level < @ringcount) then
+ draw_ring(cr, level+1, ang_from, ang_to, f_full)
+ else
+- draw_section(cr, ang_from, ang_to, r_to, r_to+5, 0.5) if(cr && child_f.nitems > 0)
++ draw_section(cr, ang_from, ang_to, r_to, r_to+5, 0.5) if(cr && child_f.size > 0)
+ end
+
+ # Generate and save labels of filenames/sizes
+@@ -428,12 +428,12 @@
+ i=6 if(i>6)
+
+ case i
+- when 0, 6: r=v; g=n; b=m
+- when 1: r=n; g=v; b=m
+- when 2: r=m; g=v; b=n
+- when 3: r=m; g=n; b=v
+- when 4: r=n; g=m; b=v
+- when 5: r=v; g=m; b=n
++ when 0, 6 then r=v; g=n; b=m
++ when 1 then r=n; g=v; b=m
++ when 2 then r=m; g=v; b=n
++ when 3 then r=m; g=n; b=v
++ when 4 then r=n; g=m; b=v
++ when 5 then r=v; g=m; b=n
+ end
+
+ [r, g, b]
diff --git a/sysutils/philesight/pkg-descr b/sysutils/philesight/pkg-descr
new file mode 100644
index 000000000000..9e03a458a835
--- /dev/null
+++ b/sysutils/philesight/pkg-descr
@@ -0,0 +1,12 @@
+Philesight is a tool to browse your filesystem and see where the diskspace
+is being used at a glance. Philesight is implemented as a simple command
+line program that generates PNG files; a wrapper CGI script is supplied to
+allow navigating through the filesystem.
+
+Philesight is actually a clone of the filelight program. Wheres filelight
+is ment as an interactive, user friendly application for the X-windows
+desktop, philesight is designed to run on a remote server without
+graphical user interface.
+
+Author: Ico Doornekamp <philesight@zevv.nl>
+WWW: http://zevv.nl/play/code/philesight/