Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "Dispatcher service for systemd-networkd connection status changes" |
| 2 | DESCRIPTION = "This daemon is similar to NetworkManager-dispatcher, but is much \ |
| 3 | more limited in the types of events it supports due to the limited nature of \ |
| 4 | systemd-networkd(8)." |
| 5 | AUTHOR = "Clayton Craft and others" |
| 6 | |
| 7 | LICENSE = "GPLv3" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d" |
| 9 | |
Brad Bishop | 00ab237 | 2019-10-14 11:06:18 -0400 | [diff] [blame] | 10 | inherit distro_features_check systemd |
| 11 | |
| 12 | RDEPENDS_${PN} = "python3-pygobject python3-dbus" |
| 13 | REQUIRED_DISTRO_FEATURES = "systemd" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 14 | |
| 15 | SRC_URI = "https://gitlab.com/craftyguy/networkd-dispatcher/-/archive/${PV}/networkd-dispatcher-${PV}.tar.bz2" |
| 16 | SRC_URI[md5sum] = "304d7dcc21331ea295e207f8493cb8d8" |
| 17 | SRC_URI[sha256sum] = "21f84c3646a043329dc64787e4e58dfce592b2559b0e3069af82c469805660c2" |
| 18 | |
Brad Bishop | 00ab237 | 2019-10-14 11:06:18 -0400 | [diff] [blame] | 19 | SYSTEMD_PACKAGES = "${PN}" |
| 20 | SYSTEMD_SERVICE_${PN} = "networkd-dispatcher.service" |
| 21 | SYSTEMD_AUTO_ENABLE = "disable" |
| 22 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 23 | # Nothing to build, just a python script to install |
| 24 | do_configure[noexec] = "1" |
| 25 | do_compile[noexec] = "1" |
| 26 | |
| 27 | do_install() { |
Brad Bishop | 665fd02 | 2019-08-26 01:32:28 -0400 | [diff] [blame] | 28 | install -D -m 0755 ${S}/networkd-dispatcher ${D}${bindir}/networkd-dispatcher |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 29 | install -D -m 0644 ${S}/networkd-dispatcher.service ${D}/${systemd_system_unitdir}/networkd-dispatcher.service |
| 30 | install -D -m 0644 ${S}/networkd-dispatcher.conf ${D}/${sysconfdir}/conf.d/networkd-dispatcher.conf |
| 31 | } |