aboutsummaryrefslogtreecommitdiffstats
path: root/net/dhcprelya/Makefile
blob: 1bf2bdb3e21601b80fd8a72192118f4f88bd4cd1 (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
# New ports collection makefile for:    dhcprelya
# Date created:             17 December 2007
# Whom:                 Sergey Matveychuk <sem@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   dhcprelya
PORTVERSION=    4.2
CATEGORIES= net
MASTER_SITES=   http://semmy.ru/~sem/

MAINTAINER= sem@FreeBSD.org
COMMENT=    Lightweigh DHCP relay agent. Yandex edition

USE_RC_SUBR=    dhcprelya

PORTDOCS=   README

PLIST_FILES=    sbin/${PORTNAME} lib/${PORTNAME}_log_plugin.so \
        lib/${PORTNAME}_option82_plugin.so

OPTIONS=    RADIUS_PLUGIN "build radius plugin" off

.include <bsd.port.options.mk>

.if defined(WITH_RADIUS_PLUGIN)
PLIST_FILES+=   lib/${PORTNAME}_radius_plugin.so
LIB_DEPENDS=    freeradius-client.2:${PORTSDIR}/net/freeradius-client
MAKE_ARGS=  -DWITH_RADIUS_PLUGIN
.endif

post-patch:
    @${REINPLACE_CMD} -e 's#/usr/local#${PREFIX}#' ${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>