mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
89f9702b7e
With hat: portmgr Sponsored by: Absolight
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# Created by: Pav Lucistnik <pav@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bird
|
|
PORTVERSION= 1.6.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://bird.network.cz/pub/bird/ \
|
|
http://bird.mpls.in/distfiles/bird/
|
|
|
|
MAINTAINER= melifaro@ipfw.ru
|
|
COMMENT?= Dynamic IP routing daemon (${FLAVOR:Uipv4:S/ip/IP/} version)
|
|
|
|
LICENSE= GPLv2
|
|
|
|
FLAVORS= ipv4 ipv6
|
|
ipv6_PKGNAMESUFFIX= 6
|
|
|
|
USES= bison gmake ncurses readline
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --localstatedir=/var
|
|
|
|
OPTIONS_DEFINE?= FIREWALL
|
|
FIREWALL_DESC= Enable firewall protocol
|
|
NO_OPTIONS_SORT= yes
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
USE_RC_SUBR= ${PKGBASE}
|
|
|
|
.if ${FLAVOR:U} == ipv6
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
PLIST_SUB= VER=6
|
|
.else
|
|
PLIST_SUB?= VER=""
|
|
.endif
|
|
|
|
FIREWALL_EXTRA_PATCHES+= ${FILESDIR}/firewall_support.patch
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
.if ${PORT_OPTIONS:MFIREWALL}
|
|
@${REINPLACE_CMD} -e 's/^\(all_protocols=".*\)"/\1 firewall"/' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e '/proto_build(&proto_device);/{G;s/$$/ proto_build(\&proto_firewall);/;}' ${WRKSRC}/nest/proto.c
|
|
@${REINPLACE_CMD} -e '/CONFIG_PIPE/{G;s/$$/#undef CONFIG_FIREWALL_IPSET/;}' ${WRKSRC}/sysdep/autoconf.h.in
|
|
@${REINPLACE_CMD} -e '/CONFIG_PIPE/{G;s/$$/#undef CONFIG_FIREWALL_PF/;}' ${WRKSRC}/sysdep/autoconf.h.in
|
|
@${REINPLACE_CMD} -e '/CONFIG_PIPE/{G;s/$$/#undef CONFIG_FIREWALL_IPFW/;}' ${WRKSRC}/sysdep/autoconf.h.in
|
|
@${REINPLACE_CMD} -e '/CONFIG_PIPE/{G;s/$$/#undef CONFIG_FIREWALL/;}' ${WRKSRC}/sysdep/autoconf.h.in
|
|
@${REINPLACE_CMD} -e 's/\(proto_bfd\)/\1, proto_firewall/' ${WRKSRC}/nest/protocol.h
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|