Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Nov 2020 07:03:31 +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: r554933 - head/dns/mydns-ng
Message-ID:  <202011120703.0AC73VSD085042@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Nov 12 07:03:31 2020
New Revision: 554933
URL: https://svnweb.freebsd.org/changeset/ports/554933

Log:
  - Unbreak the build with -fno-common (Clang 11, GCC 10)
  - Fix bogus use of capital letters in the COMMENT text
  - Unmute installation commands, wrap an overly long line
  
  PR:		249356
  Submitted by:	maintainer

Modified:
  head/dns/mydns-ng/Makefile

Modified: head/dns/mydns-ng/Makefile
==============================================================================
--- head/dns/mydns-ng/Makefile	Thu Nov 12 06:21:18 2020	(r554932)
+++ head/dns/mydns-ng/Makefile	Thu Nov 12 07:03:31 2020	(r554933)
@@ -9,7 +9,7 @@ MASTER_SITES=	SF/${PORTNAME}/mydns/${PORTVERSION}
 DISTNAME=	mydns-${PORTVERSION}
 
 MAINTAINER=	gaod@hychen.org
-COMMENT=	Next Generation DNS Server for sql based DNS services
+COMMENT=	Next generation DNS server for SQL-based DNS services
 
 LICENSE=	GPLv2
 
@@ -51,15 +51,18 @@ MYSQL_CONFIGURE_OFF=	--without-mysql
 NLS_CONFIGURE_ENABLE=	nls
 NLS_USES=		gettext
 
+post-patch:
+# Fix the build with -fno-common (for Clang 11 and GCC 10)
+	@${REINPLACE_CMD} -e '/^CONF \*Conf/d' ${WRKSRC}/src/util/util.c
+
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib
 .for f in ${DOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-	@${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${STAGEDIR}${DOCSDIR}/contrib/
-	@${INSTALL_DATA} ${WRKSRC}/contrib/*.pl ${STAGEDIR}${DOCSDIR}/contrib/
-	@${INSTALL_DATA} ${WRKSRC}/contrib/*.pm ${STAGEDIR}${DOCSDIR}/contrib/
-	@${INSTALL_DATA} ${WRKSRC}/contrib/README ${STAGEDIR}${DOCSDIR}/contrib/
-	@${STAGEDIR}${PREFIX}/sbin/mydns --dump-config > ${STAGEDIR}${PREFIX}/etc/mydns.conf.sample
+	${INSTALL_DATA} ${WRKSRC}/contrib/*.p* ${STAGEDIR}${DOCSDIR}/contrib
+	${INSTALL_DATA} ${WRKSRC}/contrib/README ${STAGEDIR}${DOCSDIR}/contrib
+	${STAGEDIR}${PREFIX}/sbin/mydns --dump-config > \
+		${STAGEDIR}${PREFIX}/etc/mydns.conf.sample
 
 .include <bsd.port.mk>



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