autofs: fix parallel build
[opendreambox.git] / meta-opendreambox / recipes-daemons / autofs / autofs_5.0.7.bbappend
1 PRINC := "${@int(PRINC) + 1}"
2
3 SRC_URI += "file://autofs-5.0.7-link-autofs.a-into-executable-only.patch \
4             file://autofs-5.0.7-fix-dependencies-for-rpcgen.patch \
5             file://11default_automaster_location.patch \
6             file://12disable_default_auto_master.patch \
7             file://default-autofs-remove-USE_MISC_DEVICE.patch \
8             file://autofs.init"
9
10 inherit systemd
11
12 do_install_append() {
13     if ! ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
14         rm -r ${D}${systemd_unitdir}
15         rmdir --ignore-fail-on-non-empty ${D}${base_libdir}
16     fi
17     install -d ${D}${INIT_D_DIR}
18     install -m755 ${WORKDIR}/autofs.init ${D}${INIT_D_DIR}/${INITSCRIPT_NAME}
19 }
20
21 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
22
23 SYSTEMD_SERVICE_${PN} = "autofs.service"