Skip site navigation (1)Skip section navigation (2)
Date:      8 Apr 2003 11:43:33 -0000
From:      Sergei Kolobov <sergei@kolobov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50717: [MAINTAINER] Update sysutils/metalog to 0.7
Message-ID:  <20030408114333.78510.qmail@outpost.globcon.net>
Resent-Message-ID: <200304081150.h38BoHYu040767@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         50717
>Category:       ports
>Synopsis:       [MAINTAINER] Update sysutils/metalog to 0.7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 08 04:50:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Jan  2 03:13:48 MSK
>Description:
- Update to 0.7 and bump PORTEPOCH since 0.7 < 0.7b
- Silence configure warning by adding CONFIGURE_TARGET
- Allow user to override CPFLAGS/LDFLAGS
- Do not install yet another copy of GPL
- Use DOCSDIR/EXAMPLESDIR in pkg-plist

NOTE: this is another example of a port that can make use of 
      INSTALL_DOCS feature to simplify Makefile and changed operatation
      of DOCSDIR to simplify pkg-plist - see ports/49955 for details.
>How-To-Repeat:
>Fix:

--- metalog-0.7.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/sysutils/metalog/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	2003/02/21 13:28:46	1.4
+++ Makefile	2003/04/08 11:35:29
@@ -6,12 +6,11 @@
 #
 
 PORTNAME=	metalog
-PORTVERSION=	0.7b
+PORTVERSION=	0.7
+PORTEPOCH=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
-DISTNAME=	${PORTNAME}-${PORTVERSION:S/b/beta/}
-EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	sergei@kolobov.com
 COMMENT=	Modern syslogd replacement with PCRE support
@@ -19,20 +18,22 @@
 LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
+# Needed for metalog's configure to find installed devel/pcre port
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
 MAN8=		metalog.8
-DOCS=		COPYING NEWS README
+DOCS=		AUTHORS NEWS README
 
-.if !defined(NOPORTDOCS)
 post-install:
 	@${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/metalog.conf ${EXAMPLESDIR}
+.if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-.for file in ${DOCS}
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/sysutils/metalog/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
--- distinfo	2002/09/16 08:02:33	1.1
+++ distinfo	2003/04/08 11:35:29
@@ -1 +1 @@
-MD5 (metalog-0.7beta.tgz) = 9b6878d5aac4edcf771d95c4f857cec6
+MD5 (metalog-0.7.tar.gz) = 40940eb9829de7d5776b9bbd514f9d7e
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/sysutils/metalog/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist	2002/09/16 08:02:33	1.1
+++ pkg-plist	2003/04/08 11:35:29
@@ -1,7 +1,7 @@
 sbin/metalog
-%%PORTDOCS%%share/doc/metalog/COPYING
-%%PORTDOCS%%share/doc/metalog/NEWS
-%%PORTDOCS%%share/doc/metalog/README
-%%PORTDOCS%%@dirrm share/doc/metalog
-%%PORTDOCS%%share/examples/metalog/metalog.conf
-%%PORTDOCS%%@dirrm share/examples/metalog
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%EXAMPLESDIR%%/metalog.conf
+@dirrm %%EXAMPLESDIR%%
--- metalog-0.7.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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