Bug 182811 - [patch update] net/findmtu add stage support, fix build on 10a4
Summary: [patch update] net/findmtu add stage support, fix build on 10a4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-07 21:00 UTC by Kurt Jaeger
Modified: 2013-10-12 19:20 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.92 KB, patch)
2013-10-07 21:00 UTC, Kurt Jaeger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger 2013-10-07 21:00:00 UTC
	add stage support, fix build on 10a4

How-To-Repeat: 	-
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-07 21:00:11 UTC
Maintainer of net/findmtu,

Please note that PR ports/182811 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/182811

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-07 21:00:12 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Janos Mohacsi 2013-10-11 17:26:39 UTC
Thanks for the fix. Approved.
        Best Regards,
                    Janos Mohacsi
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2013-10-12 18:44:59 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-10-12 19:05:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

I'll take it.
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-10-12 19:11:58 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 7 dfilter service freebsd_committer freebsd_triage 2013-10-12 19:12:01 UTC
Author: sunpoet
Date: Sat Oct 12 18:11:47 2013
New Revision: 330165
URL: http://svnweb.freebsd.org/changeset/ports/330165

Log:
  - Support STAGEDIR
  - Respect CC
  - While I'm here:
    - Remove leading indefinite article from COMMENT
    - Convert to new options framework
  
  PR:		ports/182811
  Submitted by:	Kurt Jaeger <fbsd-ports@opsec.eu>
  Approved by:	Janos Mohacsi <jmohacsi@bsd.hu> (maintainer)

Modified:
  head/net/findmtu/Makefile

Modified: head/net/findmtu/Makefile
==============================================================================
--- head/net/findmtu/Makefile	Sat Oct 12 18:09:09 2013	(r330164)
+++ head/net/findmtu/Makefile	Sat Oct 12 18:11:47 2013	(r330165)
@@ -7,21 +7,27 @@ CATEGORIES=	net ipv6
 MASTER_SITES=	http://www.dia.uniroma3.it/~compunet/tunneldiscovery/findmtu/
 
 MAINTAINER=	jmohacsi@bsd.hu
-COMMENT=	A tool for performing IPv6 path MTU discovery on *NIX
+COMMENT=	Tool for performing IPv6 path MTU discovery on *NIX
+
+OPTIONS_DEFINE=	DOCS
 
 SUB_FILES=	findmtu
 
-NO_STAGE=	yes
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile.rawsocket
+
 do-configure:
 	${LN} -s ${WRKSRC}/Makefile.rawsocket ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/findmtu ${PREFIX}/bin/findmtu
-	${INSTALL_PROGRAM} ${WRKSRC}/findmtu ${PREFIX}/bin/findmtu.real
-.ifndef(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.freebsd ${DOCSDIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/findmtu ${STAGEDIR}${PREFIX}/bin/findmtu
+	${INSTALL_PROGRAM} ${WRKSRC}/findmtu ${STAGEDIR}${PREFIX}/bin/findmtu.real
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.freebsd ${STAGEDIR}${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"