xref: /OK3568_Linux_fs/buildroot/package/autofs/autofs.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# autofs
4#
5################################################################################
6
7AUTOFS_VERSION = 5.1.7
8AUTOFS_SOURCE = autofs-$(AUTOFS_VERSION).tar.xz
9AUTOFS_SITE = $(BR2_KERNEL_MIRROR)/linux/daemons/autofs/v5
10AUTOFS_LICENSE = GPL-2.0+
11AUTOFS_LICENSE_FILES = COPYING COPYRIGHT
12AUTOFS_DEPENDENCIES = host-flex host-bison host-pkgconf host-nfs-utils
13
14# autofs looks on the build machine for the path of modprobe, mount,
15# umount and fsck programs so tell it explicitly where they will be
16# located on the target.
17AUTOFS_CONF_ENV = \
18	ac_cv_path_E2FSCK=/sbin/fsck \
19	ac_cv_path_E3FSCK=no \
20	ac_cv_path_E4FSCK=no \
21	ac_cv_path_KRB5_CONFIG=no \
22	ac_cv_path_MODPROBE=/sbin/modprobe \
23	ac_cv_path_MOUNT=/bin/mount \
24	ac_cv_path_MOUNT_NFS=/usr/sbin/mount.nfs \
25	ac_cv_path_UMOUNT=/bin/umount \
26	ac_cv_linux_procfs=yes
27
28# instead of looking in the PATH like any reasonable package, autofs
29# configure looks only in an hardcoded search path for host tools,
30# which we have to override with --with-path.
31AUTOFS_CONF_OPTS = \
32	--disable-mount-locking \
33	--enable-ignore-busy \
34	--without-openldap \
35	--without-sasl \
36	--with-path="$(BR_PATH)" \
37	--with-hesiod=no
38
39AUTOFS_MAKE_ENV = DONTSTRIP=1
40
41ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
42AUTOFS_CONF_OPTS += --with-libtirpc
43AUTOFS_DEPENDENCIES += libtirpc
44else
45AUTOFS_CONF_OPTS += --without-libtirpc
46endif
47
48$(eval $(autotools-package))
49