version bump, tcp md5 support
authorPhilip Walls <malverian@gentoo.org>
Tue, 5 Oct 2004 22:11:06 +0000 (22:11 +0000)
committerPhilip Walls <malverian@gentoo.org>
Tue, 5 Oct 2004 22:11:06 +0000 (22:11 +0000)
net-misc/quagga/ChangeLog
net-misc/quagga/Manifest
net-misc/quagga/files/digest-quagga-0.96.5 [new file with mode: 0644]
net-misc/quagga/quagga-0.96.4-r6.ebuild
net-misc/quagga/quagga-0.96.5.ebuild [new file with mode: 0644]

index aeaa725ce71a29bba31cc379229b8d50255ca7de..5b9d1d92ffc178f9999d4be0e2062655a819d839 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-misc/quagga
 # Copyright 2003-2004 DataCore GmbH; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.8 2004/10/02 15:37:56 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.9 2004/10/05 22:11:05 malverian Exp $
+
+*quagga-0.96.5 (05 Oct 2004)
+
+  05 Oct 2004; Philip Walls <malverian@gentoo.org> +quagga-0.96.5.ebuild:
+  Version bump, support for tcp md5 passwords
 
   16 Jul 2004; Amir Guindehi <amir@datacore.org> quagga-0.96.4-r6.ebuild:
   fixed copyright statement according to dmwaters and seemants wishes.
index bf6b5a279fa00f34653501c2ecc76915dfb2a7b9..cff9a4505254e7614cf5ea962f18084c44eb48e2 100644 (file)
@@ -1,10 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 0ad12c416f8e8dae4472d09b3b87101c ChangeLog 4050
+MD5 072b7a686b2a26a63d9354b1231be8f9 ChangeLog 4202
 MD5 f0192175ecea09c49d5bae967c76bbd1 metadata.xml 1500
-MD5 b02f9239ec700637d92cc67edc0b603c quagga-0.96.4-r6.ebuild 3396
+MD5 af13176eb8a5a91e90ff47652b4637c9 quagga-0.96.4-r6.ebuild 3360
+MD5 4575ec2e74ac1c7571eebcc660c32cad quagga-0.96.5.ebuild 3421
 MD5 72494598a213a5d6f441496f48aefd7b files/digest-quagga-0.96.4-r6 66
+MD5 9056b8bd752a672787eacb129ee47535 files/digest-quagga-0.96.5 142
 MD5 3f95e96aeb427fa3de7f387ff3dc6ad6 files/init/bgpd 866
 MD5 4a118d93cab17b63f1d9c675f5d92fdf files/init/ospf6d 884
 MD5 6b7fbbe67b98a52a36684455c3866d65 files/init/ospfd 875
@@ -13,10 +12,3 @@ MD5 2c6f6b3a64eedf1362a56fd6b3ca9c1b files/init/ripngd 885
 MD5 bfecfbc3b2f5b2748271a2838cac5a2b files/init/zebra 1143
 MD5 6d870c42af2625dcc07ba4b155618ebf files/patches-0.96.4/opaque-ready.patch 2617
 MD5 13439f842c485b5402125d2a18158c84 files/patches-0.96.4/ospf_refcount.patch 1296
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBXstaI1lqEGTUzyQRAsK0AJ4sybWWJcu3147YGSOaNASSSKd5kwCguBle
-Di55DGjShwVxMAYLVGeQsWQ=
-=CVLz
------END PGP SIGNATURE-----
diff --git a/net-misc/quagga/files/digest-quagga-0.96.5 b/net-misc/quagga/files/digest-quagga-0.96.5
new file mode 100644 (file)
index 0000000..1c208a8
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 cc84ef15cf4c2823a36097fe01775dc3 quagga-0.96.5.tar.gz 1558033
+MD5 5352f366e6c7d07101d9b1684e8c6710 ht-20040525-0.96.5-bgp-md5.patch 15395
index f4a8bb06ead82582ef58875c89ff314bb57a973c..493388de5f2fca96da87f3a329296de4c1515094 100644 (file)
@@ -1,7 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# Copyright 2003-2004 DataCore GmbH
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.96.4-r6.ebuild,v 1.6 2004/07/16 18:48:17 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.96.4-r6.ebuild,v 1.7 2004/10/05 22:11:06 malverian Exp $
 
 inherit eutils
 
diff --git a/net-misc/quagga/quagga-0.96.5.ebuild b/net-misc/quagga/quagga-0.96.5.ebuild
new file mode 100644 (file)
index 0000000..0129109
--- /dev/null
@@ -0,0 +1,110 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.96.5.ebuild,v 1.1 2004/10/05 22:11:06 malverian Exp $
+
+inherit eutils
+
+MD5_PATCH="ht-20040525-0.96.5-bgp-md5.patch"
+
+DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP. Includes OSPFAPI, NET-SNMP and IPV6 support."
+HOMEPAGE="http://quagga.net/"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
+SLOT="0"
+LICENSE="GPL-2"
+SRC_URI="http://www.quagga.net/download/${P}.tar.gz
+       tcpmd5? ( http://hasso.linux.ee/quagga/$MD5_PATCH )"
+
+IUSE="ipv6 snmp pam tcpmd5"
+
+DEPEND="virtual/libc
+       sys-devel/binutils
+       >=sys-libs/libcap-1.10-r3
+       !sys-apps/zebra
+       !sys-apps/zebra-ag-svn
+       !sys-apps/zebra-pj-cvs
+       !sys-apps/quagga-ag-svn-HEAD
+       !sys-apps/quagga-svn-HEAD"
+
+[ -z "${QUAGGA_GROUP_GID}" ] && QUAGGA_GROUP_GID=441
+[ -z "${QUAGGA_GROUP_NAME}" ] && QUAGGA_GROUP_NAME="quagga"
+[ -z "${QUAGGA_USER_NAME}" ] && QUAGGA_USER_NAME="quagga"
+[ -z "${QUAGGA_USER_UID}" ] && QUAGGA_USER_UID=441
+[ -z "${QUAGGA_USER_SH}" ] && QUAGGA_USER_SH="/bin/false"
+[ -z "${QUAGGA_USER_HOMEDIR}" ] && QUAGGA_USER_HOMEDIR=/var/empty
+[ -z "${QUAGGA_USER_GROUPS}" ] && QUAGGA_USER_GROUPS=${QUAGGA_GROUP_NAME}
+
+pkg_preinst() {
+       enewgroup ${QUAGGA_GROUP_NAME} ${QUAGGA_GROUP_GID}
+       enewuser ${QUAGGA_USER_NAME} ${QUAGGA_USER_UID} ${QUAGGA_USER_SH} ${QUAGGA_USER_HOMEDIR} ${QUAGGA_USER_GROUPS}
+}
+
+src_compile() {
+       local ipv
+       local snmp
+       local pam
+       local tcpmd5
+
+       use ipv6 && ipv="--enable-ipv6 --enable-ripng --enable-ospf6d --enable-rtadv" || ipv="--disable-ipv6 --disable-ripngd --disable-ospf6d"
+       use snmp && snmp="--enable-snmp"
+       use pam && pam="--with-libpam"
+
+       use tcpmd5 && tcpmd5="--enable-tcp-md5"
+       use tcpmd5 && epatch ${DISTDIR}/$MD5_PATCH
+
+       # update makefiles
+
+       export WANT_AUTOMAKE=1.7
+
+       ./update-autotools || die
+
+       #
+       # ipforward detection is broken (and usersandbox will break it too)
+       # thanks to Merlin from irc://irc.freenode.net/#quagga
+       #
+       export IPFORWARD=ipforward_proc.o
+       export zebra_ipforward_path="proc"
+
+       # configure the stuff
+
+       ./configure --host=${HOST} --prefix=/usr --enable-tcp-zebra \
+                   --enable-nssa --enable-opaque-lsa --enable-ospf-te \
+                   --enable-ospf-secondary \
+                   --enable-user=${QUAGGA_USER} \
+                   --enable-group=${QUAGGA_GROUP} \
+                   --enable-vty-group=${QUAGGA_VTYGROUP} \
+                   --with-cflags="${CFLAGS}" \
+                   --enable-vtysh ${ipv} ${snmp} ${pam} ${tcpmd5} \
+                   --sysconfdir=/etc/quagga \
+                   --enable-exampledir=${D}/etc/quagga/samples \
+                   --includedir=${D}/usr/include/quagga \
+                   --libdir=${D}/usr/lib/quagga \
+                       || die
+       emake || die
+}
+
+src_install() {
+       einstall || die
+
+       dodir /etc/quagga || die
+       dodir /etc/quagga/samples || die
+
+       keepdir /var/run/quagga || die
+
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/init/zebra zebra || die
+       newexe ${FILESDIR}/init/ripd ripd || die
+       newexe ${FILESDIR}/init/ospfd ospfd || die
+       newexe ${FILESDIR}/init/bgpd bgpd || die
+
+       use ipv6 && ( newexe ${FILESDIR}/init/ripngd ripngd )
+       use ipv6 && ( newexe ${FILESDIR}/init/ospf6d ospf6d )
+}
+
+pkg_postinst() {
+       # empty dir for pid files for the new priv separation auth
+       install -d -m0755 -o quagga -g quagga ${ROOT}/var/run/quagga
+
+       einfo "Sample configuration files can be found in /etc/quagga/sample."
+       einfo "You have to create config files in /etc/quagga before"
+       einfo "starting one of the daemons."
+}