2007-09-15 22:36:51 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.31 2007/09/15 22:37:00 merdely Exp $
|
2000-01-08 14:01:53 +00:00
|
|
|
# KAME Id: Makefile,v 1.5 1999/09/13 16:27:41 itojun Exp
|
2000-10-03 06:27:05 +00:00
|
|
|
# Originally by: peter.galbavy@knowledge.com
|
2000-01-08 14:01:53 +00:00
|
|
|
|
2007-09-15 22:36:51 +00:00
|
|
|
COMMENT= multi-threaded routing daemon
|
2001-04-02 02:09:15 +00:00
|
|
|
|
2002-07-10 20:14:45 +00:00
|
|
|
DISTNAME= zebra-0.93a
|
2005-06-09 20:44:08 +00:00
|
|
|
PKGNAME= ${DISTNAME}p3
|
2000-01-08 14:01:53 +00:00
|
|
|
CATEGORIES= net
|
2001-08-16 07:30:39 +00:00
|
|
|
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/ \
|
2002-07-10 20:14:45 +00:00
|
|
|
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 14:01:53 +00:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.zebra.org/
|
|
|
|
|
2000-10-22 14:02:46 +00:00
|
|
|
MAINTAINER= Jun-ichiro itojun Hagino <itojun@itojun.org>
|
2000-06-26 08:51:39 +00:00
|
|
|
|
2000-04-24 01:44:58 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-16 00:31:20 +00:00
|
|
|
WANTLIB= c curses m ncurses readline
|
2000-03-09 23:50:17 +00:00
|
|
|
|
2000-08-25 01:18:20 +00:00
|
|
|
# you might need debugging, it's a developer release !
|
|
|
|
#CFLAGS+= -g
|
|
|
|
|
2002-07-10 20:14:45 +00:00
|
|
|
USE_GMAKE= Yes
|
2003-05-12 18:02:44 +00:00
|
|
|
CONFDIR= ${SYSCONFDIR}/zebra
|
2001-04-02 15:38:52 +00:00
|
|
|
SEPARATE_BUILD= concurrent
|
2003-05-12 18:02:44 +00:00
|
|
|
CONFIGURE_STYLE= gnu old
|
|
|
|
CONFIGURE_ARGS+= --enable-vtysh --sysconfdir=${CONFDIR}
|
2001-08-16 07:30:39 +00:00
|
|
|
CONFIGURE_ENV= LIBS=-lcurses
|
2000-08-25 01:18:20 +00:00
|
|
|
|
2000-08-23 16:06:03 +00:00
|
|
|
FLAVORS= snmp
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msnmp}
|
2006-08-03 23:15:57 +00:00
|
|
|
LIB_DEPENDS= netsnmp.>=6.2::net/net-snmp
|
2000-08-23 16:06:03 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-snmp
|
2004-12-16 00:31:20 +00:00
|
|
|
WANTLIB+= crypto
|
2001-04-02 02:09:15 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-snmp
|
2000-08-23 16:06:03 +00:00
|
|
|
.endif
|
|
|
|
|
2003-05-12 18:02:44 +00:00
|
|
|
SUBST_VARS= CONFDIR
|
|
|
|
|
2001-04-02 15:38:52 +00:00
|
|
|
post-extract:
|
2002-07-10 20:14:45 +00:00
|
|
|
.for f in vtysh.1 bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8 zebra.info
|
2001-04-02 15:38:52 +00:00
|
|
|
@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 16:06:03 +00:00
|
|
|
post-install:
|
2000-08-25 01:18:20 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zebra
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/zebra
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/zebra
|
2003-05-12 18:02:44 +00:00
|
|
|
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/zebra/* ${PREFIX}/share/examples/zebra
|
2000-08-23 16:06:03 +00:00
|
|
|
|
2000-06-26 08:51:39 +00:00
|
|
|
.include <bsd.port.mk>
|