Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2016 16:50:14 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r416474 - head/net/chrony
Message-ID:  <201606061650.u56GoESD020158@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Jun  6 16:50:14 2016
New Revision: 416474
URL: https://svnweb.freebsd.org/changeset/ports/416474

Log:
  - Remove ONLY_FOR_ARCHS restriction as chronyd(8) runs fine on PowerPC now
  - Remove no-op OPTIONS_DEFAULT=IPV6, which was bogusly re-added in r416385
    by pi@ after it was previously removed by amdmi3@ in r416447
  - Sanitize `post-stage' target recipe (still needs more work to decouple
    extra docs and examples properly and add them to OPTIONS_DEFINE)
  
  Tested on:	Mac mini G4 (powerpc)

Modified:
  head/net/chrony/Makefile

Modified: head/net/chrony/Makefile
==============================================================================
--- head/net/chrony/Makefile	Mon Jun  6 16:42:44 2016	(r416473)
+++ head/net/chrony/Makefile	Mon Jun  6 16:50:14 2016	(r416474)
@@ -11,10 +11,6 @@ COMMENT=	System clock synchronization cl
 
 LICENSE=	GPLv2
 
-# XXX: should theoretically work on others, but at least on PowerPC it dies
-# with ``Could not open any NTP socket'' message on startup :(
-ONLY_FOR_ARCHS=	i386 amd64
-
 USES=		cpe gmake makeinfo readline
 CPE_VENDOR=	tuxfamily
 HAS_CONFIGURE=	yes
@@ -38,7 +34,6 @@ PORTEXAMPLES=	chrony.conf.example1 chron
 #  --without-tomcrypt   Don't use libtomcrypt even if it is available
 #  --disable-pps        Disable PPS API support
 OPTIONS_DEFINE=		IPV6
-OPTIONS_DEFAULT=	IPV6
 
 IPV6_CATEGORIES=	ipv6
 IPV6_CONFIGURE_OFF=	--disable-ipv6
@@ -46,12 +41,11 @@ IPV6_CONFIGURE_OFF=	--disable-ipv6
 post-stage:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chronyc
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/chronyd
-	cd ${WRKSRC}/${f} && \
-		${INSTALL_DATA} ${EXTRAPORTDOCS} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${EXTRAPORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	cd ${WRKSRC}/examples && \
-		${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
-	cd ${WRKSRC}/examples && \
-		${INSTALL_DATA} chrony.conf.example3 ${STAGEDIR}${PREFIX}/etc/chrony.conf.sample
+	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} \
+		${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/examples/chrony.conf.example3 \
+		${STAGEDIR}${PREFIX}/etc/chrony.conf.sample
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606061650.u56GoESD020158>