summaryrefslogtreecommitdiff
path: root/meta-google/recipes-google/nftables/nftables-systemd.bb
blob: 03694c8c545e005c3585262b0399f772fd9c86ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SUMMARY = "nftables systemd wrapper"
DESCRIPTION = "nftables systemd wrapper"
PR = "r1"
PV = "1.0"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

inherit systemd

SRC_URI += "file://nftables.service"
SYSTEMD_SERVICE_${PN} += "nftables.service"

RDEPENDS_${PN} += " \
  bash \
  nftables \
  "

do_install() {
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/nftables.service ${D}${systemd_system_unitdir}
}