quagga: Add 0.99.4, fix bgp package name, some cleanups.
authorJamie Lenehan <lenehan@twibble.org>
Fri, 26 May 2006 08:10:45 +0000 (08:10 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 26 May 2006 08:10:45 +0000 (08:10 +0000)
* Added version 0.99.4 which fixes a number of bugs in the previous
  release, several critical bugs. See quagga homepage for details.
* Fix the name of BGP package and init scripts - it should be bgpd
  not bpgd.  Discovered when looking at the change log for the OWMNR
  project.
* Added myself as the maintainer.
* Add a prerm script from the base quagga package which stops all the
  sub deamons. Otherwise if you just erase the main package all the
  sub daemons keep running. Normally dependencies stop this, so this
  only if the user forces deletion.
* Bump PR on 0.99.2 and 0.99.3 to pick up changes.
* Remove PR from the .inc file, this is to be specified in the .bb
  files.
* Re-order header to match style guide layout on the wiki.
* Allow a directory addition to be passed through from .bb to the
  .inc. Use it in the 0.99.2 to indicate that the source for that
  version are now in the attic subdirectory.

packages/quagga/quagga.inc
packages/quagga/quagga_0.99.2.bb
packages/quagga/quagga_0.99.3.bb
packages/quagga/quagga_0.99.4.bb [new file with mode: 0644]

index f5c6378..34f4a6a 100644 (file)
@@ -1,4 +1,3 @@
-SECTION = "network"
 DESCRIPTION = "Quagga is a routing software suite, providing \
 implementations of OSPFv2, OSPFv3, RIP v1 and v2, RIPv3 and BGPv4 for \
 Unix platforms, particularly FreeBSD, Linux, Solaris and NetBSD. \
@@ -6,11 +5,14 @@ Quagga is a fork of GNU Zebra which was developed by Kunihiro \
 Ishiguro. The Quagga tree aims to build a more involved community \
 around Quagga than the current centralised model of GNU Zebra."
 HOMEPAGE = "http://www.quagga.net/"
+SECTION = "network"
+MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
 LICENSE = "GPL"
 DEPENDS = "readline ncurses perl-native"
-PR = "r0"
 
-SRC_URI = "http://www.quagga.net/download/quagga-${PV}.tar.gz \
+# ${QUAGGASUBDIR} is deal with old versions. Set to "/attic" for old
+# versions and leave it empty for recent versions.
+SRC_URI = "http://www.quagga.net/download${QUAGGASUBDIR}/quagga-${PV}.tar.gz \
           file://fix-for-lib-inpath.patch;patch=1 \
           file://quagga.init \
           file://quagga.default \
@@ -53,11 +55,11 @@ EXTRA_OECONF = "--prefix=${prefix} \
 
 # Split into a main package and seperate per-protocol packages
 PACKAGES = "${PN} \
-           ${PN}-ospfd ${PN}-ospf6d ${PN}-bpgd ${PN}-ripd ${PN}-ripngd ${PN}-isisd \
+           ${PN}-ospfd ${PN}-ospf6d ${PN}-bgpd ${PN}-ripd ${PN}-ripngd ${PN}-isisd \
            ${PN}-ospfclient ${PN}-watchquagga ${PN}-dev ${PN}-doc"
 FILES_${PN}-ospfd      = "${libdir}/quagga/ospfd /usr/lib/libospf.so.*"
 FILES_${PN}-ospf6d     = "${libdir}/quagga/ospf6d"
-FILES_${PN}-bpgd       = "${libdir}/quagga/bgpd"
+FILES_${PN}-bgpd       = "${libdir}/quagga/bgpd"
 FILES_${PN}-ripd       = "${libdir}/quagga/ripd"
 FILES_${PN}-ripngd     = "${libdir}/quagga/ripngd"
 FILES_${PN}-isisd      = "${libdir}/quagga/isisd"
@@ -77,7 +79,7 @@ PKG_${PN}-ospfclient  = ${PN}-ospfclient
 # Each of the per-protocol packages depends on the main package
 RDEPENDS_${PN}-ospfd   = ${PN}
 RDEPENDS_${PN}-ospf6d  = ${PN}
-RDEPENDS_${PN}-bpgd    = ${PN}
+RDEPENDS_${PN}-bgpd    = ${PN}
 RDEPENDS_${PN}-ripd    = ${PN}
 RDEPENDS_${PN}-ripngd  = ${PN}
 RDEPENDS_${PN}-isisd   = ${PN}
@@ -106,12 +108,16 @@ do_install () {
 
 # Add quagga's user and groups
 pkg_postinst_${PN} () {
-        grep -q quagga: /etc/group || addgroup quagga
+       grep -q quagga: /etc/group || addgroup quagga
        grep -q quaggavty: /etc/group || addgroup quaggavty
-        grep -q quagga: /etc/passwd || adduser --disabled-password --home=/var/run/quagga/ --ingroup quagga -g "Quagga routing suite" quagga
+       grep -q quagga: /etc/passwd || adduser --disabled-password --home=/var/run/quagga/ --ingroup quagga -g "Quagga routing suite" quagga
 }
 
 # Stop apps before uninstall
+pkg_prerm_${PN} () {
+       ${sysconfdir}/init.d/quagga stop
+}
+
 pkg_prerm_${PN}-ospfd () {
        ${sysconfdir}/init.d/quagga stop ospfd
 }
@@ -121,7 +127,7 @@ pkg_prerm_${PN}-ospf6d () {
 }
 
 pkg_prerm_${PN}-bgpd () {
-       ${sysconfdir}/init.d/quagga stop bpgd
+       ${sysconfdir}/init.d/quagga stop bgpd
 }
 
 pkg_prerm_${PN}-ripd () {
index 9214ea6..2789d7e 100644 (file)
@@ -1,3 +1,4 @@
+QUAGGASUBDIR = "/attic"
 include quagga.inc
-PR = "r0"
+PR = "r1"
 SRC_URI += "file://ospfd-no-opaque-lsa-fix.patch;patch=1"
index 52b4734..e61c80d 100644 (file)
@@ -1,2 +1,2 @@
 include quagga.inc
-PR = "r0"
+PR = "r1"
diff --git a/packages/quagga/quagga_0.99.4.bb b/packages/quagga/quagga_0.99.4.bb
new file mode 100644 (file)
index 0000000..52b4734
--- /dev/null
@@ -0,0 +1,2 @@
+include quagga.inc
+PR = "r0"