2005-05-12 19:25:55 +00:00
|
|
|
# New ports collection makefile for: bird
|
|
|
|
# Date created: 12th May 2005
|
|
|
|
# Whom: Pav Lucistnik <pav@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bird
|
2011-08-08 12:45:45 +00:00
|
|
|
PORTVERSION= 1.3.2
|
2005-05-12 19:25:55 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://bird.network.cz/pub/bird/
|
|
|
|
|
2011-06-02 19:52:40 +00:00
|
|
|
MAINTAINER= melifaro@ipfw.ru
|
2010-06-28 07:58:08 +00:00
|
|
|
COMMENT= Dynamic IP routing daemon (IPv4 version)
|
2005-05-12 19:25:55 +00:00
|
|
|
|
2007-10-17 10:13:01 +00:00
|
|
|
USE_BISON= build
|
2005-05-12 19:25:55 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2011-06-02 19:52:40 +00:00
|
|
|
OPTIONS= FIBS "Enable multiple fib support" Off \
|
2011-06-26 04:59:02 +00:00
|
|
|
CONFIG_INCLUDES "Permit config 'include' keyword" Off
|
2011-06-02 19:52:40 +00:00
|
|
|
|
2009-06-06 15:50:58 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2010-06-28 07:58:08 +00:00
|
|
|
USE_RC_SUBR= bird
|
|
|
|
|
2011-06-02 19:52:40 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_FIBS)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/fibs.diff
|
|
|
|
.endif
|
|
|
|
|
2011-06-26 04:59:02 +00:00
|
|
|
.if defined(WITH_CONFIG_INCLUDES)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-config_includes.diff
|
2011-06-02 19:52:40 +00:00
|
|
|
.endif
|
|
|
|
|
2005-05-12 19:25:55 +00:00
|
|
|
post-install:
|
2010-06-28 07:58:08 +00:00
|
|
|
@if [ ! -f ${PREFIX}/etc/bird.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/bird.conf.example ${PREFIX}/etc/bird.conf ; \
|
2011-06-26 04:59:02 +00:00
|
|
|
${CHMOD} 0640 ${PREFIX}/etc/bird.conf ; \
|
2005-05-12 19:25:55 +00:00
|
|
|
fi
|
2011-06-26 04:59:02 +00:00
|
|
|
.if defined(WITH_FIBS)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} =====================================================================
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} " WARNING: Please take a look on kern/134931"
|
|
|
|
@${ECHO_MSG} " WARNING: before using multiple fibs in production!"
|
2011-08-08 12:45:45 +00:00
|
|
|
@${ECHO_MSG} " 8.2-STABLE kernel patch available here:"
|
|
|
|
@${ECHO_MSG} " http://static.ipfw.ru/patches/rtsock_82S-20110725.diff"
|
2011-06-26 04:59:02 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} =====================================================================
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
2005-05-12 19:25:55 +00:00
|
|
|
|
2011-06-02 19:52:40 +00:00
|
|
|
.include <bsd.port.post.mk>
|