From dab9f314ab46b24c3c18aa14a25fc9974719798d Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Sat, 20 Oct 2001 18:34:26 +0000 Subject: New port gkrellmseti version 0.6.5: A SETI@home plugin for GKrellM Submitted by: Hammurabi Mendes --- astro/Makefile | 1 + astro/gkrellmseti/Makefile | 40 ++++++++++++++++++++++++++++++++++ astro/gkrellmseti/distinfo | 1 + astro/gkrellmseti/files/patch-Makefile | 28 ++++++++++++++++++++++++ astro/gkrellmseti/files/patch-seti.c | 15 +++++++++++++ astro/gkrellmseti/pkg-comment | 1 + astro/gkrellmseti/pkg-descr | 12 ++++++++++ astro/gkrellmseti/pkg-plist | 5 +++++ 8 files changed, 103 insertions(+) create mode 100644 astro/gkrellmseti/Makefile create mode 100644 astro/gkrellmseti/distinfo create mode 100644 astro/gkrellmseti/files/patch-Makefile create mode 100644 astro/gkrellmseti/files/patch-seti.c create mode 100644 astro/gkrellmseti/pkg-comment create mode 100644 astro/gkrellmseti/pkg-descr create mode 100644 astro/gkrellmseti/pkg-plist (limited to 'astro') diff --git a/astro/Makefile b/astro/Makefile index bd946ad0ecb5..6245f845f175 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -7,6 +7,7 @@ SUBDIR += fooseti SUBDIR += gkrellmearth SUBDIR += gkrellmoon + SUBDIR += gkrellmseti SUBDIR += glunarclock SUBDIR += jday SUBDIR += ksetiwatch diff --git a/astro/gkrellmseti/Makefile b/astro/gkrellmseti/Makefile new file mode 100644 index 000000000000..ef4c167ec359 --- /dev/null +++ b/astro/gkrellmseti/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: gkrellmseti +# Date created: Sat Oct 13 01:27:47 BRT 2001 +# Whom: Hammurabi Mendes et al +# +# $FreeBSD$ +# + +PORTNAME= seti +PORTVERSION= 0.6.5 +CATEGORIES= astro +MASTER_SITES= http://xavier.serpaggi.free.fr/seti/ +PKGNAMEPREFIX= gkrellm + +MAINTAINER= hmendes_br@yahoo.com + +BUILD_DEPENDS= ${X11BASE}/include/gkrellm/gkrellm.h:${PORTSDIR}/sysutils/gkrellm +RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm + +USE_BZIP2= yes +USE_X_PREFIX= yes +USE_GTK= yes +USE_IMLIB= yes +USE_XPM= yes + +DOC_FILES= AUTHORS README TODO + +post-patch: + @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/seti.c + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/seti.so \ + ${PREFIX}/libexec/gkrellm/plugins +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + +.include diff --git a/astro/gkrellmseti/distinfo b/astro/gkrellmseti/distinfo new file mode 100644 index 000000000000..a14b13c70a96 --- /dev/null +++ b/astro/gkrellmseti/distinfo @@ -0,0 +1 @@ +MD5 (seti-0.6.5.tar.bz2) = 69e347a9b3aa681bad53b8c7cd9eaaa1 diff --git a/astro/gkrellmseti/files/patch-Makefile b/astro/gkrellmseti/files/patch-Makefile new file mode 100644 index 000000000000..5038b8343b52 --- /dev/null +++ b/astro/gkrellmseti/files/patch-Makefile @@ -0,0 +1,28 @@ +--- Makefile.orig Sat Aug 18 07:56:04 2001 ++++ Makefile Sat Oct 13 12:39:09 2001 +@@ -1,9 +1,9 @@ +-CFLAGS= -fpic -Wall `gtk-config --cflags` `imlib-config --cflags-gdk` +-LDFLAGS= -shared -Wl ++CFLAGS+= -fpic -Wall `${GTK_CONFIG} --cflags` `${IMLIB_CONFIG} --cflags-gdk` ++LDFLAGS+= -shared -Wl + + # uncomment the second DBGFLAGS line to make seti@home plugin + # be verbose when GKrellM is launched with the --debug option. +-DBGFLAGS= -O3 ++#DBGFLAGS= -O3 + #DBGFLAGS=-DDEBUG + + all: seti.so +@@ -12,10 +12,10 @@ + cp seti.so ${HOME}/.gkrellm/plugins/ + + seti.so: seti.o +- gcc $(LDFLAGS) -o seti.so seti.o ++ ${CC} $(LDFLAGS) -o seti.so seti.o + + seti.o: seti.c seti.h +- gcc $(CFLAGS) $(DBGFLAGS) -c seti.c ++ ${CC} $(CFLAGS) $(DBGFLAGS) -c seti.c + + tags: + ctags seti.c seti.h diff --git a/astro/gkrellmseti/files/patch-seti.c b/astro/gkrellmseti/files/patch-seti.c new file mode 100644 index 000000000000..ee56616cdbb7 --- /dev/null +++ b/astro/gkrellmseti/files/patch-seti.c @@ -0,0 +1,15 @@ +--- seti.c.orig Sat Oct 20 16:24:45 2001 ++++ seti.c Sat Oct 20 16:25:59 2001 +@@ -1106,10 +1106,10 @@ + style_id = gkrellm_add_meter_style(&plugin_mon, STYLE_NAME); + + g_free(client_info.seti_file_path) ; +- client_info.seti_file_path = g_strdup("/opt/setiathome/") ; ++ client_info.seti_file_path = g_strdup("/var/db/setiathome/") ; + + g_free(client_info.seti_client_path) ; +- client_info.seti_client_path = g_strdup("/opt/setiathome/") ; ++ client_info.seti_client_path = g_strdup("/%%LOCALBASE%%/sbin/") ; + + g_free(client_info.state_file) ; + client_info.state_file = g_strdup_printf("%s/state.sah", client_info.seti_file_path) ; diff --git a/astro/gkrellmseti/pkg-comment b/astro/gkrellmseti/pkg-comment new file mode 100644 index 000000000000..5dca65d17f6b --- /dev/null +++ b/astro/gkrellmseti/pkg-comment @@ -0,0 +1 @@ +A SETI@home plugin for GKrellM diff --git a/astro/gkrellmseti/pkg-descr b/astro/gkrellmseti/pkg-descr new file mode 100644 index 000000000000..5b464a95f433 --- /dev/null +++ b/astro/gkrellmseti/pkg-descr @@ -0,0 +1,12 @@ +SETI@home GKrellM plugin +(for GKrellM 0.10.3 or later) + +SETI@home GKrellM plugin is a progress meter that shows the current +computation progress of a seti-workunit. +Current working unit and completion percent is available via a +tooltip. +Progress value is read every minute as client write his results +every minute. + +Author: Xavier Serpaggi +WWW: http://xavier.serpaggi.free.fr/seti/ diff --git a/astro/gkrellmseti/pkg-plist b/astro/gkrellmseti/pkg-plist new file mode 100644 index 000000000000..8599722a8a6f --- /dev/null +++ b/astro/gkrellmseti/pkg-plist @@ -0,0 +1,5 @@ +libexec/gkrellm/plugins/seti.so +%%PORTDOCS%%share/doc/seti/AUTHORS +%%PORTDOCS%%share/doc/seti/README +%%PORTDOCS%%share/doc/seti/TODO +%%PORTDOCS%%@dirrm share/doc/seti -- cgit v1.2.3