blob: c79197445e07e2f37df0e6cb24105e9cccc38e99 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Meta package adding machine name to known hosts"
2LICENSE = "MIT"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05003LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004
5ALLOW_EMPTY_${PN} = "1"
6
7LOCALHOSTMACHINE = "127.0.0.1 ${MACHINE}"
8
9# on some machines starting applications as xfce4-terminal take ages without
10# machine name in hosts
11pkg_postinst_${PN} () {
12if ! grep -q '${LOCALHOSTMACHINE}' $D/etc/hosts ; then
13 echo '${LOCALHOSTMACHINE}' >> $D/etc/hosts
14fi
15}
16
17PACKAGE_ARCH = "${MACHINE_ARCH}"