blob: d9fda7ccb0dc5cbfd86fe637b1065b7a5a89a2cf [file] [log] [blame]
Hank Lioub1c33ab2019-06-26 14:00:20 +08001SRC_URI = "git://github.com/quanta-bmc/mac-address.git;protocol=git"
2SRCREV = "${AUTOREV}"
3
4LICENSE = "Apache-2.0"
Brad Bishop170929b2019-09-13 13:04:22 -04005LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Hank Lioub1c33ab2019-06-26 14:00:20 +08006
7inherit autotools pkgconfig
8inherit systemd
9
10DEPENDS += "systemd"
11DEPENDS += "autoconf-archive-native"
12
13FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
14SRC_URI_append = " file://mac-address.service"
Hank Liou0e9942e2019-10-31 09:39:53 +080015SRC_URI_append = " file://config.txt"
16
17FILES_${PN}_append = " ${datadir}/mac-address/config.txt"
Hank Lioub1c33ab2019-06-26 14:00:20 +080018
19HASHSTYLE = "gnu"
20S = "${WORKDIR}/git"
21CXXFLAGS += "-std=c++17"
22
23do_install_append() {
24 install -d ${D}${systemd_unitdir}/system/
25 install -m 0644 ${WORKDIR}/mac-address.service \
26 ${D}${systemd_unitdir}/system
Hank Liou0e9942e2019-10-31 09:39:53 +080027
28 install -d ${D}${datadir}/mac-address
29 install -m 0644 -D ${WORKDIR}/config.txt \
30 ${D}${datadir}/mac-address/config.txt
Hank Lioub1c33ab2019-06-26 14:00:20 +080031}
32
33SYSTEMD_PACKAGES = "${PN}"
Hank Liou0e9942e2019-10-31 09:39:53 +080034SYSTEMD_SERVICE_${PN} += "mac-address.service"