aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/xinetd
AgeCommit message (Expand)Author
2016-01-22xinetd: Fix build with muslKhem Raj
2016-01-11Add "CVE:" tag to current patches in OE-coreMariano Lopez
2015-12-08package_regex.inc: split GITTAGREGEX entries into recipe filesAlexander Kanavin
2015-11-16xinetd: install xinetd supported services configurationyadi.hu@windriver.com
2015-03-16xinetd: fix HOMEPAGE and SRC_URIRobert Yang
2014-11-04xinetd: add systemd unit fileChong Lu
2014-02-02Revert "Add missing RDEPENDS of initscripts-functions"Chen Qi
2014-01-06Add missing RDEPENDS of initscripts-functionsChen Qi
2014-01-02Replace one-line DESCRIPTION with SUMMARYPaul Eggleton
2013-12-14xinetd: add status of init.d commandLi Wang
2013-12-10xinetd: CVE-2013-4342Li Wang
2013-03-21xinted: Fix case where ${B} != ${S}Richard Purdie
2013-02-01xinetd: enable tcp-wrappers supportRoy.Li
2012-12-19xinetd: added gnu-configize for AArch64 supportMarcin Juszkiewicz
2012-08-06xinetd: use ${sbindir} and ${sysconfdir} instead of /usr/sbin and /etcJavier Martinez Canillas
2012-06-21xinetd: Add default options.Xin Ouyang
2012-05-17xinetd: Update to 2.3.15Saul Wold
2011-12-08OECore license fixes: meta/*Elizabeth Flanagan
2011-05-12recipes: Add Upstream-Status for multiple recipesYu Ke
2010-12-09SRC_URI Checksums AdditionalsSaul Wold
2010-08-27Major layout change to the packages directoryRichard Purdie
color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

import os

from wic import msger
from wic.pluginbase import SourcePlugin
from wic.utils.oe.misc import get_bitbake_var

class FSImagePlugin(SourcePlugin):
    """
    Add an already existing filesystem image to the partition layout.
    """

    name = 'fsimage'

    @classmethod
    def do_install_disk(cls, disk, disk_name, cr, workdir, oe_builddir,
                        bootimg_dir, kernel_dir, native_sysroot):
        """
        Called after all partitions have been prepared and assembled into a
        disk image. Do nothing.
        """
        pass

    @classmethod
    def do_configure_partition(cls, part, source_params, cr, cr_workdir,
                               oe_builddir, bootimg_dir, kernel_dir,
                               native_sysroot):
        """
        Called before do_prepare_partition(). Possibly prepare
        configuration files of some sort.
        """
        pass

    @classmethod
    def do_prepare_partition(cls, part, source_params, cr, cr_workdir,
                             oe_builddir, bootimg_dir, kernel_dir,
                             rootfs_dir, native_sysroot):
        """
        Called to do the actual content population for a partition i.e. it
        'prepares' the partition to be incorporated into the image.
        """
        if not bootimg_dir:
            bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE")
            if not bootimg_dir:
                msger.error("Couldn't find DEPLOY_DIR_IMAGE, exiting\n")

        msger.debug('Bootimg dir: %s' % bootimg_dir)

        if ('file' not in source_params):
            msger.error("No file specified\n")
            return

        src = os.path.join(bootimg_dir, source_params['file'])


        msger.debug('Preparing partition using image %s' % (src))
        part.prepare_rootfs_from_fs_image(cr_workdir, src, "")