Hank Liou | f16037c | 2019-06-26 14:00:20 +0800 | [diff] [blame] | 1 | SRC_URI = "git://github.com/quanta-bmc/mac-address.git;protocol=git" |
| 2 | SRCREV = "${AUTOREV}" |
| 3 | |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${QUANTABASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
| 6 | |
| 7 | inherit autotools pkgconfig |
| 8 | inherit systemd |
| 9 | |
| 10 | DEPENDS += "systemd" |
| 11 | DEPENDS += "autoconf-archive-native" |
| 12 | |
| 13 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 14 | SRC_URI_append = " file://mac-address.service" |
| 15 | |
| 16 | HASHSTYLE = "gnu" |
| 17 | S = "${WORKDIR}/git" |
| 18 | CXXFLAGS += "-std=c++17" |
| 19 | |
| 20 | do_install_append() { |
| 21 | install -d ${D}${systemd_unitdir}/system/ |
| 22 | install -m 0644 ${WORKDIR}/mac-address.service \ |
| 23 | ${D}${systemd_unitdir}/system |
| 24 | } |
| 25 | |
| 26 | SYSTEMD_PACKAGES = "${PN}" |
| 27 | SYSTEMD_SERVICE_${PN} += "mac-address.service" |