diff options
Diffstat (limited to 'meta-networking/recipes-support/drbd/drbd-utils_9.5.0.bb')
-rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils_9.5.0.bb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/drbd/drbd-utils_9.5.0.bb b/meta-networking/recipes-support/drbd/drbd-utils_9.5.0.bb index 0e3f952c9..bd1e8576f 100644 --- a/meta-networking/recipes-support/drbd/drbd-utils_9.5.0.bb +++ b/meta-networking/recipes-support/drbd/drbd-utils_9.5.0.bb | |||
@@ -33,9 +33,20 @@ EXTRA_OECONF = " \ | |||
33 | --with-distro debian \ | 33 | --with-distro debian \ |
34 | --with-initscripttype=both \ | 34 | --with-initscripttype=both \ |
35 | --with-systemdunitdir=${systemd_unitdir}/system \ | 35 | --with-systemdunitdir=${systemd_unitdir}/system \ |
36 | --without-manual\ | 36 | --without-manual \ |
37 | " | 37 | " |
38 | 38 | ||
39 | do_configure_prepend() { | ||
40 | # move the the file under folder /lib/drbd/ to /usr/lib/drbd when usrmerge enabled | ||
41 | if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then | ||
42 | for m_file in `find ${S} -name 'Makefile.in'`; do | ||
43 | sed -i -e "s;\$(DESTDIR)\/lib\/drbd;\$(DESTDIR)\${nonarch_libdir}\/drbd;g" $m_file | ||
44 | done | ||
45 | # move the the file under folder /lib/udev/ to /usr/lib/udev when usrmerge enabled | ||
46 | sed -i -e "s;default_udevdir=/lib/udev;default_udevdir=\${prefix}/lib/udev;g" ${S}/configure.ac | ||
47 | fi | ||
48 | |||
49 | } | ||
39 | do_install_append() { | 50 | do_install_append() { |
40 | # don't install empty /var/lock to avoid conflict with base-files | 51 | # don't install empty /var/lock to avoid conflict with base-files |
41 | rm -rf ${D}${localstatedir}/lock | 52 | rm -rf ${D}${localstatedir}/lock |