ports/174700: [patch] sysutils/sleuthkit: register optional dependency on libewf
Antoine Brodin
antoine at FreeBSD.org
Tue Dec 25 11:20:00 UTC 2012
>Number: 174700
>Category: ports
>Synopsis: [patch] sysutils/sleuthkit: register optional dependency on libewf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 25 11:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Antoine Brodin
>Release: FreeBSD 10.0-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD barton.dreadbsd.org. 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r243787M: Sun Dec 2 18:42:54 CET 2012 root at barton.dreadbsd.org.:/usr/obj/usr/src/sys/MYGENERICFAST i386
>Description:
If libewf is installed, the sleuthkit will be linked against it but dependency will not be registered.
Convert DOCS to options ng too.
>How-To-Repeat:
>Fix:
--- sleuthkit.diff begins here ---
Index: sleuthkit/Makefile
===================================================================
--- sleuthkit/Makefile (revision 309472)
+++ sleuthkit/Makefile (working copy)
@@ -23,8 +23,21 @@
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
--- sleuthkit.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list