1 SUMMARY = "Setting files for cluster network for the AGL Demonstrator"
2 DESCRIPTION = "Setting files for cluster network for the AGL Demonstrator"
4 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
6 inherit systemd allarch
8 SRC_URI = "file://cluster-demo-network-conf@.service \
9 file://cluster-demo-network-conf.sh \
12 S = "${WORKDIR}/sources"
15 # Network device for dedicated connection to cluster
16 AGL_CLUSTER_NET_DEVICE ?= "eth1"
18 do_configure[noexec] = "1"
19 do_compile[noexec] = "1"
22 # Install helper script
23 install -d ${D}${sbindir}
24 install -m 0755 ${UNPACKDIR}/cluster-demo-network-conf.sh ${D}${sbindir}/
26 # Install service unit
27 install -d ${D}${systemd_system_unitdir}
28 install -m 0644 ${UNPACKDIR}/cluster-demo-network-conf@.service ${D}${systemd_system_unitdir}/
30 # Add symlink to network.target.wants
31 install -d ${D}${sysconfdir}/systemd/system/network.target.wants
32 ln -s ${systemd_system_unitdir}/cluster-demo-network-conf@.service \
33 ${D}${sysconfdir}/systemd/system/network.target.wants/cluster-demo-network-conf@${AGL_CLUSTER_NET_DEVICE}.service
36 FILES:${PN} += "${systemd_system_unitdir}"