From nobody@www.freebsd.org  Wed May 29 15:03:59 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 90F4037B40F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 29 May 2002 15:03:56 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g4TM3uhG033281
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 29 May 2002 15:03:56 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g4TM3uaF033280;
	Wed, 29 May 2002 15:03:56 -0700 (PDT)
Message-Id: <200205292203.g4TM3uaF033280@www.freebsd.org>
Date: Wed, 29 May 2002 15:03:56 -0700 (PDT)
From: KATO Tsuguru <tkato@prontomail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: archivers/dact
X-Send-Pr-Version: www-1.0

>Number:         38704
>Category:       ports
>Synopsis:       Update port: archivers/dact
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 29 15:10:01 PDT 2002
>Closed-Date:    Thu May 30 11:01:31 PDT 2002
>Last-Modified:  Thu May 30 11:01:31 PDT 2002
>Originator:     KATO Tsuguru
>Release:        4.5-RELEASE i386
>Organization:
>Environment:
>Description:
- Conditionalize dependency for archivers/bzip2
- Support install macros

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/archivers/dact/Makefile archivers/dact/Makefile
--- /usr/ports/archivers/dact/Makefile	Thu May  2 12:55:26 2002
+++ archivers/dact/Makefile	Tue May 28 04:05:47 2002
@@ -8,19 +8,28 @@
 
 PORTNAME=	dact
 PORTVERSION=	0.8.11
+PORTREVISION=	1
 CATEGORIES=	archivers
 MASTER_SITES=	http://www.rkeene.org/devel/
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	bz2:${PORTSDIR}/archivers/bzip2 \
-		mcrypt:${PORTSDIR}/security/libmcrypt
+LIB_DEPENDS=	mcrypt.7:${PORTSDIR}/security/libmcrypt
+.if !exists(/usr/bin/bzip2)
+LIB_DEPENDS+=	bz2.1:${PORTSDIR}/archivers/bzip2
+.endif
 
+USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
-USE_GMAKE=	yes
 
 MAN1=	dact.1
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/dact ${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/dact.conf ${PREFIX}/etc
+	${INSTALL_MAN} ${WRKSRC}/Docs/dact.1 ${MANPREFIX}/man/man1
 
 .include <bsd.port.mk>

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Thu May 30 11:01:10 PDT 2002 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38704 
>Unformatted:
