From owner-svn-ports-head@FreeBSD.ORG Fri Feb 21 22:30:52 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7C14C43A; Fri, 21 Feb 2014 22:30:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 673BA14AD; Fri, 21 Feb 2014 22:30:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1LMUqWa096692; Fri, 21 Feb 2014 22:30:52 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1LMUpPX096688; Fri, 21 Feb 2014 22:30:51 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201402212230.s1LMUpPX096688@svn.freebsd.org> From: Pawel Pekala Date: Fri, 21 Feb 2014 22:30:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r345558 - in head/net/pimdd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2014 22:30:52 -0000 Author: pawel Date: Fri Feb 21 22:30:51 2014 New Revision: 345558 URL: http://svnweb.freebsd.org/changeset/ports/345558 QAT: https://qat.redports.org/buildarchive/r345558/ Log: - Fix build with clang, now no gcc is required on 10+ [1] - Adapt it to new RAW socket behavior introduced in 10.0 [1] - Support staging [1] - Convert to new options framework - Respect CFLAGS PR: ports/186127 [1] Submitted by: Olivier Cochard-Labbe Added: head/net/pimdd/files/patch-igmp.c (contents, props changed) head/net/pimdd/files/patch-pim_proto.c (contents, props changed) Modified: head/net/pimdd/Makefile head/net/pimdd/files/patch-Makefile Modified: head/net/pimdd/Makefile ============================================================================== --- head/net/pimdd/Makefile Fri Feb 21 22:19:59 2014 (r345557) +++ head/net/pimdd/Makefile Fri Feb 21 22:30:51 2014 (r345558) @@ -3,6 +3,7 @@ PORTNAME= pimdd PORTVERSION= 0.2.1.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://antc.uoregon.edu/PIMDM/ DISTNAME= pimd-dense @@ -11,7 +12,6 @@ MAINTAINER= ports@FreeBSD.org COMMENT= UO Dense Protocol-Independent Multicast (PIM-DM) daemon for IPv4 MAKE_ARGS+= CC="${CC}" -USE_GCC= any NO_MAN= yes @@ -20,22 +20,18 @@ PLIST_FILES= sbin/pimdd \ PORTDOCS= pimd-dense.html README CHANGES RELEASE.NOTES -NO_STAGE= yes -.include +OPTIONS_DEFINE= DOCS EXTRA_PATCHES= ${FILESDIR}/extra-patch-defs.h post-patch: ${REINPLACE_CMD} -e 's|/etc/pimd.conf|${PREFIX}/etc/pimd.conf|g' ${WRKSRC}/pathnames.h + ${REINPLACE_CMD} -e 's|-Wall -g|${CFLAGS}|' ${WRKSRC}/Makefile do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/pimdd ${PREFIX}/sbin/pimdd - ${INSTALL_DATA} ${WRKSRC}/pimdd.conf ${PREFIX}/etc/pimdd.conf.sample -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} - ${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}/${i} -.endfor -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/pimdd ${STAGEDIR}${PREFIX}/sbin/pimdd + ${INSTALL_DATA} ${WRKSRC}/pimdd.conf ${STAGEDIR}${PREFIX}/etc/pimdd.conf.sample + ${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) -.include +.include Modified: head/net/pimdd/files/patch-Makefile ============================================================================== --- head/net/pimdd/files/patch-Makefile Fri Feb 21 22:19:59 2014 (r345557) +++ head/net/pimdd/files/patch-Makefile Fri Feb 21 22:30:51 2014 (r345558) @@ -1,5 +1,14 @@ ---- Makefile.orig Fri Sep 29 11:53:31 2006 -+++ Makefile Fri Sep 29 11:53:50 2006 +--- Makefile.orig 1999-11-30 18:58:53.000000000 +0100 ++++ Makefile 2013-09-08 09:39:18.947517833 +0200 +@@ -53,7 +53,7 @@ + # Support for Resource Reservations), currently used by RSVP. + RSRRDEF= -DRSRR + +-CC = gcc ++#CC = gcc + MCAST_INCLUDE= -Iinclude + LDFLAGS= + @@ -63,7 +63,7 @@ #CONFIGCONFIGCONFIG ### Compilation flags for different platforms. Uncomment only one of them Added: head/net/pimdd/files/patch-igmp.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pimdd/files/patch-igmp.c Fri Feb 21 22:30:51 2014 (r345558) @@ -0,0 +1,14 @@ +--- igmp.c.orig 2014-01-22 00:05:49.560452946 +0100 ++++ igmp.c 2014-01-22 00:06:57.098508699 +0100 +@@ -168,7 +168,11 @@ + #ifdef RAW_INPUT_IS_RAW + ipdatalen = ntohs(ip->ip_len) - iphdrlen; + #else ++ #if __FreeBSD_version >= 1000000 ++ ipdatalen = ip->ip_len - iphdrlen; ++ #else + ipdatalen = ip->ip_len; ++ #endif + #endif + if (iphdrlen + ipdatalen != recvlen) { + log(LOG_WARNING, 0, Added: head/net/pimdd/files/patch-pim_proto.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pimdd/files/patch-pim_proto.c Fri Feb 21 22:30:51 2014 (r345558) @@ -0,0 +1,11 @@ +--- pim_proto.c.orig 2014-01-26 12:48:37.048478574 +0100 ++++ pim_proto.c 2014-01-26 12:51:08.180470630 +0100 +@@ -669,7 +669,7 @@ + "\tPRUNE src %s, group %s - scheduling delayed join", + inet_fmt(source, s1), inet_fmt(group, s2)); + +- schedule_delayed_join(mrtentry_ptr, uni_target_addr); ++ schedule_delayed_join(mrtentry_ptr, uni_target_addr.unicast_addr); + } + } +