summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-08-11 09:01:32 +0000
committerAlin Năstac <mrness@gentoo.org>2005-08-11 09:01:32 +0000
commitb8f5969d7352f2358ba650217bb1d72921f44677 (patch)
tree228a273c0793bc69988028c3d8ab2fae981ea204 /net-misc/quagga
parentVersion bump thanks to Hakan Tandogan <hakan@gurkensalat.com> in bug 101324 (diff)
downloadhistorical-b8f5969d7352f2358ba650217bb1d72921f44677.tar.gz
historical-b8f5969d7352f2358ba650217bb1d72921f44677.tar.bz2
historical-b8f5969d7352f2358ba650217bb1d72921f44677.zip
correct sanity checks and info messages in init scripts; version bumped with a new realms useflag (#102044)
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'net-misc/quagga')
-rw-r--r--net-misc/quagga/ChangeLog13
-rw-r--r--net-misc/quagga/Manifest46
-rw-r--r--net-misc/quagga/files/digest-quagga-0.98.42
-rw-r--r--net-misc/quagga/files/init/bgpd5
-rw-r--r--net-misc/quagga/files/init/ospf6d5
-rw-r--r--net-misc/quagga/files/init/ospfd5
-rw-r--r--net-misc/quagga/files/init/ripd5
-rw-r--r--net-misc/quagga/files/init/ripngd5
-rw-r--r--net-misc/quagga/files/init/zebra6
-rw-r--r--net-misc/quagga/quagga-0.96.5-r1.ebuild4
-rw-r--r--net-misc/quagga/quagga-0.98.2.ebuild4
-rw-r--r--net-misc/quagga/quagga-0.98.3.ebuild13
-rw-r--r--net-misc/quagga/quagga-0.98.4.ebuild123
13 files changed, 199 insertions, 37 deletions
diff --git a/net-misc/quagga/ChangeLog b/net-misc/quagga/ChangeLog
index f34a5d9edf98..6c11ca280357 100644
--- a/net-misc/quagga/ChangeLog
+++ b/net-misc/quagga/ChangeLog
@@ -2,7 +2,18 @@
# Copyright 1999-2005 Gentoo Foundation
# Copyright 2003-2004 DataCore GmbH
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.16 2005/06/15 19:45:45 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.17 2005/08/11 09:01:32 mrness Exp $
+
+*quagga-0.98.4 (11 Aug 2005)
+
+ 11 Aug 2005; Alin Nastac <mrness@gentoo.org> files/init/bgpd,
+ files/init/ospf6d, files/init/ospfd, files/init/ripd, files/init/ripngd,
+ files/init/zebra, quagga-0.96.5-r1.ebuild, quagga-0.98.2.ebuild,
+ quagga-0.98.3.ebuild, +quagga-0.98.4.ebuild:
+ Fix check sanity in init scripts. Correct info messages regarding path to
+ sample files. Version bump with a new realms useflag which add realms
+ support in 0.98.4 version, thanks to the author of this patch, Calin Velea
+ <vcalinus@gemenii.ro> (#102044).
*quagga-0.98.3 (15 Jun 2005)
diff --git a/net-misc/quagga/Manifest b/net-misc/quagga/Manifest
index dcdd9696e60e..6cdce81f8de9 100644
--- a/net-misc/quagga/Manifest
+++ b/net-misc/quagga/Manifest
@@ -1,22 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 146b8f23689e6b06ef9f7438b2613c24 quagga-0.98.3.ebuild 4890
+MD5 734d8c380149476d5c89f42c486ddde0 quagga-0.98.2.ebuild 4497
+MD5 803658ee40a8ee409d3c1bab569c879d ChangeLog 7503
+MD5 9154e06a6ca2295029fbc3aa6201ffc8 quagga-0.98.4.ebuild 4221
MD5 f0c8f9afaf3bbefcea71ff3b6fa139c4 metadata.xml 1389
-MD5 c35722fdaa8d7d50841908e146faf847 quagga-0.98.2.ebuild 4496
-MD5 f77c5af4888fcbebc66b053659787895 ChangeLog 6959
-MD5 eeb668bdff23fb15d3ece68513c6818e quagga-0.98.3.ebuild 4499
-MD5 9516803db922d13a126a5315a0a27956 quagga-0.96.5-r1.ebuild 3959
-MD5 18c1046db57ea850aabd385058522cc4 files/quagga.env 25
-MD5 ab93cbbeeed343892eea7f9b79217a8b files/digest-quagga-0.98.3 66
-MD5 0b834e6f9fd5d40f3018fb7e4ba04faa files/quagga.pam 1145
+MD5 2173d77501bdf2b9f0f8eb9220fa9399 quagga-0.96.5-r1.ebuild 3960
MD5 1a1df9fb95d48001187e1f56dc4ff5e5 files/digest-quagga-0.98.2 66
+MD5 ab93cbbeeed343892eea7f9b79217a8b files/digest-quagga-0.98.3 66
+MD5 8550c2f78b4c3ba7ba66c6bcb0bf4913 files/digest-quagga-0.98.4 147
MD5 9056b8bd752a672787eacb129ee47535 files/digest-quagga-0.96.5-r1 142
-MD5 4a118d93cab17b63f1d9c675f5d92fdf files/init/ospf6d 884
-MD5 3f95e96aeb427fa3de7f387ff3dc6ad6 files/init/bgpd 866
-MD5 2c6f6b3a64eedf1362a56fd6b3ca9c1b files/init/ripngd 885
-MD5 bfecfbc3b2f5b2748271a2838cac5a2b files/init/zebra 1143
-MD5 6b7fbbe67b98a52a36684455c3866d65 files/init/ospfd 875
-MD5 e484b94e7ebb358d11fdf3252e0b604f files/init/ripd 865
-MD5 6c9cdbdc237bb8d24dfd26504059464b files/patches-0.98.3/ht-20050110-0.98.0-bgp-md5.patch 14570
-MD5 a5a7f270b8ccff05a27e0fa943a0aaf5 files/patches-0.98.3/amir-connected-route.patch 6091
-MD5 e70bf25e2ca5f76efb2c5704234ccc1f files/patches-0.98.3/ht-20040304-classless-bgp.patch 1581
-MD5 6c9cdbdc237bb8d24dfd26504059464b files/patches-0.98.2/ht-20050110-0.98.0-bgp-md5.patch 14570
+MD5 18c1046db57ea850aabd385058522cc4 files/quagga.env 25
+MD5 0b834e6f9fd5d40f3018fb7e4ba04faa files/quagga.pam 1145
+MD5 cf38f951a51b3343a1314e600b3c5fe3 files/init/bgpd 900
+MD5 c10d85e098c8405567e6df707740ab85 files/init/ripd 900
+MD5 613ed2b9254132bf0d1dc40e530a5c6f files/init/ospfd 910
+MD5 21fee005d4bdb76ca10d09b8221aaf47 files/init/zebra 1161
+MD5 716ae5425e752e4c835c2883d905cac4 files/init/ospf6d 919
+MD5 615273280dd507a7b9705d200b68b8ec files/init/ripngd 920
MD5 7da4097332468741416e156a2e5d35e4 files/patches-0.98.2/amir-connected-route.patch 6336
+MD5 6c9cdbdc237bb8d24dfd26504059464b files/patches-0.98.2/ht-20050110-0.98.0-bgp-md5.patch 14570
MD5 e70bf25e2ca5f76efb2c5704234ccc1f files/patches-0.98.2/ht-20040304-classless-bgp.patch 1581
+MD5 a5a7f270b8ccff05a27e0fa943a0aaf5 files/patches-0.98.3/amir-connected-route.patch 6091
+MD5 6c9cdbdc237bb8d24dfd26504059464b files/patches-0.98.3/ht-20050110-0.98.0-bgp-md5.patch 14570
+MD5 e70bf25e2ca5f76efb2c5704234ccc1f files/patches-0.98.3/ht-20040304-classless-bgp.patch 1581
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFC+xRENSP4Vda7IdsRApeyAJwMn7ygKLZo3W4sK3NV2t2F0HgZ+wCeN1Sa
+a8tazv3YNuc0l7w3aVijQHw=
+=UbQ7
+-----END PGP SIGNATURE-----
diff --git a/net-misc/quagga/files/digest-quagga-0.98.4 b/net-misc/quagga/files/digest-quagga-0.98.4
new file mode 100644
index 000000000000..3a67e45087c1
--- /dev/null
+++ b/net-misc/quagga/files/digest-quagga-0.98.4
@@ -0,0 +1,2 @@
+MD5 c68e409931449afc5730289d3105f502 quagga-0.98.4.tar.gz 2016824
+MD5 6b7c29fc2ef5555d60b898d9e7db2b2c quagga-0.98.4-patches-20050811.tar.gz 19330
diff --git a/net-misc/quagga/files/init/bgpd b/net-misc/quagga/files/init/bgpd
index 8daac1d9b9f2..b9398d0926d3 100644
--- a/net-misc/quagga/files/init/bgpd
+++ b/net-misc/quagga/files/init/bgpd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2003 DataCore GmbH, Amir Guindehi
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/bgpd,v 1.2 2004/06/13 15:54:32 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/bgpd,v 1.3 2005/08/11 09:01:32 mrness Exp $
depend() {
need net zebra
@@ -10,12 +10,13 @@ depend() {
checkconfig() {
if [ ! -e /etc/quagga/bgpd.conf ] ; then
eerror "You need to create /etc/quagga/bgpd.conf first."
- eerror "An example can be found in /etc/quagga/bgpd.conf.sample"
+ eerror "An example can be found in /etc/quagga/samples/bgpd.conf.sample"
return 1
fi
}
start() {
+ checkconfig || return 1
ebegin "Starting bgpd"
start-stop-daemon --start --quiet --exec /usr/sbin/bgpd \
-- -d -f /etc/quagga/bgpd.conf \
diff --git a/net-misc/quagga/files/init/ospf6d b/net-misc/quagga/files/init/ospf6d
index e44f941b5245..06882df938d9 100644
--- a/net-misc/quagga/files/init/ospf6d
+++ b/net-misc/quagga/files/init/ospf6d
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2003 DataCore GmbH, Amir Guindehi
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ospf6d,v 1.1 2004/03/29 12:29:03 amir Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ospf6d,v 1.2 2005/08/11 09:01:32 mrness Exp $
depend() {
need net zebra
@@ -10,12 +10,13 @@ depend() {
checkconfig() {
if [ ! -e /etc/quagga/ospf6d.conf ] ; then
eerror "You need to create /etc/quagga/ospf6d.conf first."
- eerror "An example can be found in /etc/quagga/ospf6d.conf.sample"
+ eerror "An example can be found in /etc/quagga/samples/ospf6d.conf.sample"
return 1
fi
}
start() {
+ checkconfig || return 1
ebegin "Starting ospf6d"
start-stop-daemon --start --quiet --exec /usr/sbin/ospf6d \
-- -d -f /etc/quagga/ospf6d.conf \
diff --git a/net-misc/quagga/files/init/ospfd b/net-misc/quagga/files/init/ospfd
index 4320a3dd7a5b..7a8bbc3f9f2b 100644
--- a/net-misc/quagga/files/init/ospfd
+++ b/net-misc/quagga/files/init/ospfd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2003 DataCore GmbH, Amir Guindehi
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ospfd,v 1.1 2004/03/29 12:29:03 amir Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ospfd,v 1.2 2005/08/11 09:01:32 mrness Exp $
depend() {
need net zebra
@@ -10,12 +10,13 @@ depend() {
checkconfig() {
if [ ! -e /etc/quagga/ospfd.conf ] ; then
eerror "You need to create /etc/quagga/ospfd.conf first."
- eerror "An example can be found in /etc/quagga/ospfd.conf.sample"
+ eerror "An example can be found in /etc/quagga/samples/ospfd.conf.sample"
return 1
fi
}
start() {
+ checkconfig || return 1
ebegin "Starting ospfd"
start-stop-daemon --start --quiet --exec /usr/sbin/ospfd \
-- -d -f /etc/quagga/ospfd.conf \
diff --git a/net-misc/quagga/files/init/ripd b/net-misc/quagga/files/init/ripd
index 91b7ac896716..a9795c01c211 100644
--- a/net-misc/quagga/files/init/ripd
+++ b/net-misc/quagga/files/init/ripd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2003 DataCore GmbH, Amir Guindehi
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ripd,v 1.1 2004/03/29 12:29:03 amir Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ripd,v 1.2 2005/08/11 09:01:32 mrness Exp $
depend() {
need net zebra
@@ -10,12 +10,13 @@ depend() {
checkconfig() {
if [ ! -e /etc/quagga/ripd.conf ] ; then
eerror "You need to create /etc/quagga/ripd.conf first."
- eerror "An example can be found in /etc/quagga/ripd.conf.sample"
+ eerror "An example can be found in /etc/quagga/samples/ripd.conf.sample"
return 1
fi
}
start() {
+ checkconfig || return 1
ebegin "Starting ripd"
start-stop-daemon --start --quiet --exec /usr/sbin/ripd \
-- -d -f /etc/quagga/ripd.conf \
diff --git a/net-misc/quagga/files/init/ripngd b/net-misc/quagga/files/init/ripngd
index b0face4ccf46..f67560b8bf28 100644
--- a/net-misc/quagga/files/init/ripngd
+++ b/net-misc/quagga/files/init/ripngd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2003 DataCore GmbH, Amir Guindehi
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ripngd,v 1.1 2004/03/29 12:29:03 amir Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/ripngd,v 1.2 2005/08/11 09:01:32 mrness Exp $
depend() {
need net zebra
@@ -10,12 +10,13 @@ depend() {
checkconfig() {
if [ ! -e /etc/quagga/ripngd.conf ] ; then
eerror "You need to create /etc/quagga/ripngd.conf first."
- eerror "An example can be found in /etc/quagga/ripngd.conf.sample"
+ eerror "An example can be found in /etc/quagga/samples/ripngd.conf.sample"
return 1
fi
}
start() {
+ checkconfig || return 1
ebegin "Starting ripngd"
start-stop-daemon --start --quiet --exec /usr/sbin/ripngd \
-- -d -f /etc/quagga/ripngd.conf \
diff --git a/net-misc/quagga/files/init/zebra b/net-misc/quagga/files/init/zebra
index 32277a683e16..1d83e19a66c6 100644
--- a/net-misc/quagga/files/init/zebra
+++ b/net-misc/quagga/files/init/zebra
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/zebra,v 1.2 2004/07/15 00:10:10 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/init/zebra,v 1.3 2005/08/11 09:01:32 mrness Exp $
depend() {
need net
@@ -10,7 +10,7 @@ depend() {
checkconfig() {
if [ ! -e /etc/quagga/zebra.conf ] ; then
eerror "You need to create /etc/quagga/zebra.conf first."
- eerror "An example can be found in /etc/quagga/zebra.conf.sample"
+ eerror "An example can be found in /etc/quagga/samples/zebra.conf.sample"
return 1
fi
}
@@ -28,7 +28,7 @@ cleanup() {
}
start() {
- checkconfig
+ checkconfig || return 1
cleanup
ebegin "Starting zebra"
diff --git a/net-misc/quagga/quagga-0.96.5-r1.ebuild b/net-misc/quagga/quagga-0.96.5-r1.ebuild
index 05b4c281ab15..d230ce690506 100644
--- a/net-misc/quagga/quagga-0.96.5-r1.ebuild
+++ b/net-misc/quagga/quagga-0.96.5-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 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-r1.ebuild,v 1.2 2005/03/20 18:09:43 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.96.5-r1.ebuild,v 1.3 2005/08/11 09:01:32 mrness Exp $
inherit eutils
@@ -120,7 +120,7 @@ pkg_postinst() {
install -d -m0700 -o ${QUAGGA_USER_NAME} -g ${QUAGGA_GROUP_NAME} ${ROOT}/etc/quagga
install -d -m0755 -o ${QUAGGA_USER_NAME} -g ${QUAGGA_GROUP_NAME} ${ROOT}/var/run/quagga
- einfo "Sample configuration files can be found in /etc/quagga/sample."
+ einfo "Sample configuration files can be found in /etc/quagga/samples."
einfo "You have to create config files in /etc/quagga before"
einfo "starting one of the daemons."
}
diff --git a/net-misc/quagga/quagga-0.98.2.ebuild b/net-misc/quagga/quagga-0.98.2.ebuild
index 3caac5564d4e..5ec44c233f37 100644
--- a/net-misc/quagga/quagga-0.98.2.ebuild
+++ b/net-misc/quagga/quagga-0.98.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.2.ebuild,v 1.5 2005/05/01 17:22:58 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.2.ebuild,v 1.6 2005/08/11 09:01:32 mrness Exp $
inherit eutils
@@ -125,7 +125,7 @@ pkg_postinst() {
install -d -m0770 -o root -g ${QUAGGA_GROUP_NAME} ${ROOT}/etc/quagga
install -d -m0755 -o ${QUAGGA_USER_NAME} -g ${QUAGGA_GROUP_NAME} ${ROOT}/var/run/quagga
- einfo "Sample configuration files can be found in /etc/quagga/sample."
+ einfo "Sample configuration files can be found in /etc/quagga/samples."
einfo "You have to create config files in /etc/quagga before"
einfo "starting one of the daemons."
}
diff --git a/net-misc/quagga/quagga-0.98.3.ebuild b/net-misc/quagga/quagga-0.98.3.ebuild
index 7b6c9142f316..e7e204eaaa7c 100644
--- a/net-misc/quagga/quagga-0.98.3.ebuild
+++ b/net-misc/quagga/quagga-0.98.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.3.ebuild,v 1.1 2005/06/15 19:45:45 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.3.ebuild,v 1.2 2005/08/11 09:01:32 mrness Exp $
inherit eutils
@@ -125,7 +125,16 @@ pkg_postinst() {
install -d -m0770 -o root -g ${QUAGGA_GROUP_NAME} ${ROOT}/etc/quagga
install -d -m0755 -o ${QUAGGA_USER_NAME} -g ${QUAGGA_GROUP_NAME} ${ROOT}/var/run/quagga
- einfo "Sample configuration files can be found in /etc/quagga/sample."
+ einfo "Sample configuration files can be found in /etc/quagga/samples."
einfo "You have to create config files in /etc/quagga before"
einfo "starting one of the daemons."
+
+ if use ipv6; then
+ echo
+ ewarn "This version of quagga contains a netlink race condition fix that triggered a kernel bug"
+ ewarn "which affects IPv6 users who have a kernel version < 2.6.13-rc6."
+ ewarn "See following links for more info:"
+ ewarn " http://lists.quagga.net/pipermail/quagga-dev/2005-June/003507.html"
+ ewarn " http://bugzilla.quagga.net/show_bug.cgi?id=196"
+ fi
}
diff --git a/net-misc/quagga/quagga-0.98.4.ebuild b/net-misc/quagga/quagga-0.98.4.ebuild
new file mode 100644
index 000000000000..0448196234e0
--- /dev/null
+++ b/net-misc/quagga/quagga-0.98.4.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.4.ebuild,v 1.1 2005/08/11 09:01:32 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP. Includes OSPFAPI, NET-SNMP and IPV6 support."
+HOMEPAGE="http://quagga.net/"
+SRC_URI="http://www.quagga.net/download/${P}.tar.gz
+ mirror://gentoo/${P}-patches-20050811.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
+IUSE="ipv6 snmp pam tcpmd5 bgpclassless ospfapi realms"
+
+RDEPEND="sys-apps/iproute2
+ sys-libs/libcap
+ snmp? ( net-analyzer/net-snmp )
+ pam? ( sys-libs/pam )"
+DEPEND="${RDEPEND}
+ virtual/libc
+ sys-devel/binutils"
+
+src_unpack() {
+ unpack ${A} || die "failed to unpack sources"
+
+ cd ${S} || die "source dir not found"
+ # TCP MD5 for BGP patch for Linux (RFC 2385) - http://hasso.linux.ee/quagga/ht-20050110-0.98.0-bgp-md5.patch
+ use tcpmd5 && epatch "${WORKDIR}/patch/ht-20050110-0.98.0-bgp-md5.patch"
+ # Classless prefixes for BGP - http://hasso.linux.ee/quagga/pending-patches/ht-20040304-classless-bgp.patch
+ use bgpclassless && epatch "${WORKDIR}/patch/ht-20040304-classless-bgp.patch"
+ # Connected route fix (Amir) - http://voidptr.sboost.org/quagga/amir-connected-route.patch.bz2
+ epatch "${WORKDIR}/patch/amir-connected-route.patch"
+ # Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html
+ use realms && epatch "${WORKDIR}/patch/${P}-realms.diff"
+}
+
+src_compile() {
+ # regenerate configure and co if we touch .ac or .am files
+ #export WANT_AUTOMAKE=1.7
+ #./update-autotools || die
+ autoreconf
+ libtoolize --copy --force
+
+ local myconf="--disable-static --enable-dynamic"
+
+ use ipv6 \
+ && myconf="${myconf} --enable-ipv6 --enable-ripng --enable-ospf6d --enable-rtadv" \
+ || myconf="${myconf} --disable-ipv6 --disable-ripngd --disable-ospf6d"
+ use ospfapi \
+ && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient"
+ use snmp && myconf="${myconf} --enable-snmp"
+ use pam && myconf="${myconf} --with-libpam"
+ use tcpmd5 && myconf="${myconf} --enable-tcp-md5"
+ use realms && myconf="${myconf} --enable-realms"
+
+ econf \
+ --enable-tcp-zebra \
+ --enable-nssa \
+ --enable-user=quagga \
+ --enable-group=quagga \
+ --enable-vty-group=quagga \
+ --with-cflags="${CFLAGS}" \
+ --enable-vtysh \
+ --sysconfdir=/etc/quagga \
+ --enable-exampledir=/etc/quagga/samples \
+ --localstatedir=/var/run/quagga \
+ --libdir=/usr/lib/quagga \
+ ${myconf} \
+ || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ einstall \
+ localstatedir=${D}/var/run/quagga \
+ sysconfdir=${D}/etc/quagga \
+ exampledir=${D}/etc/quagga/samples \
+ libdir=${D}/usr/lib/quagga || die "make install failed"
+
+ keepdir /var/run/quagga || die
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/init/zebra zebra && \
+ newexe ${FILESDIR}/init/ripd ripd && \
+ newexe ${FILESDIR}/init/ospfd ospfd && \
+ ( ! use ipv6 || newexe ${FILESDIR}/init/ripngd ripngd ) && \
+ ( ! use ipv6 || newexe ${FILESDIR}/init/ospf6d ospf6d ) && \
+ newexe ${FILESDIR}/init/bgpd bgpd || die "failed to install init scripts"
+
+ if use pam; then
+ insinto /etc/pam.d
+ newins ${FILESDIR}/quagga.pam quagga
+ fi
+
+ newenvd ${FILESDIR}/quagga.env 99quagga
+}
+
+pkg_preinst() {
+ enewgroup quagga
+ enewuser quagga -1 -1 /var/empty quagga
+}
+
+pkg_postinst() {
+ # empty dir for pid files for the new priv separation auth
+ #set proper owner/group/perms even if dir already existed
+ install -d -m0770 -o root -g quagga ${ROOT}/etc/quagga
+ install -d -m0755 -o quagga -g quagga ${ROOT}/var/run/quagga
+
+ einfo "Sample configuration files can be found in /etc/quagga/samples."
+ einfo "You have to create config files in /etc/quagga before"
+ einfo "starting one of the daemons."
+
+ if use ipv6; then
+ echo
+ ewarn "This version of quagga contains a netlink race condition fix that triggered a kernel bug"
+ ewarn "which affects IPv6 users who have a kernel version < 2.6.13-rc6."
+ ewarn "See following links for more info:"
+ ewarn " http://lists.quagga.net/pipermail/quagga-dev/2005-June/003507.html"
+ ewarn " http://bugzilla.quagga.net/show_bug.cgi?id=196"
+ fi
+}