summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/quagga/files/volatiles.03_quagga2
-rw-r--r--packages/quagga/quagga.inc13
-rw-r--r--packages/quagga/quagga_0.99.4.bb2
-rw-r--r--packages/quagga/quagga_0.99.6.bb2
4 files changed, 14 insertions, 5 deletions
diff --git a/packages/quagga/files/volatiles.03_quagga b/packages/quagga/files/volatiles.03_quagga
new file mode 100644
index 0000000000..672fec6b92
--- /dev/null
+++ b/packages/quagga/files/volatiles.03_quagga
@@ -0,0 +1,2 @@
+# <type> <owner> <group> <mode> <path> <linksource>
+d quagga quagga 0755 /var/run/quagga none
diff --git a/packages/quagga/quagga.inc b/packages/quagga/quagga.inc
index fa5f5b2c90..6adba78063 100644
--- a/packages/quagga/quagga.inc
+++ b/packages/quagga/quagga.inc
@@ -28,7 +28,8 @@ SRC_URI = "http://www.quagga.net/download${QUAGGASUBDIR}/quagga-${PV}.tar.gz \
file://quagga.init \
file://quagga.default \
file://watchquagga.init \
- file://watchquagga.default"
+ file://watchquagga.default \
+ file://volatiles.03_quagga"
inherit autotools update-rc.d
@@ -58,11 +59,13 @@ EXTRA_OECONF = "--prefix=${prefix} \
do_install () {
# Install init script and default settings
- install -m 0755 -d ${D}${sysconfdir}/default ${D}${sysconfdir}/init.d ${D}${sysconfdir}/quagga
+ install -m 0755 -d ${D}${sysconfdir}/default ${D}${sysconfdir}/init.d \
+ ${D}${sysconfdir}/quagga ${D}${sysconfdir}/default/volatiles
install -m 0644 ${WORKDIR}/quagga.default ${D}${sysconfdir}/default/quagga
install -m 0644 ${WORKDIR}/watchquagga.default ${D}${sysconfdir}/default/watchquagga
install -m 0755 ${WORKDIR}/quagga.init ${D}${sysconfdir}/init.d/quagga
install -m 0755 ${WORKDIR}/watchquagga.init ${D}${sysconfdir}/init.d/watchquagga
+ install -m 0644 ${WORKDIR}/volatiles.03_quagga ${D}${sysconfdir}/default/volatiles/volatiles.03_quagga
# Install quagga
oe_runmake install DESTDIR=${D} prefix=${prefix} \
libexecdir=${libexecdir}/quagga \
@@ -88,6 +91,7 @@ FILES_${PN}-doc = "/usr/share/doc /usr/share/man /usr/share/info"
FILES_${PN}-watchquagga = "${libdir}/quagga/watchquagga ${sysconfdir}/default/watchquagga \
${sysconfdir}/init.d/watchquagga"
FILES_${PN} = "${bindir}/vtysh ${libdir}/quagga/zebra /usr/lib/libzebra*.so.* \
+ ${sysconfdir}/default/volatiles/volatiles.03_quagga \
${sysconfdir}/quagga \
${sysconfdir}/default/quagga ${sysconfdir}/init.d/quagga"
@@ -111,7 +115,10 @@ INITSCRIPT_PARAMS_${PN}-watchquagga = "defaults 90 10"
pkg_postinst_${PN} () {
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/ --system \
+ --ingroup quagga --no-create-home -g "Quagga routing suite" quagga
+ /etc/init.d/populate-volatile.sh update
}
# Stop apps before uninstall
diff --git a/packages/quagga/quagga_0.99.4.bb b/packages/quagga/quagga_0.99.4.bb
index 5b3f76a762..5231a5da55 100644
--- a/packages/quagga/quagga_0.99.4.bb
+++ b/packages/quagga/quagga_0.99.4.bb
@@ -1,3 +1,3 @@
-PR = "r4"
+PR = "r5"
require quagga.inc
diff --git a/packages/quagga/quagga_0.99.6.bb b/packages/quagga/quagga_0.99.6.bb
index 64cc2af1e2..0595a3c94b 100644
--- a/packages/quagga/quagga_0.99.6.bb
+++ b/packages/quagga/quagga_0.99.6.bb
@@ -1,3 +1,3 @@
-PR = "r1"
+PR = "r2"
require quagga.inc