mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= relayd
|
|
PORTVERSION= 5.4.20131122
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= GH
|
|
|
|
MAINTAINER= mm@FreeBSD.org
|
|
COMMENT= OpenBSD relay daemon
|
|
|
|
LICENSE= BSD
|
|
|
|
GH_ACCOUNT= mmatuska
|
|
GH_COMMIT= a4f6140
|
|
|
|
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/src/usr.sbin
|
|
USE_GITHUB= yes
|
|
USE_RC_SUBR= relayd
|
|
|
|
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/libevent
|
|
MAKE_ARGS+= LIBEVENT=${LOCALBASE}/lib/libevent.a
|
|
.else
|
|
LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent
|
|
MAKE_ARGS+= LIBEVENT=-levent
|
|
.endif
|
|
|
|
.if ${OSVERSION} < 800041
|
|
BROKEN= does not build on FreeBSD 7.X
|
|
.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
|
|
@${CP} -n ${WRKSRC}/../etc/relayd.conf \
|
|
${STAGEDIR}${PREFIX}/etc/relayd.conf || ${TRUE}
|
|
|
|
.include <bsd.port.post.mk>
|
|
|