diff options
| -rw-r--r-- | meta-networking/recipes-support/cifs/cifs-utils_6.13.bb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/meta-networking/recipes-support/cifs/cifs-utils_6.13.bb b/meta-networking/recipes-support/cifs/cifs-utils_6.13.bb index 41a9b8e76a..bf8b18043a 100644 --- a/meta-networking/recipes-support/cifs/cifs-utils_6.13.bb +++ b/meta-networking/recipes-support/cifs/cifs-utils_6.13.bb | |||
| @@ -22,10 +22,21 @@ PACKAGECONFIG[pam] = "--enable-pam --with-pamdir=${base_libdir}/security,--disab | |||
| 22 | 22 | ||
| 23 | inherit autotools pkgconfig | 23 | inherit autotools pkgconfig |
| 24 | 24 | ||
| 25 | do_configure_prepend() { | ||
| 26 | # want installed to /usr/sbin rather than /sbin to be DISTRO_FEATURES usrmerge compliant | ||
| 27 | # must override ROOTSBINDIR (default '/sbin'), | ||
| 28 | # setting --exec-prefix or --prefix in EXTRA_OECONF does not work | ||
| 29 | if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','fakse',d)}; then | ||
| 30 | export ROOTSBINDIR=${sbindir} | ||
| 31 | fi | ||
| 32 | } | ||
| 33 | |||
| 25 | do_install_append() { | 34 | do_install_append() { |
| 26 | # Remove empty /usr/bin and /usr/sbin directories since the mount helper | 35 | if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','false','true',d)}; then |
| 27 | # is installed to /sbin | 36 | # Remove empty /usr/bin and /usr/sbin directories since the mount helper |
| 28 | rmdir --ignore-fail-on-non-empty ${D}${bindir} ${D}${sbindir} | 37 | # is installed to /sbin |
| 38 | rmdir --ignore-fail-on-non-empty ${D}${bindir} ${D}${sbindir} | ||
| 39 | fi | ||
| 29 | } | 40 | } |
| 30 | 41 | ||
| 31 | FILES_${PN} += "${base_libdir}/security" | 42 | FILES_${PN} += "${base_libdir}/security" |
