2 SUMMARY = "Smack network labels configuration"
3 DESCRIPTION = "Provide service that will be labeling the network rules"
4 LICENSE = "BSD-3-Clause"
5 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
6 RDEPENDS_${PN} = "python"
8 SRC_URI += "file://smacknet \
9 file://smacknet.service \
15 inherit features_check
16 REQUIRED_DISTRO_FEATURES = "smack"
18 #netlabel configuration service
19 SYSTEMD_SERVICE_${PN} = "smacknet.service"
20 SYSTEMD_AUTO_ENABLE = "enable"
22 install -d ${D}${bindir}
23 install -m 0551 ${WORKDIR}/smacknet ${D}${bindir}
25 install -d -m 755 ${D}${systemd_unitdir}/system
26 install -m 644 ${WORKDIR}/smacknet.service ${D}${systemd_unitdir}/system
27 sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/smacknet.service