pkgsrc/net/quagga-devel/Makefile
gdt c8977f3201 Update to 0.99.16. DESTDIR support. LICENSE is gpl2. Cosmetic fixup
to options.  Changes since 0.99.15:

bgpd:
    use monotonic clock for time of day
    code cleanup
    compile warnings cleanup
    work around warning in assegments_parse()

ospfd:
    fix debug messages that were masked by DISCARD_LSA
    remove unneeded memset from a very hot function
    VTY strings cleanup
    comment out unused function
    make local functions static
    enable more OSPF cost command aliases

lib:
    fix memory logging
    make some structures constant
    move check_bit into prefix common code
    fix warning on little endian
    make match functions take const args
    remove unused function: route_dump_node()
    log source of vty connections (bug #566)

zebra:
    change router-id selection algo
    deal with irdp compile warnings
    cleanup RIB meta queue code
    fix more warnings in rtadv
    fix more compiler warnings
    remove unused function to fix warning
    handle RTF_CLONING removal from FreeBSD 8.0
    fix argument reference in strncpy() call for BSD
    fix RIB debug message for IPv6
    make declaration const in rtm_flag_dump()
    fix router advertisements for non-Ethernet link layer addresses

ospf6d:
    remove dead code
    fix warnings from recent prefix bit commit
    review LSA sequence number comparison
    fix LSA locking in ospf6_new_ls_id()

other:
    ripd: fix compiler warnings
    ripngd: compiler warnings cleanup
    isisd: fix --enable-isis-topology for 64-bit Linux
    isisd: fix BPF ioctl() calls, treat "true" and "false" as reserved
    configure: fix spelling
    configure: fix HAVE_CLOCK_MONOTONIC spelling
2010-03-10 19:57:06 +00:00

66 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2010/03/10 19:57:06 gdt Exp $
#
DISTNAME= quagga-0.99.16
CATEGORIES= net
MASTER_SITES= http://www.quagga.net/download/
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://www.quagga.net/
COMMENT= Free multithreaded routing daemon software
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= YES
USE_TOOLS+= gawk 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
.include "options.mk"
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} -d -o quagga -g quagga -m 750 ${DESTDIR}${PKG_SYSCONFDIR}
${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"