[csw-devel] SF.net SVN: gar:[5119] csw/mgar/pkg
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Mon Jun 1 15:42:08 CEST 2009
Revision: 5119
http://gar.svn.sourceforge.net/gar/?rev=5119&view=rev
Author: skayser
Date: 2009-06-01 13:42:08 +0000 (Mon, 01 Jun 2009)
Log Message:
-----------
mtr: initial commit
Added Paths:
-----------
csw/mgar/pkg/mtr/
csw/mgar/pkg/mtr/branches/
csw/mgar/pkg/mtr/tags/
csw/mgar/pkg/mtr/trunk/
csw/mgar/pkg/mtr/trunk/Makefile
csw/mgar/pkg/mtr/trunk/checksums
csw/mgar/pkg/mtr/trunk/files/
csw/mgar/pkg/mtr/trunk/files/changelog.CSW
csw/mgar/pkg/mtr/trunk/files/gar-base.diff
Property changes on: csw/mgar/pkg/mtr/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
Added: svn:externals
+ gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2
Added: csw/mgar/pkg/mtr/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mtr/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/mtr/trunk/Makefile 2009-06-01 13:42:08 UTC (rev 5119)
@@ -0,0 +1,57 @@
+# Todo
+# * Provide additional non-X11 package to reduce dependencies (mtr-tiny)
+# * Revisit curses autoconf detection. Maybe have a chat with upstream
+# as the README says that there are known, yet unsolved Solaris autoconf
+# recipe problems
+GARNAME = mtr
+GARVERSION = 0.75
+CATEGORIES = net
+
+DESCRIPTION = Combined traceroute and ping utility
+define BLURB
+ mtr combines the functionality of the 'traceroute' and 'ping' programs
+ in a single network diagnostic tool.
+
+ As mtr starts, it investigates the network connection between the host
+ mtr runs on and a user-specified destination host. After it determines
+ the address of each network hop between the machines, it sends a
+ sequence ICMP ECHO requests to each one to determine the quality of the
+ link to each machine. As it does this, it prints running statistics
+ about each machine.
+endef
+
+SPKG_SOURCEURL = http://www.bitwizard.nl/mtr/
+MASTER_SITES = ftp://ftp.bitwizard.nl/mtr/
+DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+REQUIRED_PKGS = CSWggettextrt CSWglib2 CSWgtk2 CSWlibatk CSWlibcairo
+REQUIRED_PKGS += CSWncurses CSWpango
+
+# 1) Check for socklen_t via sys/socket.h (not netinet/in.h)
+# 2) Don't cast sin_addr to (struct in_addr), cc bails out with invalid cast
+PATCHFILES = gar-base.diff
+
+TEST_SCRIPTS =
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+# Make mtr setuid so that it can access raw sockets
+PROTOTYPE_FILTER = awk ' \
+ $$$$3 ~ /sbin\/mtr$$$$/ { $$$$4 = "4755" } \
+ { print }'
+
+include gar/category.mk
+
+# curses detection is somehow broken, ncurses.h is included but no curses
+# lib is added to LIBS (according to comments in configure.in termcap is only
+# included to satisfy Solaris curses dependencies)
+post-configure-modulated:
+ @perl -pi -e 'if (/^LIBS =/) { s|-ltermcap|-lncurses| }' \
+ $(WORKSRC)/Makefile
+ @$(MAKECOOKIE)
+
+post-install-modulated:
+ @ginstall -d $(DESTDIR)$(docdir)/$(GARNAME)
+ @cp $(FILEDIR)/changelog.CSW $(DESTDIR)$(docdir)/$(GARNAME)
+ @$(MAKECOOKIE)
Added: csw/mgar/pkg/mtr/trunk/checksums
===================================================================
--- csw/mgar/pkg/mtr/trunk/checksums (rev 0)
+++ csw/mgar/pkg/mtr/trunk/checksums 2009-06-01 13:42:08 UTC (rev 5119)
@@ -0,0 +1,2 @@
+4a3e6fef662eb4794e61e334f6c33722 download/gar-base.diff
+23baca52d0922c2ecba7eba05317868c download/mtr-0.75.tar.gz
Added: csw/mgar/pkg/mtr/trunk/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/mtr/trunk/files/changelog.CSW (rev 0)
+++ csw/mgar/pkg/mtr/trunk/files/changelog.CSW 2009-06-01 13:42:08 UTC (rev 5119)
@@ -0,0 +1,5 @@
+mtr (0.75,REV=2009.06.01)
+
+ * Adopted and updated to 0.75. (Closes #2557, #3278)
+
+ -- Sebastian Kayser <skayser at opencsw.org> Mon, 1 Jun 2009 15:37:02 +0200
Added: csw/mgar/pkg/mtr/trunk/files/gar-base.diff
===================================================================
--- csw/mgar/pkg/mtr/trunk/files/gar-base.diff (rev 0)
+++ csw/mgar/pkg/mtr/trunk/files/gar-base.diff 2009-06-01 13:42:08 UTC (rev 5119)
@@ -0,0 +1,24 @@
+diff --speed-large-files --minimal -Nru mtr-0.75.orig/configure mtr-0.75/configure
+--- mtr-0.75.orig/configure 2008-09-19 11:38:58.000000000 +0200
++++ mtr-0.75/configure 2009-06-01 14:04:15.934912770 +0200
+@@ -7834,7 +7834,7 @@
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+
+-#include <netinet/in.h>
++#include <sys/socket.h>
+
+
+ typedef socklen_t ac__type_new_;
+diff --speed-large-files --minimal -Nru mtr-0.75.orig/net.c mtr-0.75/net.c
+--- mtr-0.75.orig/net.c 2008-09-19 11:37:57.000000000 +0200
++++ mtr-0.75/net.c 2009-06-01 14:06:05.858053169 +0200
+@@ -1205,7 +1205,7 @@
+ switch ( saddr->sa_family ) {
+ case AF_INET:
+ sa4 = (struct sockaddr_in *) saddr;
+- strncpy( strptr, inet_ntoa( (struct in_addr) sa4->sin_addr ), len - 1 );
++ strncpy( strptr, inet_ntoa( sa4->sin_addr ), len - 1 );
+ strptr[ len - 1 ] = '\0';
+ return;
+ #ifdef ENABLE_IPV6
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list