pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/gkrellm-multiping Initial import of gkrellm-multip...
details: https://anonhg.NetBSD.org/pkgsrc/rev/15866d448bac
branches: trunk
changeset: 469554:15866d448bac
user: cube <cube%pkgsrc.org@localhost>
date: Tue Feb 24 23:41:55 2004 +0000
description:
Initial import of gkrellm-multiping, version 2.0.8 into the NetBSD Package
Collection, from pkgsrc-wip.
gkrellm-multiping is a GKrellM plugin that repeatedly pings a list of hosts
and show their respective status. Optionally it can displays the average
round-trip time value for each host.
diffstat:
net/gkrellm-multiping/DESCR | 3 +
net/gkrellm-multiping/Makefile | 26 +++++
net/gkrellm-multiping/PLIST | 3 +
net/gkrellm-multiping/distinfo | 7 +
net/gkrellm-multiping/patches/patch-aa | 38 +++++++
net/gkrellm-multiping/patches/patch-ab | 13 ++
net/gkrellm-multiping/patches/patch-ac | 166 +++++++++++++++++++++++++++++++++
7 files changed, 256 insertions(+), 0 deletions(-)
diffs (284 lines):
diff -r ac10f2d0e0c6 -r 15866d448bac net/gkrellm-multiping/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/gkrellm-multiping/DESCR Tue Feb 24 23:41:55 2004 +0000
@@ -0,0 +1,3 @@
+gkrellm-multiping is a GKrellM plugin that repeatedly pings a list of hosts
+and show their respective status. Optionally it can displays the average
+round-trip time value for each host.
diff -r ac10f2d0e0c6 -r 15866d448bac net/gkrellm-multiping/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/gkrellm-multiping/Makefile Tue Feb 24 23:41:55 2004 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/02/24 23:41:55 cube Exp $
+#
+
+DISTNAME= gkrellm-multiping-2.0.8
+CATEGORIES= net
+MASTER_SITES= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= cube%NetBSD.org@localhost
+HOMEPAGE= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/index.html
+COMMENT= Pings several machines and prints out stats
+
+USE_BUILDLINK3= YES
+USE_PKGINSTALL= YES
+SPECIAL_PERMS+= ${PREFIX}/lib/gkrellm2/plugins/pinger ${SETUID_ROOT_PERMS}
+PTHREAD_OPTS= require
+
+MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LDFLAGS="${PTHREAD_LDFLAGS}"
+
+post-patch:
+ ${SED} -e s,@@PREFIX@@,${PREFIX}, ${WRKSRC}/multiping.c > ${WRKSRC}/multiping.c.sed
+ ${CP} ${WRKSRC}/multiping.c.sed ${WRKSRC}/multiping.c
+
+.include "../../sysutils/gkrellm/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ac10f2d0e0c6 -r 15866d448bac net/gkrellm-multiping/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/gkrellm-multiping/PLIST Tue Feb 24 23:41:55 2004 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/24 23:41:55 cube Exp $
+lib/gkrellm2/plugins/multiping.so
+lib/gkrellm2/plugins/pinger
diff -r ac10f2d0e0c6 -r 15866d448bac net/gkrellm-multiping/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/gkrellm-multiping/distinfo Tue Feb 24 23:41:55 2004 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/02/24 23:41:55 cube Exp $
+
+SHA1 (gkrellm-multiping-2.0.8.tgz) = 88de3cda0e55ba33ed5c0d0c2d0aaa2c56ebf69d
+Size (gkrellm-multiping-2.0.8.tgz) = 14377 bytes
+SHA1 (patch-aa) = a1628341a804afb21116d7c6f70847e4ed66dcec
+SHA1 (patch-ab) = 465567eb777db1d144d23e7fc457fb63db8ff23c
+SHA1 (patch-ac) = 4151e6d76665d33293038832c9cba4c4f56b3a56
diff -r ac10f2d0e0c6 -r 15866d448bac net/gkrellm-multiping/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/gkrellm-multiping/patches/patch-aa Tue Feb 24 23:41:55 2004 +0000
@@ -0,0 +1,38 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/24 23:41:56 cube Exp $
+
+--- Makefile.orig 2004-01-16 08:48:09.000000000 +0100
++++ Makefile
+@@ -1,26 +1,27 @@
+-INSTALLDIR = /usr/local/lib/gkrellm2/plugins
++INSTALLDIR = $(PREFIX)/lib/gkrellm2/plugins
+ VERSION = 2.0.8
+ PKGNAME = gkrellm-multiping
+ #OPT = -march=athlon -O2
+ #CC = gcc-3.0
+-CC = gcc
++#CC = gcc
++CFLAGS+= -I$(BUILDLINK_DIR)/include
+
+ all: pinger multiping.so
+
+ pinger: pinger.c
+- $(CC) `pkg-config glib-2.0 --cflags` $(OPT) -lpthread `pkg-config glib-2.0 --libs` -Wall -o pinger pinger.c
++ $(CC) $(PTHREAD_CFLAGS) $(CFLAGS) `pkg-config glib-2.0 --cflags` $(OPT) $(PTHREAD_DFLAGS) `pkg-config glib-2.0 --libs` -Wall -o pinger pinger.c
+
+ multiping.o: multiping.c decal_multiping_status.xpm
+- $(CC) -Wall -fPIC -Wall `pkg-config gtk+-2.0 --cflags` $(OPT) -DVERSION=\"$(VERSION)\" -c multiping.c
++ $(CC) $(CFLAGS) -Wall -fPIC -Wall `pkg-config gtk+-2.0 --cflags` $(OPT) -DVERSION=\"$(VERSION)\" -c multiping.c
+
+ multiping.so: multiping.o
+- $(CC) -shared -Wl -ggdb `pkg-config gtk+-2.0 --libs`-o multiping.so multiping.o
++ $(CC) $(CFLAGS) -shared -Wl `pkg-config gtk+-2.0 --libs`-o multiping.so multiping.o
+
+ clean:
+ rm -f *.o *.so core
+
+ install: pinger multiping.so
+- install -d $(INSTALLDIR)
++# install -d $(INSTALLDIR)
+ install -c -s -m 644 multiping.so $(INSTALLDIR)
+ install -c -s -m 4755 pinger $(INSTALLDIR)
+ echo "pinger helper is installed suid root"
diff -r ac10f2d0e0c6 -r 15866d448bac net/gkrellm-multiping/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/gkrellm-multiping/patches/patch-ab Tue Feb 24 23:41:55 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/02/24 23:41:56 cube Exp $
+
+--- multiping.c.orig 2003-01-22 17:12:53.000000000 +0100
++++ multiping.c
+@@ -30,7 +30,7 @@ ________________________________________
+ #define CONFIG_NAME "Multiping"
+ #define STYLE_NAME "multiping"
+
+-#define COMMAND "/usr/local/lib/gkrellm2/plugins/pinger"
++#define COMMAND "@@PREFIX@@/lib/gkrellm2/plugins/pinger"
+
+ static GkrellmMonitor *monitor;
+ static GkrellmPanel *panel;
diff -r ac10f2d0e0c6 -r 15866d448bac net/gkrellm-multiping/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/gkrellm-multiping/patches/patch-ac Tue Feb 24 23:41:55 2004 +0000
@@ -0,0 +1,166 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/02/24 23:41:56 cube Exp $
+
+--- pinger.c.orig 2003-01-22 17:12:53.000000000 +0100
++++ pinger.c
+@@ -27,6 +27,7 @@ ________________________________________
+ #include <sys/signal.h>
+
+ #include <netinet/in.h>
++#include <netinet/in_systm.h>
+ #include <netinet/ip.h>
+ #include <netinet/ip_icmp.h>
+ #include <arpa/inet.h>
+@@ -220,42 +221,44 @@ static gchar *pr_icmph(struct icmp *icp)
+ g_string_assign(s, "Echo Reply");
+ /* XXX ID + Seq + Data */
+ break;
+- case ICMP_DEST_UNREACH:
++ case ICMP_UNREACH:
+ switch (icp->icmp_code) {
+- case ICMP_NET_UNREACH:
++ case ICMP_UNREACH_NET:
+ g_string_assign(s, "Destination Net Unreachable");
+ break;
+- case ICMP_HOST_UNREACH:
++ case ICMP_UNREACH_HOST:
+ g_string_assign(s, "Destination Host Unreachable");
+ break;
+- case ICMP_PROT_UNREACH:
++ case ICMP_UNREACH_PROTOCOL:
+ g_string_assign(s, "Destination Protocol Unreachable");
+ break;
+- case ICMP_PORT_UNREACH:
++ case ICMP_UNREACH_PORT:
+ g_string_assign(s, "Destination Port Unreachable");
+ break;
+- case ICMP_FRAG_NEEDED:
++ case ICMP_UNREACH_NEEDFRAG:
+ g_string_assign(s, "Frag needed and DF set");
+ break;
+- case ICMP_SR_FAILED:
++ case ICMP_UNREACH_SRCFAIL:
+ g_string_assign(s, "Source Route Failed");
+ break;
+- case ICMP_NET_UNKNOWN:
++ case ICMP_UNREACH_NET_UNKNOWN:
+ g_string_assign(s, "Network Unknown");
+ break;
+- case ICMP_HOST_UNKNOWN:
++ case ICMP_UNREACH_HOST_UNKNOWN:
+ g_string_assign(s, "Host Unknown");
+ break;
+- case ICMP_HOST_ISOLATED:
++ case ICMP_UNREACH_ISOLATED:
+ g_string_assign(s, "Host Isolated");
+ break;
+- case ICMP_NET_UNR_TOS:
++ case ICMP_UNREACH_TOSNET:
+ g_string_assign(s,
+ "Destination Network Unreachable At This TOS");
+ break;
+- case ICMP_HOST_UNR_TOS:
++ case ICMP_UNREACH_TOSHOST:
+ g_string_assign(s, "Destination Host Unreachable At This TOS");
+ break;
++ case ICMP_UNREACH_ADMIN_PROHIBIT:
++ g_string_assign(s, "Packet Prohibited");
+ #ifdef ICMP_PKT_FILTERED
+ case ICMP_PKT_FILTERED:
+ g_string_assign(s, "Packet Filtered");
+@@ -277,21 +280,21 @@ static gchar *pr_icmph(struct icmp *icp)
+ break;
+ }
+ break;
+- case ICMP_SOURCE_QUENCH:
++ case ICMP_SOURCEQUENCH:
+ g_string_assign(s, "Source Quench");
+ break;
+ case ICMP_REDIRECT:
+ switch (icp->icmp_code) {
+- case ICMP_REDIR_NET:
++ case ICMP_REDIRECT_NET:
+ g_string_assign(s, "Redirect Network");
+ break;
+- case ICMP_REDIR_HOST:
++ case ICMP_REDIRECT_HOST:
+ g_string_assign(s, "Redirect Host");
+ break;
+- case ICMP_REDIR_NETTOS:
++ case ICMP_REDIRECT_TOSNET:
+ g_string_assign(s, "Redirect Type of Service and Network");
+ break;
+- case ICMP_REDIR_HOSTTOS:
++ case ICMP_REDIRECT_TOSHOST:
+ g_string_assign(s, "Redirect Type of Service and Host");
+ break;
+ default:
+@@ -305,12 +308,12 @@ static gchar *pr_icmph(struct icmp *icp)
+ g_string_assign(s, "Echo Request");
+ /* XXX ID + Seq + Data */
+ break;
+- case ICMP_TIME_EXCEEDED:
++ case ICMP_TIMXCEED:
+ switch (icp->icmp_code) {
+- case ICMP_EXC_TTL:
++ case ICMP_TIMXCEED_INTRANS:
+ g_string_assign(s, "Time to live exceeded");
+ break;
+- case ICMP_EXC_FRAGTIME:
++ case ICMP_TIMXCEED_REASS:
+ g_string_assign(s, "Frag reassembly time exceeded");
+ break;
+ default:
+@@ -319,23 +322,23 @@ static gchar *pr_icmph(struct icmp *icp)
+ break;
+ }
+ break;
+- case ICMP_PARAMETERPROB:
++ case ICMP_PARAMPROB:
+ g_string_sprintf(s, "Parameter problem: IP address = %s",
+ inet_ntoa(icp->icmp_gwaddr));
+ break;
+- case ICMP_TIMESTAMP:
++ case ICMP_TSTAMP:
+ g_string_assign(s, "Timestamp");
+ /* XXX ID + Seq + 3 timestamps */
+ break;
+- case ICMP_TIMESTAMPREPLY:
++ case ICMP_TSTAMPREPLY:
+ g_string_assign(s, "Timestamp Reply");
+ /* XXX ID + Seq + 3 timestamps */
+ break;
+- case ICMP_INFO_REQUEST:
++ case ICMP_IREQ:
+ g_string_assign(s, "Information Request");
+ /* XXX ID + Seq */
+ break;
+- case ICMP_INFO_REPLY:
++ case ICMP_IREQREPLY:
+ g_string_assign(s, "Information Reply");
+ /* XXX ID + Seq */
+ break;
+@@ -430,11 +433,11 @@ void pr_pack(char *buf, int cc, struct s
+ switch (icp->icmp_type) {
+ case ICMP_ECHO:
+ return;
+- case ICMP_SOURCE_QUENCH:
++ case ICMP_SOURCEQUENCH:
+ case ICMP_REDIRECT:
+- case ICMP_DEST_UNREACH:
+- case ICMP_TIME_EXCEEDED:
+- case ICMP_PARAMETERPROB:
++ case ICMP_UNREACH:
++ case ICMP_TIMXCEED:
++ case ICMP_PARAMPROB:
+ {
+ struct ip *iph = (struct ip *) (&icp->icmp_data);
+ struct icmp *icp1 =
+@@ -447,7 +450,7 @@ void pr_pack(char *buf, int cc, struct s
+ icp1->icmp_id != ident)
+ return;
+ error_pkt = (icp->icmp_type != ICMP_REDIRECT &&
+- icp->icmp_type != ICMP_SOURCE_QUENCH);
++ icp->icmp_type != ICMP_SOURCEQUENCH);
+
+ h = (host_data *) g_list_find_custom(hosts,
+ (int *) &icp1->
Home |
Main Index |
Thread Index |
Old Index