pkgsrc/net/quagga/Makefile
gdt f077535e47 Update to 0.99.24.1.
Remove patches that were applied upstream.
isisd is enabled, but pimd isn't yet (only because those are upstream defaults).

Upstream changes since 0.99.23:

User-visible changes:
- [pimd] New daemon: pimd provides IPv4 PIM-SSM multicast routing.
- [bgpd] New feature: "next-hop-self all" to override nexthop on iBGP route
    reflector setups.
- [bgpd] route-maps have a new action "set ipv6 next-hop peer-address"
- [bgpd] route-maps have a new action "set as-path prepend last-as"
- [bgpd] Update validity checking (particularly MP-BGP / IPv6 routes) was
    touched up significantly.  Please report possible bugs.
- [ripd] New feature: RIP for IPv4 now supports equal-cost multipath (ECMP)
- [zebra] Multicast RIB support has been extended.  It still is IPv4 only.
- [zebra] "no link-detect" is now printed in configurations since it won't
    be the default anymore soon.  To retain current behaviour, re-save your
    configuration after updating to 0.99.24.

Distributor-visible changes:
- --enable-pimd is added to enable pimd.  It is considered experimental, though
    unless the distribution target is embedded systems with little flash, there
    is no reason to not include it in packages.
- --disable-ipv6 no longer exists as an option.  It's 2015, your C library
    really needs to have IPv6 support by now.
- --disable-netlink no longer exists as an option.  It didn't work anyway.
- --disable-solaris no longer exists as an option.  It only controlled some
    init scripts.
- --enable-isisd is now the default.
- mrlg.cgi is no longer included (it was severely outdated).  It can be found
    independently at http://mrlg.op-sec.us/
- build on Linux with the musl C library should now work
2015-03-10 16:46:51 +00:00

74 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.51 2015/03/10 16:46:51 gdt Exp $
#
DISTNAME= quagga-0.99.24.1
CATEGORIES= net
MASTER_SITES= http://download.savannah.gnu.org/releases/quagga/
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://www.nongnu.org/quagga/
COMMENT= Free multithreaded routing daemon software
LICENSE= gnu-gpl-v2
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= YES
USE_TOOLS+= gawk gmake perl
USE_LIBTOOL= YES
TEST_TARGET= check
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= yes
RCD_SCRIPTS= zebra bgpd ospfd ripd
PKG_GROUPS= quagga
PKG_USERS= quagga:quagga
PKG_SYSCONFDIR_PERMS= quagga quagga 750
# 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
.include "options.mk"
.if ${INIT_SYSTEM} == "smf"
BUILD_DIRS= . solaris
SMF_INSTANCES= bgp ospf ospf6 rip ripng zebra
SMF_METHODS= quagga
SMF_METHOD_SRC.quagga= ${WRKSRC}/solaris/quagga.init
FILES_SUBST+= PKG_SMF_METHOD_DIR=${PKG_SMF_METHOD_DIR}
.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 ${DESTDIR}${PREFIX}/share/examples/quagga/*
${INSTALL_DATA} ${FILESDIR}/log_syslog.conf ${DESTDIR}${PREFIX}/share/examples/quagga
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/quagga
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/quagga/mpls
${INSTALL_DATA} ${WRKSRC}/doc/BGP-TypeCode ${DESTDIR}${PREFIX}/share/doc/quagga
${INSTALL_DATA} ${WRKSRC}/doc/draft-zebra-00.txt ${DESTDIR}${PREFIX}/share/doc/quagga
${INSTALL_DATA} ${WRKSRC}/doc/mpls/* ${DESTDIR}${PREFIX}/share/doc/quagga/mpls
${CAT} ${PLIST_CAT} > ${PLIST_SRC}
(cd ${DESTDIR}${PREFIX}; ${FIND} share/doc/quagga -type f -print ) >> ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"