aboutsummaryrefslogtreecommitdiffstats
path: root/net/relayd/Makefile
blob: b0202a1cc1ddf1aea653e5b9813a3a6284736760 (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
# $FreeBSD$

PORTNAME=   relayd
PORTVERSION=    5.5.20140810
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   GHL

MAINTAINER= mm@FreeBSD.org
COMMENT=    OpenBSD relay daemon

LICENSE=    ISCL

GH_ACCOUNT= mmatuska
GH_COMMIT=  49d1afd

WRKSRC=     ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/src/usr.sbin
USES=       uidfix
USE_GITHUB= yes
USE_OPENSSL=    yes
USE_RC_SUBR=    relayd

CFLAGS+=    -Wall

MAKE_ARGS+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man

USERS=      _relayd
GROUPS=     _relayd

.include <bsd.port.pre.mk>

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>