openbsd-ports/net/zebra/Makefile

63 lines
1.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.23 2002/07/10 20:14:45 mickey Exp $
2000-01-08 09:01:53 -05:00
# KAME Id: Makefile,v 1.5 1999/09/13 16:27:41 itojun Exp
# Originally by: peter.galbavy@knowledge.com
2000-01-08 09:01:53 -05:00
COMMENT= "multi-threaded routing daemon"
DISTNAME= zebra-0.93a
2000-01-08 09:01:53 -05:00
CATEGORIES= net
Update to zebra-0.92; itojun (via Jakob in Helsinki) OK OpenBSD port changes: FLAVOR=snmp now works vtysh now works Also, OpenBD specific fixes not listed below include a patch to correctly get all interfaces from the kernel. Changelog from e-mail: * Changes in zebra-0.92 ** Overall security is improved. Default umask is 0077. * Changes in ripd ** If output interface is in simple password authentication mode, substruct one from rtemax. * Changes in bgpd ** IPv4 multicast and IPv6 unicast configuration is changed to so called new config. All of AFI and SAFI specific configuration is moved to "address-family" node. When you have many IPv6 only configuration, you will see many "no neighbor X:X::X:X activate" line in your configuration to disable IPv4 unicast NLRI exchange. In that case please use "no bgp default ipv4-unicast" command to suppress the output. Until zebra-0.93, old config is still left for compatibility. Old config ========== router bgp 7675 bgp router-id 10.0.0.1 redistribute connected network 192.168.0.0/24 neighbor 10.0.0.2 remote-as 7675 ipv6 bgp network 3ffe:506::/33 ipv6 bgp network 3ffe:1800:e800::/40 ipv6 bgp aggregate-address 3ffe:506::/32 ipv6 bgp redistribute connected ipv6 bgp neighbor 3ffe:506:1000::2 remote-as 1 New config ========== router bgp 7675 bgp router-id 10.0.0.1 network 192.168.0.0/24 redistribute connected neighbor 10.0.0.2 remote-as 7675 neighbor 3ffe:506:1000::2 remote-as 1 no neighbor 3ffe:506:1000::2 activate ! address-family ipv6 network 3ffe:506::/33 network 3ffe:1800:e800::/40 aggregate-address 3ffe:506::/32 redistribute connected neighbor 3ffe:506:1000::2 activate exit-address-family * Changes in ospfd ** Internal interface treatment is changed. Now ospfd can handle multiple IP address for an interface. ** Redistribution of loopback interface's address works fine.
2001-08-16 03:30:39 -04:00
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/ \
ftp://ftp.knowledge.com/pub/mirrors/zebra/ \
ftp://ftp.ripe.net/mirrors/sites/ftp.zebra.org/pub/zebra/ \
ftp://ftp.pop-pr.rnp.br/pub/GNU/ftp.zebra.org/zebra/ \
ftp://ftp.clear.net.nz/pub/zebra/ \
ftp://ftp.crc.ca/pub/packages/network/zebra/ \
ftp://ftp.sunet.se/pub/network/zebra/ \
ftp://ftp.styx.net/mirrors/zebra/
2000-01-08 09:01:53 -05:00
HOMEPAGE= http://www.zebra.org/
2000-10-22 10:02:46 -04:00
MAINTAINER= Jun-ichiro itojun Hagino <itojun@itojun.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-03-09 18:50:17 -05:00
# you might need debugging, it's a developer release !
#CFLAGS+= -g
USE_GMAKE= Yes
SYSCONFDIR= /etc/zebra
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
Update to zebra-0.92; itojun (via Jakob in Helsinki) OK OpenBSD port changes: FLAVOR=snmp now works vtysh now works Also, OpenBD specific fixes not listed below include a patch to correctly get all interfaces from the kernel. Changelog from e-mail: * Changes in zebra-0.92 ** Overall security is improved. Default umask is 0077. * Changes in ripd ** If output interface is in simple password authentication mode, substruct one from rtemax. * Changes in bgpd ** IPv4 multicast and IPv6 unicast configuration is changed to so called new config. All of AFI and SAFI specific configuration is moved to "address-family" node. When you have many IPv6 only configuration, you will see many "no neighbor X:X::X:X activate" line in your configuration to disable IPv4 unicast NLRI exchange. In that case please use "no bgp default ipv4-unicast" command to suppress the output. Until zebra-0.93, old config is still left for compatibility. Old config ========== router bgp 7675 bgp router-id 10.0.0.1 redistribute connected network 192.168.0.0/24 neighbor 10.0.0.2 remote-as 7675 ipv6 bgp network 3ffe:506::/33 ipv6 bgp network 3ffe:1800:e800::/40 ipv6 bgp aggregate-address 3ffe:506::/32 ipv6 bgp redistribute connected ipv6 bgp neighbor 3ffe:506:1000::2 remote-as 1 New config ========== router bgp 7675 bgp router-id 10.0.0.1 network 192.168.0.0/24 redistribute connected neighbor 10.0.0.2 remote-as 7675 neighbor 3ffe:506:1000::2 remote-as 1 no neighbor 3ffe:506:1000::2 activate ! address-family ipv6 network 3ffe:506::/33 network 3ffe:1800:e800::/40 aggregate-address 3ffe:506::/32 redistribute connected neighbor 3ffe:506:1000::2 activate exit-address-family * Changes in ospfd ** Internal interface treatment is changed. Now ospfd can handle multiple IP address for an interface. ** Redistribution of loopback interface's address works fine.
2001-08-16 03:30:39 -04:00
CONFIGURE_ARGS+= --enable-vtysh
CONFIGURE_ENV= LIBS=-lcurses
2000-08-23 12:06:03 -04:00
FLAVORS= snmp
FLAVOR?=
.if ${FLAVOR:L:Msnmp}
Update to zebra-0.92; itojun (via Jakob in Helsinki) OK OpenBSD port changes: FLAVOR=snmp now works vtysh now works Also, OpenBD specific fixes not listed below include a patch to correctly get all interfaces from the kernel. Changelog from e-mail: * Changes in zebra-0.92 ** Overall security is improved. Default umask is 0077. * Changes in ripd ** If output interface is in simple password authentication mode, substruct one from rtemax. * Changes in bgpd ** IPv4 multicast and IPv6 unicast configuration is changed to so called new config. All of AFI and SAFI specific configuration is moved to "address-family" node. When you have many IPv6 only configuration, you will see many "no neighbor X:X::X:X activate" line in your configuration to disable IPv4 unicast NLRI exchange. In that case please use "no bgp default ipv4-unicast" command to suppress the output. Until zebra-0.93, old config is still left for compatibility. Old config ========== router bgp 7675 bgp router-id 10.0.0.1 redistribute connected network 192.168.0.0/24 neighbor 10.0.0.2 remote-as 7675 ipv6 bgp network 3ffe:506::/33 ipv6 bgp network 3ffe:1800:e800::/40 ipv6 bgp aggregate-address 3ffe:506::/32 ipv6 bgp redistribute connected ipv6 bgp neighbor 3ffe:506:1000::2 remote-as 1 New config ========== router bgp 7675 bgp router-id 10.0.0.1 network 192.168.0.0/24 redistribute connected neighbor 10.0.0.2 remote-as 7675 neighbor 3ffe:506:1000::2 remote-as 1 no neighbor 3ffe:506:1000::2 activate ! address-family ipv6 network 3ffe:506::/33 network 3ffe:1800:e800::/40 aggregate-address 3ffe:506::/32 redistribute connected neighbor 3ffe:506:1000::2 activate exit-address-family * Changes in ospfd ** Internal interface treatment is changed. Now ospfd can handle multiple IP address for an interface. ** Redistribution of loopback interface's address works fine.
2001-08-16 03:30:39 -04:00
LIB_DEPENDS= snmp.42::net/ucd-snmp
2000-08-23 12:06:03 -04:00
CONFIGURE_ARGS+= --enable-snmp
.else
CONFIGURE_ARGS+= --disable-snmp
2000-08-23 12:06:03 -04:00
.endif
post-extract:
.for f in vtysh.1 bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8 zebra.info
@cd ${WRKSRC}/doc; sed \
-e s#/usr/local/etc#@sysconfdir@#g \
-e s#/usr/local/sbin#@prefix@/sbin#g \
${f} > ${f}.in && \
rm -f ${f}
.endfor
2000-08-23 12:06:03 -04:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zebra
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/zebra
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/zebra
${INSTALL_DATA} ${WRKINST}/etc/zebra/* ${PREFIX}/share/examples/zebra
2000-08-23 12:06:03 -04:00
.include <bsd.port.mk>