Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "Kernel based automounter for linux" |
| 2 | SECTION = "utils" |
| 3 | LICENSE = "GPL-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" |
| 5 | |
| 6 | DEPENDS += "libtirpc flex-native bison-native" |
| 7 | |
| 8 | inherit autotools-brokensep systemd |
| 9 | |
| 10 | SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \ |
| 11 | file://autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch \ |
| 12 | file://no-bash.patch \ |
| 13 | file://cross.patch \ |
| 14 | file://libtirpc.patch \ |
| 15 | file://libtirpc-name-clash-backout.patch \ |
| 16 | file://autofs-5.0.7-do-not-check-for-modprobe.patch \ |
| 17 | file://fix_disable_ldap.patch \ |
| 18 | file://autofs-5.0.7-fix-lib-deps.patch \ |
| 19 | file://add-the-needed-stdarg.h.patch \ |
| 20 | file://using-pkg-config-to-detect-libxml-2.0-and-krb5.patch \ |
| 21 | file://force-STRIP-to-emtpy.patch \ |
| 22 | file://remove-bashism.patch \ |
| 23 | file://fix-the-YACC-rule-to-fix-a-building-failure.patch \ |
| 24 | " |
| 25 | |
| 26 | SRC_URI[md5sum] = "e143df66b614b8cdb1ff533735f8e12d" |
| 27 | SRC_URI[sha256sum] = "795419383b120d15699ab3b89ea0f3d029f6fb28405a83982d305c4b7b61130f" |
| 28 | |
| 29 | inherit update-rc.d pkgconfig |
| 30 | |
| 31 | INITSCRIPT_NAME = "autofs" |
| 32 | INITSCRIPT_PARAMS = "defaults" |
| 33 | |
| 34 | # FIXME: modules/Makefile has crappy rules that don't obey LDFLAGS |
| 35 | CFLAGS += "${LDFLAGS}" |
| 36 | |
| 37 | PACKAGECONFIG[systemd] = "--with-systemd=${systemd_unitdir}/system,--without-systemd,systemd" |
| 38 | |
| 39 | PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" |
| 40 | |
| 41 | EXTRA_OEMAKE = "DONTSTRIP=1" |
| 42 | EXTRA_OECONF += "--disable-mount-locking \ |
| 43 | --enable-ignore-busy --with-openldap=no \ |
| 44 | --with-sasl=no --with-libtirpc=yes \ |
| 45 | --with-path=${STAGING_BINDIR_NATIVE} \ |
| 46 | " |
| 47 | CACHED_CONFIGUREVARS = "ac_cv_path_RANLIB=${RANLIB} \ |
| 48 | ac_cv_path_RPCGEN=rpcgen \ |
| 49 | " |
| 50 | |
| 51 | do_configure_prepend () { |
| 52 | sed -e "s:filagdir:flagdir:" -i configure.in |
| 53 | if [ ! -e acinclude.m4 ]; then |
| 54 | cp aclocal.m4 acinclude.m4 |
| 55 | fi |
| 56 | } |
| 57 | |
| 58 | do_install_append () { |
| 59 | if [ -d ${D}/run ]; then |
| 60 | rmdir ${D}/run |
| 61 | fi |
| 62 | if [ -d ${D}${localstatedir}/run ]; then |
| 63 | rmdir ${D}${localstatedir}/run |
| 64 | fi |
| 65 | } |
| 66 | |
| 67 | INSANE_SKIP_${PN} = "dev-so" |
| 68 | |
| 69 | RPROVIDES_${PN} += "${PN}-systemd" |
| 70 | RREPLACES_${PN} += "${PN}-systemd" |
| 71 | RCONFLICTS_${PN} += "${PN}-systemd" |
| 72 | SYSTEMD_SERVICE_${PN} = "autofs.service" |