summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb')
-rw-r--r--meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb90
1 files changed, 90 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb
new file mode 100644
index 0000000000..bc52f40d1c
--- /dev/null
+++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.9.bb
@@ -0,0 +1,90 @@
1SUMMARY = "Kernel based automounter for linux"
2SECTION = "utils"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=ee9324a6f564bb2376b63878ac396798"
5
6DEPENDS += "libtirpc flex-native bison-native e2fsprogs openssl util-linux libnsl2"
7
8CFLAGS += "-I${STAGING_INCDIR}/tirpc"
9
10inherit autotools-brokensep systemd update-rc.d pkgconfig
11
12SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \
13 file://0001-no-bash.patch \
14 file://0002-using-pkg-config-to-detect-krb5.patch \
15 file://0003-force-STRIP-to-emtpy.patch \
16 file://0004-autofs.init.in-remove-bashism.patch \
17 file://0005-fix-the-YACC-rule-to-fix-a-building-failure.patch \
18 file://0006-Do-not-hardcode-path-for-pkg.m4.patch \
19 file://0007-Avoid-conflicts-between-sys-mount.h-and-linux-mount..patch \
20 file://0008-include-libgen.h-for-basename.patch \
21 file://0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch \
22 file://0010-autofs-5.1.9-Fix-incompatible-function-pointer-types.patch \
23 "
24SRC_URI[sha256sum] = "46c30b763ef896f4c4a6df6d62aaaef7afc410e0b7f50d52dbfc6cf728cacd4f"
25
26UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/"
27
28INITSCRIPT_NAME = "autofs"
29INITSCRIPT_PARAMS = "defaults"
30
31PACKAGECONFIG[systemd] = "--with-systemd=${systemd_unitdir}/system,--without-systemd,systemd"
32PACKAGECONFIG[openldap] = "--with-openldap=yes,--with-openldap=no,libxml2 openldap"
33PACKAGECONFIG[sasl] = "--with-sasl=yes,--with-sasl=no,cyrus-sasl krb5"
34
35PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
36
37EXTRA_OEMAKE = "DONTSTRIP=1"
38EXTRA_OECONF += "--disable-mount-locking \
39 --enable-ignore-busy \
40 --with-confdir=${sysconfdir}/default \
41 --with-fifodir=/run \
42 --with-flagdir=/run \
43 --with-libtirpc \
44 --with-mapdir=${sysconfdir} \
45 --with-path=${STAGING_BINDIR_NATIVE} \
46 --with-fifodir=${localstatedir}/run \
47 --with-flagdir=${localstatedir}/run \
48"
49CACHED_CONFIGUREVARS = "ac_cv_path_RANLIB=${RANLIB} \
50 ac_cv_path_RPCGEN=rpcgen \
51 initdir=${INIT_D_DIR} \
52 piddir=/run \
53"
54
55do_configure:prepend () {
56 if [ ! -e ${S}/acinclude.m4 ]; then
57 cp ${S}/aclocal.m4 ${S}/acinclude.m4
58 fi
59 cp ${STAGING_DATADIR_NATIVE}/aclocal/pkg.m4 .
60}
61
62do_install:append () {
63 # samples have been removed from SUBDIRS from 5.1.5, need to install separately
64 oe_runmake 'DESTDIR=${D}' install_samples
65
66 if [ -d ${D}/run ]; then
67 rmdir ${D}/run
68 fi
69 if [ -d ${D}${localstatedir}/run ]; then
70 rmdir ${D}${localstatedir}/run
71 fi
72 # On hybrid systemd/sysvinit builds, we need to install the sysvinit script by hand.
73 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
74 install -d -m 755 ${D}${INIT_D_DIR}
75 install -m 755 ${S}/samples/rc.autofs ${D}${INIT_D_DIR}/autofs
76 fi
77}
78SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
79
80# all the libraries are unversioned, so don't pack it on PN-dev
81SOLIBS = ".so"
82FILES_SOLIBSDEV = ""
83# Some symlinks are created in plugins dir e.g.
84# mount_nfs4.so -> mount_nfs.so
85INSANE_SKIP:${PN} = "dev-so"
86
87RPROVIDES:${PN} += "${PN}-systemd"
88RREPLACES:${PN} += "${PN}-systemd"
89RCONFLICTS:${PN} += "${PN}-systemd"
90SYSTEMD_SERVICE:${PN} = "autofs.service"