summaryrefslogtreecommitdiffstats
path: root/meta-xfce/recipes-xfce/xfce4-session/machine-host.bb
blob: c79197445e07e2f37df0e6cb24105e9cccc38e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SUMMARY = "Meta package adding machine name to known hosts"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

ALLOW_EMPTY_${PN} = "1"

LOCALHOSTMACHINE = "127.0.0.1    ${MACHINE}"

# on some machines starting applications as xfce4-terminal take ages without
# machine name in hosts
pkg_postinst_${PN} () {
if ! grep -q '${LOCALHOSTMACHINE}' $D/etc/hosts ; then
    echo '${LOCALHOSTMACHINE}' >> $D/etc/hosts
fi
}

PACKAGE_ARCH = "${MACHINE_ARCH}"