summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2012-08-05 21:48:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-06 14:36:33 +0100
commitb7134e8f76026d15a5e35c6a2e5d77d5e48c2787 (patch)
treeb70953d318524e234adab72d061d4e81221f4ae6 /meta/recipes-connectivity
parent3be575babcdb12f95f4882d3c42bdf3ba1ec1900 (diff)
downloadopenembedded-core-b7134e8f76026d15a5e35c6a2e5d77d5e48c2787.tar.gz
openembedded-core-b7134e8f76026d15a5e35c6a2e5d77d5e48c2787.tar.bz2
openembedded-core-b7134e8f76026d15a5e35c6a2e5d77d5e48c2787.zip
openssh: use ${localstatedir} instead of /var for packaging
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/openssh/openssh_6.0p1.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh_6.0p1.bb b/meta/recipes-connectivity/openssh/openssh_6.0p1.bb
index 376023c635..8757f82b31 100644
--- a/meta/recipes-connectivity/openssh/openssh_6.0p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_6.0p1.bb
@@ -7,7 +7,7 @@ SECTION = "console/network"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENCE;md5=e326045657e842541d3f35aada442507"
-PR = "r2"
+PR = "r3"
DEPENDS = "zlib openssl"
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
@@ -78,7 +78,7 @@ do_install_append () {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/sshd
rm -f ${D}${bindir}/slogin ${D}${datadir}/Ssh.bin
- rmdir ${D}/var/run/sshd ${D}/var/run ${D}/var
+ rmdir ${D}${localstatedir}/run/sshd ${D}${localstatedir}/run ${D}${localstatedir}
}
ALLOW_EMPTY_${PN} = "1"