Bug 174700 - [patch] sysutils/sleuthkit: register optional dependency on libewf
Summary: [patch] sysutils/sleuthkit: register optional dependency on libewf
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: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-25 11:20 UTC by Antoine Brodin
Modified: 2013-01-03 15:50 UTC (History)
0 users

See Also:


Attachments
sleuthkit.diff (756 bytes, patch)
2012-12-25 11:20 UTC, Antoine Brodin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Brodin freebsd_committer freebsd_triage 2012-12-25 11:20:00 UTC
If libewf is installed, the sleuthkit will be linked against it but dependency will not be registered.
Convert DOCS to options ng too.
Comment 1 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2013-01-03 14:53:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rm

I will take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-01-03 15:40:24 UTC
Author: rm
Date: Thu Jan  3 15:40:11 2013
New Revision: 309887
URL: http://svnweb.freebsd.org/changeset/ports/309887

Log:
  - register optional dependency on libewf (default on)
  - convert to optionsng (PORTDOCS case)
  - bump PORTREVISION
  - pass maintainership to submitter
  
  PR:		174700
  Submitted by:	antoine

Modified:
  head/sysutils/sleuthkit/Makefile

Modified: head/sysutils/sleuthkit/Makefile
==============================================================================
--- head/sysutils/sleuthkit/Makefile	Thu Jan  3 15:34:02 2013	(r309886)
+++ head/sysutils/sleuthkit/Makefile	Thu Jan  3 15:40:11 2013	(r309887)
@@ -3,11 +3,11 @@
 
 PORTNAME=	sleuthkit
 PORTVERSION=	4.0.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils security
 MASTER_SITES=	SF
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	antoine@FreeBSD.org
 COMMENT=	Tools and library for filesystem forensic analysis
 
 RUN_DEPENDS=	p5-DateTime-TimeZone>=0:${PORTSDIR}/devel/p5-DateTime-TimeZone
@@ -26,8 +26,21 @@ MAN1=		blkcalc.1 blkcat.1 blkls.1 \
 		mmls.1 mmstat.1 mmcat.1 sigfind.1 sorter.1 \
 		tsk_comparedir.1 tsk_gettimes.1 tsk_loaddb.1 tsk_recover.1
 
+OPTIONS_DEFINE=	DOCS LIBEWF
+LIBEWF_DESC=	Build with EWF support
+OPTIONS_DEFAULT=LIBEWF
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MLIBEWF}
+LIB_DEPENDS+=		ewf:${PORTSDIR}/devel/libewf
+CONFIGURE_ARGS+=	--with-libewf=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=	--without-libewf
+.endif
+
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 .endif
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2013-01-03 15:50:38 UTC
State Changed
From-To: open->closed

Committed, thank you!