From 7196f3475fce75c6d9b7f9c623fa46fdafc22a12 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 19 Oct 2010 13:18:27 +0200 Subject: usermanual: update to new style staging Take a look at [1]. [1] http://wiki.openembedded.org/index.php/Legacy_staging Signed-off-by: Paul Menzel Signed-off-by: Khem Raj --- docs/usermanual/chapters/recipes.xml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'docs/usermanual/chapters/recipes.xml') diff --git a/docs/usermanual/chapters/recipes.xml b/docs/usermanual/chapters/recipes.xml index acb0705c90..0c841798be 100644 --- a/docs/usermanual/chapters/recipes.xml +++ b/docs/usermanual/chapters/recipes.xml @@ -883,14 +883,31 @@ S = "${WORKDIR}/widgets" libraries and headers. Making the libraries, headers and binaries available for use by - other recipes on the host is called staging and is performed by the - stage task in the recipe. Any recipes that contain - items that are required to build other packages should have a - stage task to make sure the items are all correctly + other recipes on the host is called staging and is performed automatically + derived from task install. Any recipes that contain + items that are required additionally to build other packages should have a + install_append task to make sure the items are all correctly placed into the staging area. The following example from clamav shows the - clamav library and header being placed into the staging area:do_stage () { - oe_libinstall -a -so libclamav ${STAGING_LIBDIR} - install -m 0644 libclamav/clamav.h ${STAGING_INCDIR} + clamav library and header being placed into the staging area:do_install_append() { + install -m 0755 -d ${D}${sysconfdir}/default/volatiles \ + ${D}${sysconfdir}/init.d ${D}${docdir}/clamav + + # Save the installed clamd.conf in the doc dir and then install our new one + install -m 0755 ${D}${sysconfdir}/clamd.conf ${D}${docdir}/clamav/clamd.conf.example + install -m 0755 ${WORKDIR}/clamd.conf ${D}${sysconfdir}/clamd.conf + + # Save the installed freshclam.conf in the doc dir and then install our new one + install -m 0755 ${D}${sysconfdir}/freshclam.conf ${D}${docdir}/clamav/freshclam.conf.example + + # Install our config files and init scripts + install -m 0755 ${WORKDIR}/freshclam.conf ${D}${sysconfdir}/freshclam.conf + install -m 0755 ${WORKDIR}/clamav-daemon.init ${D}${sysconfdir}/init.d/clamav-daemon + install -m 0755 ${WORKDIR}/clamav-freshclam.init ${D}${sysconfdir}/init.d/clamav-freshclam + + # We need some /var directories + for i in 03_clamav-daemon 03_clamav-freshclam 03_clamav-data; do + install -m 0644 ${WORKDIR}/volatiles.$i ${D}${sysconfdir}/default/volatiles/$i + done } The following from the p3scan recipe shows the path to the clamav -- cgit 1.2.3-korg