2008-04-29 09:35:14 +02:00
|
|
|
# New ports collection makefile for: unbound
|
|
|
|
# Date created: 25 Apr 2008
|
|
|
|
# Whom: Sergey Matveychuk <sem@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= unbound
|
2008-05-21 19:12:48 +02:00
|
|
|
PORTVERSION= 1.0.0
|
2008-04-29 09:35:14 +02:00
|
|
|
CATEGORIES= dns
|
|
|
|
MASTER_SITES= http://unbound.net/downloads/
|
|
|
|
|
|
|
|
MAINTAINER= sem@FreeBSD.org
|
|
|
|
COMMENT= A validating, recursive, and caching DNS resolver
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-04-29 10:00:03 +02:00
|
|
|
USE_LDCONFIG= yes
|
2008-04-29 09:35:14 +02:00
|
|
|
|
|
|
|
USE_RC_SUBR= unbound
|
|
|
|
|
|
|
|
MAN1= unbound-host.1
|
|
|
|
MAN3= libunbound.3
|
|
|
|
MAN5= unbound.conf.5
|
|
|
|
MAN8= unbound.8 unbound-checkconf.8
|
|
|
|
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
|
|
|
|
|
|
|
OPTIONS= LIBEVENT "is useful when using many (10000) outgoing ports" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_LIBEVENT)
|
|
|
|
LIB_DEPENDS+= event:${PORTSDIR}/devel/libevent
|
|
|
|
CONFIGURE_ARGS+= --with-libevent=${PREFIX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's#/usr/local/etc/unbound/unbound.pid#/var/run/unbound/unbound.pid#' ${WRKSRC}/doc/example.conf ${WRKSRC}/doc/unbound.conf.5
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
2008-05-07 13:33:37 +02:00
|
|
|
post-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
2008-04-29 09:35:14 +02:00
|
|
|
.include <bsd.port.post.mk>
|