aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/portmap/portmap_6.0.bbappend
blob: 0432982ebd5315e4e695ef2c0117e6c22116c3d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PRINC := "${@int(PRINC) + 5}"

# Find local ${PN} directory
FILESEXTRAPATHS := "${THISDIR}/${PN}"

inherit systemd

SYSTEMD_SERVICE = "portmap.service"
SYSTEMD_AUTO_ENABLE = "disable"

FILES_${PN} =+ "${systemd_unitdir}/system/portmap.service"

SRC_URI_append = " \
    file://portmap.service \
    "

do_install_append() {
    if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
        install -d ${D}${systemd_unitdir}/system/
        install -m 0644 ${WORKDIR}/portmap.service ${D}${systemd_unitdir}/system
    fi
}