Subject: pkg/29518: update pkg net/quagga
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <riz@boogers.sf.ca.us>
List: pkgsrc-bugs
Date: 02/23/2005 23:46:00
>Number:         29518
>Category:       pkg
>Synopsis:       Update quagga pkg to version 0.98.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 23 23:46:00 +0000 2005
>Originator:     Jeff Rizzo
>Release:        NetBSD 2.0_RC3
>Organization:
Jeff Rizzo                                         http://www.redcrowgroup.com/
>Environment:
	
	
System: NetBSD boogers.sf.ca.us 2.0_RC3 NetBSD 2.0_RC3 (TYAN251X.MP) #1: Fri Oct 8 16:40:08 PDT 2004 riz@lychee.tastylime.net:/home/riz/buildobj/usr/src/sys/arch/i386/compile/TYAN251X.MP i386
Architecture: i386
Machine: i386
>Description:
	The version of quagga in pkgsrc is very outdated.  From one
	of the maintainers: "There is no reason for anyone to be running
	anything earlier than 0.98.2"

	This package is based almost entirely on the quagga-devel package
	by Greg Troxel from pkgsrc-wip... I tweaked it for the stable
	release, and made sure the PLIST was right.

>How-To-Repeat:
	
>Fix:
	Unpack the following shar archive in net/quagga, and remove
	all the patches in the 'patches' directory.


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./Makefile
#	./DESCR
#	./PLIST.v6
#	./PLIST
#	./PLIST.vtysh
#	./distinfo
#	./files
#	./files/log_syslog.conf
#	./PLIST.opaquelsa
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# $NetBSD: Makefile,v 1.8 2003/11/18 16:34:49 wiz Exp $
X# Based on KAME Id: Makefile,v 1.1.2.1.2.1.10.2 1999/01/05 11:03:50 itojun Exp
X#
X
XDISTNAME=	quagga-0.98.2
XCATEGORIES=	net
XMASTER_SITES=	http://www.quagga.net/download/
X
XMAINTAINER=	tech-pkg@NetBSD.org
XHOMEPAGE=	http://www.quagga.net/
XCOMMENT=	Free multithreaded routing daemon software (fork of zebra)
X
X.include "../../mk/bsd.prefs.mk"
X
XUSE_BUILDLINK3=		YES
XGNU_CONFIGURE=		YES
XUSE_LIBTOOL=		YES
X
XPKG_SYSCONFSUBDIR?=	zebra
XCONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
XCONFIGURE_ARGS+=	--enable-exampledir=${PREFIX}/share/examples/quagga
X#CONFIGURE_ARGS+=	--enable-pkgsrcrcdir=${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
X# Note that localstatedir is wired into the rc.d scripts.
XCONFIGURE_ARGS+=	--localstatedir=/var/run/zebra
X
XCONFLICTS+=		zebra-[0-9]*
XCONFLICTS+=		quagga-[0-9]*
X
XPLIST_SRC=      ${WRKDIR}/PLIST
XPLIST_CAT=	# empty
X
XINFO_FILES=	quagga.info
X
XUSE_PKGINSTALL=	YES
XRCD_SCRIPTS=	zebra bgpd ospfd ripd
XPKG_GROUPS=	quagga
XPKG_USERS=	quagga:quagga
X
X# log_syslog.conf is used as a template for each config file
X.for _file_ in vtysh.conf zebra.conf bgpd.conf ospfd.conf ripd.conf
XCONF_FILES_PERMS+=      ${PREFIX}/share/examples/quagga/log_syslog.conf ${PKG_SYSCONFDIR}/${_file_} quagga quagga 0600
X.endfor
X.undef _file_
X
XBUILD_DEFS+=			USE_ZEBRA_VTYSH USE_ZEBRA_OSPF_OPAQUELSA
XUSE_ZEBRA_VTYSH?=		YES
XUSE_ZEBRA_OSPF_OPAQUELSA?=	YES
X
X.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
XUSE_GNU_READLINE=	# uses rl_pending_input
X.  include "../../devel/readline/buildlink3.mk"
XCONFIGURE_ARGS+=	--enable-vtysh
XPLIST_CAT+=		${PKGDIR}/PLIST.vtysh
X.else
XCONFIGURE_ARGS+=	--disable-vtysh
X.endif
X
X.if defined(USE_ZEBRA_OSPF_OPAQUELSA) && ${USE_ZEBRA_OSPF_OPAQUELSA} == "YES"
XCONFIGURE_ARGS+=	--enable-opaque-lsa
XPLIST_CAT+=		${PKGDIR}/PLIST.opaquelsa
X.endif
X
XUSE_GNU_TOOLS+=		make
X
XBUILD_DEFS+=		USE_INET6
X
X.if defined(USE_INET6) && ${USE_INET6} == YES
XPLIST_CAT+=		${PKGDIR}/PLIST.v6
XRCD_SCRIPTS+=		ospf6d ripngd
X.for _file_ in ospf6d.conf ripngd.conf
XCONF_FILES_PERMS+=      ${PREFIX}/share/examples/quagga/log_syslog.conf ${PKG_SYSCONFDIR}/${_file_} quagga quagga 0600
X.endfor
X.undef _file_
X.else
XCONFIGURE_ARGS+=	--disable-ospf6d
XCONFIGURE_ARGS+=	--disable-ripngd
X.endif
X
XPLIST_CAT+=		${PKGDIR}/PLIST
X
XLIBS+=			${LDFLAGS}
X
X.for _script_ in ${RCD_SCRIPTS}
XRCD_SCRIPT_SRC.${_script_}?=	${WRKSRC}/pkgsrc/${_script_}.sh
X.endfor
X
Xpost-install:
X	@${CHMOD} a+r ${PREFIX}/share/examples/quagga/*
X	${INSTALL} -d -o quagga -g quagga -m 750 ${PKG_SYSCONFDIR}
X	${INSTALL_DATA} ${FILESDIR}/log_syslog.conf ${PREFIX}/share/examples/quagga
X	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quagga
X	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quagga/mpls
X	${INSTALL_DATA} ${WRKSRC}/doc/BGP-TypeCode ${PREFIX}/share/doc/quagga
X	${INSTALL_DATA} ${WRKSRC}/doc/draft-zebra-00.txt ${PREFIX}/share/doc/quagga
X	${INSTALL_DATA} ${WRKSRC}/doc/mpls/* ${PREFIX}/share/doc/quagga/mpls
X	${CAT} ${PLIST_CAT} > ${PLIST_SRC}
X	(cd ${PREFIX}; ${FIND} share/doc/quagga -type f -print ) >> ${PLIST_SRC}
X	(cd ${PREFIX}; ${FIND} share/doc/quagga -type d -print ) | \
X		${SED} -e 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
X
X.include "../../mk/bsd.pkg.mk"
END-of-./Makefile
echo x - ./DESCR
sed 's/^X//' >./DESCR << 'END-of-./DESCR'
XQuagga is a routing software suite, providing implementations of
XOSPFv2, OSPFv3, RIP v1 and v2, RIPv3 and BGPv4 for Unix platforms,
Xparticularly FreeBSD and Linux and also NetBSD, to mention a few.
XQuagga is a fork of GNU Zebra which was developed by Kunihiro
XIshiguro. The Quagga tree aims to build a more involved community
Xaround Quagga than the current centralised model of GNU Zebra.
X
XGNU Zebra is a free software (distributed under GNU Generic Public
XLicense) which manages TCP/IP based routing protocols.
XIt supports BGP-4 protocol as described in RFC1771 (A Border Gateway
XProtocol 4) and RIPv1, RIPv2 and OSPFv2.
X
XZebra is intended to be used as a Route Server and a Route Reflector.
XZebra is not a toolkit, it provides full routing power under a new
Xarchitecture.
END-of-./DESCR
echo x - ./PLIST.v6
sed 's/^X//' >./PLIST.v6 << 'END-of-./PLIST.v6'
X@comment $NetBSD: PLIST.v6,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
Xsbin/ospf6d
Xsbin/ripngd
Xshare/examples/quagga/ospf6d.conf.sample
Xshare/examples/quagga/ripngd.conf.sample
END-of-./PLIST.v6
echo x - ./PLIST
sed 's/^X//' >./PLIST << 'END-of-./PLIST'
X@comment $NetBSD: PLIST,v 1.2 2003/11/18 16:34:49 wiz Exp $
Xinclude/quagga/buffer.h
Xinclude/quagga/command.h
Xinclude/quagga/distribute.h
Xinclude/quagga/filter.h
Xinclude/quagga/getopt.h
Xinclude/quagga/hash.h
Xinclude/quagga/if.h
Xinclude/quagga/if_rmap.h
Xinclude/quagga/jhash.h
Xinclude/quagga/keychain.h
Xinclude/quagga/linklist.h
Xinclude/quagga/log.h
Xinclude/quagga/md5-gnu.h
Xinclude/quagga/memory.h
Xinclude/quagga/network.h
Xinclude/quagga/ospfd/ospf_api.h
Xinclude/quagga/ospfd/ospf_asbr.h
Xinclude/quagga/ospfd/ospf_dump.h
Xinclude/quagga/ospfd/ospf_ism.h
Xinclude/quagga/ospfd/ospf_lsa.h
Xinclude/quagga/ospfd/ospf_lsdb.h
Xinclude/quagga/ospfd/ospf_nsm.h
Xinclude/quagga/ospfd/ospf_opaque.h
Xinclude/quagga/ospfd/ospfd.h
Xinclude/quagga/plist.h
Xinclude/quagga/pqueue.h
Xinclude/quagga/prefix.h
Xinclude/quagga/privs.h
Xinclude/quagga/routemap.h
Xinclude/quagga/sigevent.h
Xinclude/quagga/smux.h
Xinclude/quagga/sockopt.h
Xinclude/quagga/sockunion.h
Xinclude/quagga/str.h
Xinclude/quagga/stream.h
Xinclude/quagga/table.h
Xinclude/quagga/thread.h
Xinclude/quagga/vector.h
Xinclude/quagga/version.h
Xinclude/quagga/vty.h
Xinclude/quagga/zassert.h
Xinclude/quagga/zclient.h
Xinclude/quagga/zebra.h
Xlib/libospf.la
Xlib/libzebra.la
Xman/man1/vtysh.1
Xman/man8/bgpd.8
Xman/man8/isisd.8
Xman/man8/ospf6d.8
Xman/man8/ospfd.8
Xman/man8/ripd.8
Xman/man8/ripngd.8
Xman/man8/zebra.8
Xsbin/bgpd
Xsbin/ospfd
Xsbin/ripd
Xsbin/watchquagga
Xsbin/zebra
Xshare/examples/quagga/bgpd.conf.sample
Xshare/examples/quagga/bgpd.conf.sample2
Xshare/examples/quagga/log_syslog.conf
Xshare/examples/quagga/ospfd.conf.sample
Xshare/examples/quagga/ripd.conf.sample
Xshare/examples/quagga/zebra.conf.sample
X@dirrm share/examples/quagga
X@dirrm include/quagga/ospfd
X@dirrm include/quagga
END-of-./PLIST
echo x - ./PLIST.vtysh
sed 's/^X//' >./PLIST.vtysh << 'END-of-./PLIST.vtysh'
X@comment $NetBSD: PLIST.vtysh,v 1.1.1.1 2003/08/13 07:26:57 itojun Exp $
Xbin/vtysh
Xshare/examples/quagga/vtysh.conf.sample
END-of-./PLIST.vtysh
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
X$NetBSD: distinfo,v 1.4 2003/11/18 16:34:49 wiz Exp $
X
XSHA1 (quagga-0.98.2.tar.gz) = ac53eeac08c8c1b98c32481f60aa779f48f62f5e
XSize (quagga-0.98.2.tar.gz) = 2012251 bytes
END-of-./distinfo
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/log_syslog.conf
sed 's/^X//' >./files/log_syslog.conf << 'END-of-./files/log_syslog.conf'
X!
Xlog syslog
X!
END-of-./files/log_syslog.conf
echo x - ./PLIST.opaquelsa
sed 's/^X//' >./PLIST.opaquelsa << 'END-of-./PLIST.opaquelsa'
X@comment $NetBSD:$
Xinclude/quagga/ospfapi/ospf_apiclient.h
Xlib/libospfapiclient.la
Xsbin/ospfclient
X@dirrm include/quagga/ospfapi
END-of-./PLIST.opaquelsa
exit

>Unformatted: