View | Details | Raw Unified | Return to bug 235088 | Differences between
and this patch

Collapse All | Expand All

(-)net/relayd/Makefile (-10 / +19 lines)
Lines 1-46 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	relayd
3
PORTNAME=	relayd
4
PORTVERSION=	5.5.20140810
4
PORTVERSION=	5.5.20140810
5
PORTREVISION=	3
5
PORTREVISION=	4
6
CATEGORIES=	net
6
CATEGORIES=	net
7
7
8
MAINTAINER=	mm@FreeBSD.org
8
MAINTAINER=	mm@FreeBSD.org
9
COMMENT=	OpenBSD relay daemon
9
COMMENT=	OpenBSD relay daemon
10
10
11
LICENSE=	ISCL
11
LICENSE=	ISCL
12
12
13
GH_ACCOUNT=	mmatuska
14
15
USES=		uidfix ssl
13
USES=		uidfix ssl
16
USE_GITHUB=	yes
14
USE_GITHUB=	yes
17
USE_RC_SUBR=	relayd
15
USE_RC_SUBR=	relayd
18
WRKSRC_SUBDIR=	src/usr.sbin
19
16
20
CFLAGS+=	-Wall
17
GH_ACCOUNT=	mmatuska
21
18
19
WRKSRC_SUBDIR=	src/usr.sbin
20
CFLAGS+=	-Wall
22
MAKE_ARGS+=	BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man
21
MAKE_ARGS+=	BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man
23
22
24
USERS=		_relayd
23
USERS=		_relayd
25
GROUPS=		_relayd
24
GROUPS=		_relayd
26
25
27
BROKEN_FreeBSD_12=	does not build, OpenSSL 1.1 unsupported	
28
29
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
30
27
31
.if ${OSVERSION} >= 1300000
28
# OpenSSL 1.1.1 made into FreeBSD's base on OSVERSION 1200085 (r339270)
32
BROKEN=	does not build, OpenSSL 1.1 unsupported	
29
.if ${OSVERSION} >= 1200085
30
# using += here silents portlint.
31
BUILD_DEPENDS+=	${LOCALBASE}/bin/openssl:security/openssl
32
RUN_DEPENDS+=	${BUILD_DEPENDS}
33
# handle conflict against libevent: incomplete definition of type 'struct evbuffer'
34
CONFLICTS_BUILD=	libevent-2.*
35
# USES=localbase would add '-isystem' to these flags, and we do not want that.
36
CFLAGS+=	-I${LOCALBASE}/include
37
CPPFLAGS+=	-I${LOCALBASE}/include
38
CXXFLAGS+=	-I${LOCALBASE}/include
39
LDFLAGS+=	-L${LOCALBASE}/lib
40
# workaround changing DEFAULT_VERSIONS for SSL, only.
41
MAKE_ENV+=	SSL_DEFAULT=openssl USE_OPENSSL_RPATH=yes
33
.endif
42
.endif
34
43
35
post-patch:
44
post-patch:
36
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
45
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
37
		${WRKSRC}/relayd/relay.c \
46
		${WRKSRC}/relayd/relay.c \
38
		${WRKSRC}/relayd/relayd.h \
47
		${WRKSRC}/relayd/relayd.h \
39
		${WRKSRC}/relayd/relayd.conf.5 \
48
		${WRKSRC}/relayd/relayd.conf.5 \
40
		${WRKSRC}/relayd/relayd.8
49
		${WRKSRC}/relayd/relayd.8
41
50
42
post-install:
51
post-install:
43
	@${INSTALL_DATA} ${WRKSRC}/../etc/relayd.conf \
52
	${INSTALL_DATA} ${WRKSRC}/../etc/relayd.conf \
44
		${STAGEDIR}${PREFIX}/etc/relayd.conf.sample
53
		${STAGEDIR}${PREFIX}/etc/relayd.conf.sample
45
54
46
.include <bsd.port.post.mk>
55
.include <bsd.port.post.mk>

Return to bug 235088