1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/net/relayd/Makefile
Baptiste Daroussin b564653452 Only use libevent2
Remove libevent as libevent2 is providing a good compatibility interface as well
as providing better performances.
Remove custom patches from libevent2 and install libevent2 the regular way
Mark ports abusing private fields of the libevent1 API as broken
Import a patch from fedora to have honeyd working with libevent2
Remove most of the patches necessary to find the custom installation we used to
have for libevent2

With hat:	portmgr
2014-07-24 13:32:58 +00:00

56 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= relayd
PORTVERSION= 5.4.20131122
PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= GH
MAINTAINER= mm@FreeBSD.org
COMMENT= OpenBSD relay daemon
LICENSE= ISCL
GH_ACCOUNT= mmatuska
GH_COMMIT= a4f6140
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/src/usr.sbin
USES= uidfix
USE_GITHUB= yes
USE_RC_SUBR= relayd
BROKEN= Abuse evbuffer API
CFLAGS+= -I${PREFIX}/include -Wall
MAKE_ARGS+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man
USERS= _relayd
GROUPS= _relayd
OPTIONS_DEFINE= LIBEVENT_STATIC
LIBEVENT_STATIC_DESC= Build with static libevent
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MLIBEVENT_STATIC}
BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent2
MAKE_ARGS+= LIBEVENT=${LOCALBASE}/lib/libevent.a
.else
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
MAKE_ARGS+= LIBEVENT=-levent
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/relayd/relay.c \
${WRKSRC}/relayd/relayd.h \
${WRKSRC}/relayd/relayd.conf.5 \
${WRKSRC}/relayd/relayd.8
post-install:
@${INSTALL_DATA} ${WRKSRC}/../etc/relayd.conf \
${STAGEDIR}${PREFIX}/etc/relayd.conf.sample
.include <bsd.port.post.mk>