diff options
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.bb | 90 |
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 @@ | |||
1 | SUMMARY = "Kernel based automounter for linux" | ||
2 | SECTION = "utils" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=ee9324a6f564bb2376b63878ac396798" | ||
5 | |||
6 | DEPENDS += "libtirpc flex-native bison-native e2fsprogs openssl util-linux libnsl2" | ||
7 | |||
8 | CFLAGS += "-I${STAGING_INCDIR}/tirpc" | ||
9 | |||
10 | inherit autotools-brokensep systemd update-rc.d pkgconfig | ||
11 | |||
12 | SRC_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 | " | ||
24 | SRC_URI[sha256sum] = "46c30b763ef896f4c4a6df6d62aaaef7afc410e0b7f50d52dbfc6cf728cacd4f" | ||
25 | |||
26 | UPSTREAM_CHECK_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/" | ||
27 | |||
28 | INITSCRIPT_NAME = "autofs" | ||
29 | INITSCRIPT_PARAMS = "defaults" | ||
30 | |||
31 | PACKAGECONFIG[systemd] = "--with-systemd=${systemd_unitdir}/system,--without-systemd,systemd" | ||
32 | PACKAGECONFIG[openldap] = "--with-openldap=yes,--with-openldap=no,libxml2 openldap" | ||
33 | PACKAGECONFIG[sasl] = "--with-sasl=yes,--with-sasl=no,cyrus-sasl krb5" | ||
34 | |||
35 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | ||
36 | |||
37 | EXTRA_OEMAKE = "DONTSTRIP=1" | ||
38 | EXTRA_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 | " | ||
49 | CACHED_CONFIGUREVARS = "ac_cv_path_RANLIB=${RANLIB} \ | ||
50 | ac_cv_path_RPCGEN=rpcgen \ | ||
51 | initdir=${INIT_D_DIR} \ | ||
52 | piddir=/run \ | ||
53 | " | ||
54 | |||
55 | do_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 | |||
62 | do_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 | } | ||
78 | SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" | ||
79 | |||
80 | # all the libraries are unversioned, so don't pack it on PN-dev | ||
81 | SOLIBS = ".so" | ||
82 | FILES_SOLIBSDEV = "" | ||
83 | # Some symlinks are created in plugins dir e.g. | ||
84 | # mount_nfs4.so -> mount_nfs.so | ||
85 | INSANE_SKIP:${PN} = "dev-so" | ||
86 | |||
87 | RPROVIDES:${PN} += "${PN}-systemd" | ||
88 | RREPLACES:${PN} += "${PN}-systemd" | ||
89 | RCONFLICTS:${PN} += "${PN}-systemd" | ||
90 | SYSTEMD_SERVICE:${PN} = "autofs.service" | ||