Bug 56580 - Request for maintainership, patch: sysutils/fastresolve
Summary: Request for maintainership, patch: sysutils/fastresolve
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-08 01:20 UTC by Martin Matuska
Modified: 2003-09-08 12:27 UTC (History)
0 users

See Also:


Attachments
file.diff (7.54 KB, patch)
2003-09-08 01:20 UTC, Martin Matuska
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matuska 2003-09-08 01:20:09 UTC
1. I would like to take maintainership of sysutils/fastresolve
	(I already maintain some ports and I am in contact with the software author David MacKenzie)
2. The port should be moved (or at least added) to the recently created "dns" category
3. The included patch against fastresolve-2.10 does the following changes:
	a) support for BerkeleyDB 3.x, 4.0.x, 4.1.x on FreeBSD, obeys WITH_BDB_VER
	b) p5-BerkeleyDB in RUN_DEPENDS, Perl parts of fastresolve require it to run
Comment 1 Martin Matuska 2003-09-08 10:58:54 UTC
The Makefile diff was not against correct Makefile.
FIX:

diff -Nbur fastresolve.orig/Makefile fastresolve/Makefile
--- fastresolve.orig/Makefile	Mon Sep  8 11:46:51 2003
+++ fastresolve/Makefile	Mon Sep  8 11:47:17 2003
@@ -7,20 +7,39 @@
 
 PORTNAME=	fastresolve
 PORTVERSION=	2.10
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.djmnet.org/sw/dist/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	martin@tradex.sk
 COMMENT=	Programs that process web logs to get DNS and domain ownership info
 
-LIB_DEPENDS=	db3.3:${PORTSDIR}/databases/db3 \
-		adns.1:${PORTSDIR}/dns/adns
+LIB_DEPENDS=	adns.1:${PORTSDIR}/dns/adns
+RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
 
 USE_BZIP2=	yes
 USE_PERL5=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib" \
-		CXXFLAGS="-I${LOCALBASE}/include/db3 -I${LOCALBASE}/include"
+		CXXFLAGS="-I${LOCALBASE}/include" \
+		PERL=${PERL}
+USE_AUTOCONF=	yes
+
+# Default to db3
+WITH_BDB_VER?=	3
+
+.if ${WITH_BDB_VER} == 3
+LIB_DEPENDS+=	db3.3:${PORTSDIR}/databases/db3
+CONFIGURE_ARGS= --with-bdb-lib=-ldb3_cxx --with-bdb-incdir=${LOCALBASE}/include/db3
+.elif ${WITH_BDB_VER} == 4
+LIB_DEPENDS+=	db4.0:${PORTSDIR}/databases/db4
+CONFIGURE_ARGS= --with-bdb-lib=-ldb4_cxx --with-bdb-incdir=${LOCALBASE}/include/db4
+.elif ${WITH_BDB_VER} == 41
+LIB_DEPENDS+=	db41.1:${PORTSDIR}/databases/db41
+CONFIGURE_ARGS= --with-bdb-lib=-ldb41_cxx --with-bdb-incdir=${LOCALBASE}/include/db41
+.else
+.error WITH_BDB_VER must be one between 3, 4 and 41
+.endif
 
 MAN1=	dns-terror.1 btree-dump.1 convert-dom-db.1 convert-ip-db.1 \
 	expire-ip-db.1 getdominfo.1 rebuild-dom-db.1 rebuild-ip-db.1 \
@@ -35,10 +54,5 @@
 	@${INSTALL_DATA} ${WRKSRC}/doc/TODO ${DOCSDIR}
 	@${INSTALL_DATA} ${WRKSRC}/doc/timings ${DOCSDIR}
 .endif
-
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "If you want to use the convert-ip-db script you must"
-	@${ECHO_MSG} "install the databases/p5-BerkeleyDB port"
-	@${ECHO_MSG} ""
 
 .include <bsd.port.mk>
Comment 2 Sergey A. Osokin freebsd_committer freebsd_triage 2003-09-08 12:26:32 UTC
State Changed
From-To: open->closed

Committed with little modification, thanks!