svn commit: r319251 - head/sysutils/metalog

Boris Samorodov bsam at FreeBSD.org
Mon May 27 14:38:08 UTC 2013


Author: bsam
Date: Mon May 27 14:38:07 2013
New Revision: 319251
URL: http://svnweb.freebsd.org/changeset/ports/319251

Log:
  . remove shlib ABI cersion from LIB_DEPENDS;
  . remove LICENSE_FILE of the standard one (GPLv2);
  . bump PORTREVISION;
  . trim Makefile headers;
  . NOPORTDOCS -> PORT_OPTIONS:MDOCS;
  . NOPORTEXAMPLES -> PORT_OPTIONS:MEXAMPLES;
  . do not run mkdir for the same directory multiple times;
  . use plain install instead of .for loops.

Modified:
  head/sysutils/metalog/Makefile

Modified: head/sysutils/metalog/Makefile
==============================================================================
--- head/sysutils/metalog/Makefile	Mon May 27 14:36:55 2013	(r319250)
+++ head/sysutils/metalog/Makefile	Mon May 27 14:38:07 2013	(r319251)
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	metalog
-# Date Created:				27 Aug 2002
-# Whom:					Sergei Kolobov <sergei at kolobov.com>
-#
+# Created by: Sergei Kolobov <sergei at kolobov.com>
 # $FreeBSD$
-#
 
 PORTNAME=	metalog
 DISTVERSION=	0.8
-PORTREVISION=	2
+PORTREVISION=	3
 PORTEPOCH=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	SF/${PORTNAME}/old
@@ -16,9 +12,8 @@ MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Modern syslogd replacement with PCRE support
 
 LICENSE=	GPLv2
-LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	pcre.3:${PORTSDIR}/devel/pcre
+LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
 
 USE_BZIP2=	yes
 USE_RC_SUBR=	${PORTNAME}
@@ -35,21 +30,21 @@ PORTDOCS=	AUTHORS NEWS README
 PORTEXAMPLES=	metalog.conf
 PLIST_FILES=	sbin/metalog
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|' ${WRKSRC}/man/*[58]
 
+.include <bsd.port.options.mk>
+
 post-install:
-.if !defined(NOPORTDOCS)
-.for doc in ${PORTDOCS}
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
-.for ex in ${PORTEXAMPLES}
-	${INSTALL_DATA} ${WRKSRC}/${ex} ${EXAMPLESDIR}
-.endfor
+	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list