ports/168252: [PATCH] misc/mbuffer: fix mhash support
Martin Matuska
mm at FreeBSD.org
Wed May 23 10:40:02 UTC 2012
>Number: 168252
>Category: ports
>Synopsis: [PATCH] misc/mbuffer: fix mhash support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 23 10:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 9.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 9.0-STABLE FreeBSD 9.0-STABLE #1 r235218M: Thu May 10 12:01:50 CEST
>Description:
mbuffer prefers mhash, if available - make it selectable and enable by default
otherwise mbuffer may link to mhash without the port setting dependencies
Port maintainer (rafan at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: CVS)
>How-To-Repeat:
>Fix:
--- mbuffer-2011.07.24_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/misc/mbuffer/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile 14 Jan 2012 16:48:42 -0000 1.11
+++ Makefile 23 May 2012 10:25:39 -0000
@@ -7,6 +7,7 @@
PORTNAME= mbuffer
PORTVERSION= 2011.07.24
+PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.maier-komor.de/software/mbuffer/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
@@ -26,6 +27,19 @@
MAN1= ${PORTNAME}.1
+OPTIONS= MHASH "Use mhash for hash generation" on
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_MHASH)
+LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+.else
+CONFIGURE_ARGS+= ac_cv_search_mhash_init=no
+USE_OPENSSL= yes
+.endif
+
.include <bsd.port.pre.mk>
post-patch:
--- mbuffer-2011.07.24_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list