William A. Kennington III | 1e26810 | 2021-03-08 13:00:12 -0800 | [diff] [blame] | 1 | SUMMARY = "Shell functions for manipulating network addresses" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 5 | |
| 6 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 7 | SRC_URI += "file://lib.sh" |
| 8 | SRC_URI += "file://test.sh" |
| 9 | S = "${WORKDIR}" |
| 10 | |
| 11 | DATA = "${datadir}/network" |
| 12 | FILES_${PN} += "${DATA}" |
| 13 | |
| 14 | DEPENDS += "test-sh" |
| 15 | |
| 16 | do_compile() { |
| 17 | SYSROOT="$PKG_CONFIG_SYSROOT_DIR" bash test.sh || exit |
| 18 | } |
| 19 | |
| 20 | do_install_append() { |
| 21 | install -d -m0755 ${D}${DATA} |
| 22 | install -m0644 lib.sh ${D}${DATA}/ |
| 23 | } |