blob: 1d899d5e412507c9d1f48b1a6bd8e06c00d1f37d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Created by: Jun Kuriyama <kuriyama@FreeBSD.org>
# $FreeBSD$
PORTNAME= relayd
PORTVERSION= 5.2.20121122
CATEGORIES= net
MASTER_SITES= https://github.com/downloads/mmatuska/relayd/
FETCH_ARGS= -pRr
MASTER_SITE_SUBDIR= mm
MAINTAINER= mm@FreeBSD.org
COMMENT= OpenBSD relay daemon
LICENSE= BSD
DISTNAME= ${PORTNAME}-${PORTVERSION}
USE_BZIP2= yes
MANCOMPRESSED= yes
WRKSRC= ${WRKDIR}/src/usr.sbin
MAN5= relayd.conf.5
MAN8= relayctl.8 relayd.8
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 \
${PREFIX}/etc/relayd.conf.sample
@${CP} -n ${PREFIX}/etc/relayd.conf.sample \
${PREFIX}/etc/relayd.conf
.include <bsd.port.post.mk>
|