aboutsummaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/a/a_1.0.bb
blob: 5eb0322bcec3b3d3485e140cb075ebbb8fb6f9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
LICENSE = "MIT"

LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

RDEPENDS_${PN} = "z"

ALLOW_EMPTY_${PN} = "1"

pkg_postinst_${PN} () {
   if test "x$D" != "x"; then
      # Need to run on first boot
      exit 1
   else
      if test -e /etc/z-test ; then
          echo 'success' > /etc/a-test
      else
          echo 'fail to install z first!' >&2
          exit 1
      fi
   fi
}