2007-12-17 16:41:50 +00:00
|
|
|
# New ports collection makefile for: dhcprelya
|
|
|
|
# Date created: 17 December 2007
|
|
|
|
# Whom: Sergey Matveychuk <sem@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dhcprelya
|
2012-03-26 11:47:27 +00:00
|
|
|
PORTVERSION= 4.2.2
|
2007-12-17 16:41:50 +00:00
|
|
|
CATEGORIES= net
|
2012-03-07 14:52:40 +00:00
|
|
|
MASTER_SITES= http://semmy.ru/~sem/
|
2007-12-17 16:41:50 +00:00
|
|
|
|
|
|
|
MAINTAINER= sem@FreeBSD.org
|
2012-07-29 11:17:02 +00:00
|
|
|
COMMENT= Lightweight DHCP relay agent. Yandex edition
|
2007-12-17 16:41:50 +00:00
|
|
|
|
|
|
|
USE_RC_SUBR= dhcprelya
|
|
|
|
|
|
|
|
PORTDOCS= README
|
|
|
|
|
2009-06-17 12:57:04 +00:00
|
|
|
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
|
2007-12-17 16:41:50 +00:00
|
|
|
|
2009-06-29 13:06:43 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's#/usr/local#${PREFIX}#' ${WRKSRC}/Makefile
|
|
|
|
|
2007-12-17 16:41:50 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2009-01-05 21:36:39 +00:00
|
|
|
.include <bsd.port.mk>
|