pkgsrc/net/quagga/Makefile
gdt b8f9c71471 Update to 0.98.6.
Security:
   ripd:

     - RIPD unauthenticated route table broadcast:
         CVE-2006-2223, OSVDB ID 25224, Secunia SA19910
     - RIPD unauthenticated route injection:
         CVE-2006-2224, OSVDB ID 25225, Secunia SA19910

       [ripd] 0.98 specific command changes, allow no-auth to be set
       [ripd] bugs #261, #262: Fix RIPv1 info-leak and unauthenticated route updates
       [doc] Add text on 0.98 specific RIP authentication changes
       [docs] Update ripd docs on version and authentication, see bugs #261,#262

 	Thanks to Konstantin V. Gavrilenko for report and testing.

   bgpd:
     - bgpd Telnet Interface DoS:
 	    OSVDB ID 25245:
 	     http://www.osvdb.org/displayvuln.php?osvdb_id=25245
 	    [quagga-dev 4051]:
 	     http://lists.quagga.net/pipermail/quagga-dev/2006-March/004052.html

       [bgpd] Fix infinite loop in community_str2com


[No NEWS entries for 0.98.2 to 0.98.6; many bugfixes]
2006-06-05 19:28:25 +00:00

96 lines
2.9 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2006/06/05 19:28:25 gdt Exp $
# Based on KAME Id: Makefile,v 1.1.2.1.2.1.10.2 1999/01/05 11:03:50 itojun Exp
#
DISTNAME= quagga-0.98.6
CATEGORIES= net
MASTER_SITES= http://www.quagga.net/download/
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://www.quagga.net/
COMMENT= Free multithreaded routing daemon software (fork of zebra)
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= YES
USE_TOOLS+= gmake perl
USE_LIBTOOL= YES
PKG_SYSCONFSUBDIR?= zebra
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --enable-exampledir=${PREFIX}/share/examples/quagga
#CONFIGURE_ARGS+= --enable-pkgsrcrcdir=${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/run/zebra
CONFLICTS+= zebra-[0-9]*
PLIST_SRC= ${WRKDIR}/PLIST
PLIST_CAT= # empty
INFO_FILES= # PLIST
RCD_SCRIPTS= zebra bgpd ospfd ripd
PKG_GROUPS= quagga
PKG_USERS= quagga:quagga
# log_syslog.conf is used as a template for each config file
.for _file_ in vtysh.conf zebra.conf bgpd.conf ospfd.conf ripd.conf
CONF_FILES_PERMS+= ${PREFIX}/share/examples/quagga/log_syslog.conf \
${PKG_SYSCONFDIR}/${_file_} quagga quagga 0600
.endfor
BUILD_DEFS+= USE_ZEBRA_VTYSH USE_ZEBRA_OSPF_OPAQUELSA
USE_ZEBRA_VTYSH?= YES
USE_ZEBRA_OSPF_OPAQUELSA?= YES
.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
USE_GNU_READLINE= # uses rl_pending_input
. include "../../devel/readline/buildlink3.mk"
CONFIGURE_ARGS+= --enable-vtysh
PLIST_CAT+= ${PKGDIR}/PLIST.vtysh
.else
CONFIGURE_ARGS+= --disable-vtysh
.endif
.if defined(USE_ZEBRA_OSPF_OPAQUELSA) && ${USE_ZEBRA_OSPF_OPAQUELSA} == "YES"
CONFIGURE_ARGS+= --enable-opaque-lsa
PLIST_CAT+= ${PKGDIR}/PLIST.opaquelsa
.endif
BUILD_DEFS+= USE_INET6
.if defined(USE_INET6) && ${USE_INET6} == YES
PLIST_CAT+= ${PKGDIR}/PLIST.v6
RCD_SCRIPTS+= ospf6d ripngd
.for _file_ in ospf6d.conf ripngd.conf
CONF_FILES_PERMS+= ${PREFIX}/share/examples/quagga/log_syslog.conf \
${PKG_SYSCONFDIR}/${_file_} quagga quagga 0600
.endfor
.else
CONFIGURE_ARGS+= --disable-ospf6d
CONFIGURE_ARGS+= --disable-ripngd
.endif
PLIST_CAT+= ${PKGDIR}/PLIST
LIBS+= ${LDFLAGS}
.for _script_ in ${RCD_SCRIPTS}
RCD_SCRIPT_SRC.${_script_}?= ${WRKSRC}/pkgsrc/${_script_}.sh
.endfor
post-install:
@${CHMOD} a+r ${PREFIX}/share/examples/quagga/*
${INSTALL} -d -o quagga -g quagga -m 750 ${PKG_SYSCONFDIR}
${INSTALL_DATA} ${FILESDIR}/log_syslog.conf ${PREFIX}/share/examples/quagga
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quagga
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quagga/mpls
${INSTALL_DATA} ${WRKSRC}/doc/BGP-TypeCode ${PREFIX}/share/doc/quagga
${INSTALL_DATA} ${WRKSRC}/doc/draft-zebra-00.txt ${PREFIX}/share/doc/quagga
${INSTALL_DATA} ${WRKSRC}/doc/mpls/* ${PREFIX}/share/doc/quagga/mpls
${CAT} ${PLIST_CAT} > ${PLIST_SRC}
(cd ${PREFIX}; ${FIND} share/doc/quagga -type f -print ) >> ${PLIST_SRC}
(cd ${PREFIX}; ${FIND} share/doc/quagga -type d -print ) | \
${SED} -e 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"