[OE-core] [PATCH] openssh: enable PAM at runtime based on DISTRO_FEATURES
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed Feb 19 20:20:19 UTC 2014
On 19 February 2014 09:46:12 Koen Kooi <koen.kooi at linaro.org> wrote:
> +++ b/meta/recipes-connectivity/openssh/openssh_6.4p1.bb
> @@ -82,6 +82,8 @@ do_install_append () {
> if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam"
> ]; then
> install -d ${D}${sysconfdir}/pam.d
> install -m 0755 ${WORKDIR}/sshd ${D}${sysconfdir}/pam.d/sshd
I'd rephrase the above to use one install -D and pass both files below to
just one sed.
thanks,
> + sed -i -e 's:#UsePAM no:UsePAM yes:' ${WORKDIR}/sshd_config
> + sed -i -e 's:#UsePAM no:UsePAM yes:' ${D}${sysconfdir}/ssh/sshd_config
> fi
>
> install -d ${D}${sysconfdir}/init.d
> --
> 1.8.4.2
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
Sent with AquaMail for Android
http://www.aqua-mail.com
More information about the Openembedded-core
mailing list