Hank Liou | b1c33ab | 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" |
Brad Bishop | 170929b | 2019-09-13 13:04:22 -0400 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Hank Liou | b1c33ab | 2019-06-26 14:00:20 +0800 | [diff] [blame] | 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" |
Hank Liou | 0e9942e | 2019-10-31 09:39:53 +0800 | [diff] [blame] | 15 | SRC_URI_append = " file://config.txt" |
| 16 | |
| 17 | FILES_${PN}_append = " ${datadir}/mac-address/config.txt" |
Hank Liou | b1c33ab | 2019-06-26 14:00:20 +0800 | [diff] [blame] | 18 | |
| 19 | HASHSTYLE = "gnu" |
| 20 | S = "${WORKDIR}/git" |
| 21 | CXXFLAGS += "-std=c++17" |
| 22 | |
| 23 | do_install_append() { |
| 24 | install -d ${D}${systemd_unitdir}/system/ |
| 25 | install -m 0644 ${WORKDIR}/mac-address.service \ |
| 26 | ${D}${systemd_unitdir}/system |
Hank Liou | 0e9942e | 2019-10-31 09:39:53 +0800 | [diff] [blame] | 27 | |
| 28 | install -d ${D}${datadir}/mac-address |
| 29 | install -m 0644 -D ${WORKDIR}/config.txt \ |
| 30 | ${D}${datadir}/mac-address/config.txt |
Hank Liou | b1c33ab | 2019-06-26 14:00:20 +0800 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | SYSTEMD_PACKAGES = "${PN}" |
Hank Liou | 0e9942e | 2019-10-31 09:39:53 +0800 | [diff] [blame] | 34 | SYSTEMD_SERVICE_${PN} += "mac-address.service" |