summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-12-11 02:41:39 +0000
committersteve <steve@FreeBSD.org>2000-12-11 02:41:39 +0000
commit5619e2f1ec56094da923eb89173d472c290a0451 (patch)
treee9422c2a1f99ca271ab0bc0e16c59507458bf352
parent81685343f19af5528d9cceeac96a6bed904d25f2 (diff)
downloadFreeBSD-ports-5619e2f1ec56094da923eb89173d472c290a0451.zip
FreeBSD-ports-5619e2f1ec56094da923eb89173d472c290a0451.tar.gz
Change the .gif files to .png now that GD makes the latter instead.
PR: 23244 Submitted by: Todd Mortensen <todd@vegasunderwater.com>
-rw-r--r--www/http-analyze/Makefile6
-rw-r--r--www/http-analyze/pkg-descr1
-rw-r--r--www/http-analyze/pkg-plist70
-rw-r--r--www/http-analyze/scripts/post-patch95
4 files changed, 133 insertions, 39 deletions
diff --git a/www/http-analyze/Makefile b/www/http-analyze/Makefile
index 6a25929..2ffe190 100644
--- a/www/http-analyze/Makefile
+++ b/www/http-analyze/Makefile
@@ -3,17 +3,17 @@
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
# $FreeBSD$
-#
PORTNAME= http-analyze
PORTVERSION= 2.01
CATEGORIES= www
MASTER_SITES= ftp://ftp.rent-a-guru.de/pub/http-analyze2.01/
-DISTNAME= http-analyze2.01
+DISTNAME= ${PORTNAME}${PORTVERSION}
EXTRACT_SUFX= -src.tar.gz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= todd@thisisa.com
+BUILD_DEPENDS= gif2png:${PORTSDIR}/graphics/gif2png
LIB_DEPENDS= gd.1:${PORTSDIR}/graphics/gd
MAN1= http-analyze.1
diff --git a/www/http-analyze/pkg-descr b/www/http-analyze/pkg-descr
index 23b1ae9..c890575 100644
--- a/www/http-analyze/pkg-descr
+++ b/www/http-analyze/pkg-descr
@@ -11,4 +11,3 @@ been highly optimized for processing huge logfiles in short
update-intervals.
WWW: http://www.netstore.de/Supply/http-analyze/
-
diff --git a/www/http-analyze/pkg-plist b/www/http-analyze/pkg-plist
index 9262d76..65be8fb 100644
--- a/www/http-analyze/pkg-plist
+++ b/www/http-analyze/pkg-plist
@@ -4,42 +4,42 @@ lib/http-analyze/3Dlogo.wrl.gz
lib/http-analyze/3Dprolog.wrl
lib/http-analyze/3DshelfMotion.wav
lib/http-analyze/TLD
-lib/http-analyze/btn/RAG_sb.gif
-lib/http-analyze/btn/RAG_sw.gif
-lib/http-analyze/btn/agents_off.gif
-lib/http-analyze/btn/agents_on.gif
-lib/http-analyze/btn/avload_off.gif
-lib/http-analyze/btn/avload_on.gif
-lib/http-analyze/btn/cntry_off.gif
-lib/http-analyze/btn/cntry_on.gif
-lib/http-analyze/btn/days_off.gif
-lib/http-analyze/btn/days_on.gif
-lib/http-analyze/btn/files_off.gif
-lib/http-analyze/btn/files_on.gif
+lib/http-analyze/btn/RAG_sb.png
+lib/http-analyze/btn/RAG_sw.png
+lib/http-analyze/btn/agents_off.png
+lib/http-analyze/btn/agents_on.png
+lib/http-analyze/btn/avload_off.png
+lib/http-analyze/btn/avload_on.png
+lib/http-analyze/btn/cntry_off.png
+lib/http-analyze/btn/cntry_on.png
+lib/http-analyze/btn/days_off.png
+lib/http-analyze/btn/days_on.png
+lib/http-analyze/btn/files_off.png
+lib/http-analyze/btn/files_on.png
lib/http-analyze/btn/globe.jpg
-lib/http-analyze/btn/ha2.0_sm.gif
-lib/http-analyze/btn/netstore_sb.gif
-lib/http-analyze/btn/netstore_sw.gif
-lib/http-analyze/btn/refers_off.gif
-lib/http-analyze/btn/refers_on.gif
-lib/http-analyze/btn/rfiles_off.gif
-lib/http-analyze/btn/rfiles_on.gif
-lib/http-analyze/btn/rsites_off.gif
-lib/http-analyze/btn/rsites_on.gif
-lib/http-analyze/btn/sites_off.gif
-lib/http-analyze/btn/sites_on.gif
-lib/http-analyze/btn/topdom_off.gif
-lib/http-analyze/btn/topdom_on.gif
-lib/http-analyze/btn/topref_off.gif
-lib/http-analyze/btn/topref_on.gif
-lib/http-analyze/btn/topuag_off.gif
-lib/http-analyze/btn/topuag_on.gif
-lib/http-analyze/btn/topurl_off.gif
-lib/http-analyze/btn/topurl_on.gif
-lib/http-analyze/btn/totals_off.gif
-lib/http-analyze/btn/totals_on.gif
-lib/http-analyze/btn/year_off.gif
-lib/http-analyze/btn/year_on.gif
+lib/http-analyze/btn/ha2.0_sm.png
+lib/http-analyze/btn/netstore_sb.png
+lib/http-analyze/btn/netstore_sw.png
+lib/http-analyze/btn/refers_off.png
+lib/http-analyze/btn/refers_on.png
+lib/http-analyze/btn/rfiles_off.png
+lib/http-analyze/btn/rfiles_on.png
+lib/http-analyze/btn/rsites_off.png
+lib/http-analyze/btn/rsites_on.png
+lib/http-analyze/btn/sites_off.png
+lib/http-analyze/btn/sites_on.png
+lib/http-analyze/btn/topdom_off.png
+lib/http-analyze/btn/topdom_on.png
+lib/http-analyze/btn/topref_off.png
+lib/http-analyze/btn/topref_on.png
+lib/http-analyze/btn/topuag_off.png
+lib/http-analyze/btn/topuag_on.png
+lib/http-analyze/btn/topurl_off.png
+lib/http-analyze/btn/topurl_on.png
+lib/http-analyze/btn/totals_off.png
+lib/http-analyze/btn/totals_on.png
+lib/http-analyze/btn/year_off.png
+lib/http-analyze/btn/year_on.png
lib/http-analyze/bugreport.html
lib/http-analyze/rotate-httpd
lib/http-analyze/sample.conf
diff --git a/www/http-analyze/scripts/post-patch b/www/http-analyze/scripts/post-patch
new file mode 100644
index 0000000..9ae5a1a
--- /dev/null
+++ b/www/http-analyze/scripts/post-patch
@@ -0,0 +1,95 @@
+#!/bin/sh
+gifdir="${WRKSRC}/files/btn"
+gif2png=`which gif2png`
+
+if [ -x $gif2png ]; then
+ patch --quiet ${WRKSRC}/images.c << EOP
+*** images.c.orig Fri Nov 17 00:52:02 2000
+--- images.c Fri Nov 17 00:52:48 2000
+***************
+*** 996,1032 ****
+ }
+
+ ICON_TAB icon_tab[] = {
+! { "btn/sq_green.gif", 0, 204, 0 },
+! { "btn/sq_blue.gif", 0, 0, 255 },
+! { "btn/sq_red.gif", 255, 0, 0 },
+! { "btn/sq_orange.gif", 222, 102, 0 },
+! { "btn/sq_yellow.gif", 242, 242, 0 },
+! { "btn/sq_magenta.gif", 153, 0, 255 },
+! { "btn/sq_grey.gif", 204, 204, 204 }
+ };
+
+ BTN_TAB buttons[] = { /* various images */
+! { "btn/netstore_sw.gif", "Netstore", 0, 0 },
+! { "btn/netstore_sb.gif", "Netstore", 0, 0 },
+! { "btn/RAG_sw.gif", NULL, 0, 0 },
+! { "btn/RAG_sb.gif", NULL, 0, 0 },
+! { "btn/year_off.gif", "summary", 0, 0 },
+! { "btn/totals_off.gif", "totals", 0, 0 },
+! { "btn/days_off.gif", "days", 0, 0 },
+ { NULL, NULL, 0, 0 },
+ { NULL, NULL, 0, 0 },
+! { "btn/avload_off.gif", "avload", 0, 0 },
+! { "btn/topurl_off.gif", "topurl", 0, 0 },
+! { "btn/topdom_off.gif", "topdom", 0, 0 },
+! { "btn/topuag_off.gif", "topuag", 0, 0 },
+! { "btn/topref_off.gif", "topref", 0, 0 },
+! { "btn/cntry_off.gif", "country", 0, 0 },
+! { "btn/files_off.gif", "files", 0, 0 },
+! { "btn/rfiles_off.gif", "rfiles", 0, 0 },
+! { "btn/sites_off.gif", "sites", 0, 0 },
+! { "btn/rsites_off.gif", "rsites", 0, 0 },
+! { "btn/agents_off.gif", "agents", 0, 0 },
+! { "btn/refers_off.gif", "refers", 0, 0 }
+ };
+
+ static void mkIcon(char * const fname, ICON_TAB * const tp) {
+--- 996,1032 ----
+ }
+
+ ICON_TAB icon_tab[] = {
+! { "btn/sq_green.png", 0, 204, 0 },
+! { "btn/sq_blue.png", 0, 0, 255 },
+! { "btn/sq_red.png", 255, 0, 0 },
+! { "btn/sq_orange.png", 222, 102, 0 },
+! { "btn/sq_yellow.png", 242, 242, 0 },
+! { "btn/sq_magenta.png", 153, 0, 255 },
+! { "btn/sq_grey.png", 204, 204, 204 }
+ };
+
+ BTN_TAB buttons[] = { /* various images */
+! { "btn/netstore_sw.png", "Netstore", 0, 0 },
+! { "btn/netstore_sb.png", "Netstore", 0, 0 },
+! { "btn/RAG_sw.png", NULL, 0, 0 },
+! { "btn/RAG_sb.png", NULL, 0, 0 },
+! { "btn/year_off.png", "summary", 0, 0 },
+! { "btn/totals_off.png", "totals", 0, 0 },
+! { "btn/days_off.png", "days", 0, 0 },
+ { NULL, NULL, 0, 0 },
+ { NULL, NULL, 0, 0 },
+! { "btn/avload_off.png", "avload", 0, 0 },
+! { "btn/topurl_off.png", "topurl", 0, 0 },
+! { "btn/topdom_off.png", "topdom", 0, 0 },
+! { "btn/topuag_off.png", "topuag", 0, 0 },
+! { "btn/topref_off.png", "topref", 0, 0 },
+! { "btn/cntry_off.png", "country", 0, 0 },
+! { "btn/files_off.png", "files", 0, 0 },
+! { "btn/rfiles_off.png", "rfiles", 0, 0 },
+! { "btn/sites_off.png", "sites", 0, 0 },
+! { "btn/rsites_off.png", "rsites", 0, 0 },
+! { "btn/agents_off.png", "agents", 0, 0 },
+! { "btn/refers_off.png", "refers", 0, 0 }
+ };
+
+ static void mkIcon(char * const fname, ICON_TAB * const tp) {
+EOP
+ echo "===> Converting gifs to png format"
+ find $gifdir -name "*gif" -type f -exec $gif2png -d -O {} \;
+elif [ ! -x $gif2png ]; then
+ echo "*** Convertion of gifs failed."
+ echo "*** Running http-analyze with the -f option may cause segmentation faults."
+ echo "*** It is recommended to install gif2png and reinstall this port."
+fi
+
+exit 0
OpenPOWER on IntegriCloud