2008-01-20 21:38:26 +00:00
|
|
|
# New ports collection makefile for: relayd
|
|
|
|
# Date created: 5 Jun 2007
|
|
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= relayd
|
2012-03-05 16:29:08 +00:00
|
|
|
PORTVERSION= 5.1.20120305
|
2008-01-20 21:38:26 +00:00
|
|
|
CATEGORIES= net
|
2011-09-07 12:14:40 +00:00
|
|
|
MASTER_SITES= https://github.com/downloads/mmatuska/relayd/
|
|
|
|
|
|
|
|
FETCH_ARGS= -pRr
|
2010-05-28 11:59:50 +00:00
|
|
|
MASTER_SITE_SUBDIR= mm
|
2008-01-20 21:38:26 +00:00
|
|
|
|
2010-05-28 11:59:50 +00:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
|
|
|
COMMENT= OpenBSD relay daemon
|
2008-01-20 21:38:26 +00:00
|
|
|
|
2011-03-23 15:53:22 +00:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2011-05-22 22:14:35 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
2010-05-28 11:59:50 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
MANCOMPRESSED= yes
|
2008-01-20 21:38:26 +00:00
|
|
|
|
2010-06-09 20:58:26 +00:00
|
|
|
WRKSRC= ${WRKDIR}/src/usr.sbin
|
2008-01-20 21:38:26 +00:00
|
|
|
MAN5= relayd.conf.5
|
|
|
|
MAN8= relayctl.8 relayd.8
|
|
|
|
USE_RC_SUBR= relayd
|
|
|
|
|
2010-06-09 20:58:26 +00:00
|
|
|
CFLAGS+= -I${PREFIX}/include -Wall
|
2008-01-20 21:38:26 +00:00
|
|
|
|
2010-05-28 11:59:50 +00:00
|
|
|
MAKE_ARGS+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man
|
|
|
|
|
2011-06-06 18:19:50 +00:00
|
|
|
USERS= _relayd
|
|
|
|
GROUPS= _relayd
|
2008-01-20 21:38:26 +00:00
|
|
|
|
2010-05-28 11:59:50 +00:00
|
|
|
OPTIONS= LIBEVENT_STATIC "Build with static libevent" Off
|
2008-01-20 21:38:26 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-05-28 11:59:50 +00:00
|
|
|
.if defined(WITH_LIBEVENT_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
|
|
|
|
|
2011-06-08 17:38:08 +00:00
|
|
|
.if ${OSVERSION} < 800041
|
|
|
|
BROKEN= does not build on FreeBSD 7.X
|
2008-01-20 21:38:26 +00:00
|
|
|
.endif
|
|
|
|
|
2010-05-29 08:44:58 +00:00
|
|
|
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:
|
2010-06-09 20:58:26 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../etc/relayd.conf \
|
|
|
|
${PREFIX}/etc/relayd.conf.sample
|
2011-09-07 12:14:40 +00:00
|
|
|
@${CP} -n ${PREFIX}/etc/relayd.conf.sample \
|
|
|
|
${PREFIX}/etc/relayd.conf
|
2010-05-29 08:44:58 +00:00
|
|
|
|
2008-01-20 21:38:26 +00:00
|
|
|
.include <bsd.port.post.mk>
|