Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+3
View File
@@ -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.
+29
View File
@@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.37 2013/06/06 12:54:55 wiz Exp $
#
DISTNAME= gkrellm-multiping-2.0.8
PKGREVISION= 25
CATEGORIES= net
MASTER_SITES= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/index.html
COMMENT= Pings several machines and prints out stats
SPECIAL_PERMS+= ${PREFIX}/lib/gkrellm2/plugins/pinger ${SETUID_ROOT_PERMS}
USE_TOOLS+= pkg-config
PTHREAD_OPTS+= require
PTHREAD_AUTO_VARS= yes
INSTALLATION_DIRS= lib/gkrellm2/plugins
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"
+3
View File
@@ -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
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.5 2008/06/20 01:09:30 joerg Exp $
SHA1 (gkrellm-multiping-2.0.8.tgz) = 88de3cda0e55ba33ed5c0d0c2d0aaa2c56ebf69d
RMD160 (gkrellm-multiping-2.0.8.tgz) = 6d8d9d4b2379a48f15c1b654efd3149320a6b8a1
Size (gkrellm-multiping-2.0.8.tgz) = 14377 bytes
SHA1 (patch-aa) = 76600d28a9b87dcad39487b001911a98e9d06674
SHA1 (patch-ab) = 465567eb777db1d144d23e7fc457fb63db8ff23c
SHA1 (patch-ac) = d8979ef7d975ec19c71a72bfc9e19e6c82a16a83
+42
View File
@@ -0,0 +1,42 @@
$NetBSD: patch-aa,v 1.3 2008/06/20 01:09:30 joerg Exp $
--- Makefile.orig 2004-01-16 07:48:09.000000000 +0000
+++ Makefile
@@ -1,28 +1,29 @@
-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) $(CFLAGS) `pkg-config glib-2.0 --cflags` $(OPT) $(LDFLAGS) `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) $(LDFLAGS) -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 -c -s -m 644 multiping.so $(INSTALLDIR)
- install -c -s -m 4755 pinger $(INSTALLDIR)
+# install -d $(INSTALLDIR)
+ install -c -s -m 644 multiping.so ${DESTDIR}$(INSTALLDIR)
+ install -c -s -m 4755 pinger ${DESTDIR}$(INSTALLDIR)
echo "pinger helper is installed suid root"
dist:
+13
View File
@@ -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;
+170
View File
@@ -0,0 +1,170 @@
$NetBSD: patch-ac,v 1.2 2006/05/29 14:06:27 joerg Exp $
--- pinger.c.orig 2004-01-16 07:48:09.000000000 +0000
+++ 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>
@@ -239,42 +240,48 @@ 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;
+#if defined(__DragonFly__)
+ case ICMP_UNREACH_FILTER_PROHIB:
+#else
+ case ICMP_UNREACH_ADMIN_PROHIBIT:
+#endif
+ g_string_assign(s, "Packet Prohibited");
#ifdef ICMP_PKT_FILTERED
case ICMP_PKT_FILTERED:
g_string_assign(s, "Packet Filtered");
@@ -296,21 +303,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:
@@ -324,12 +331,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:
@@ -338,23 +345,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;
@@ -448,11 +455,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 =
@@ -465,7 +472,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->