diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-04-24 20:41:25 -0700 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-04-25 16:10:55 -0400 |
commit | 50c15c53d9499834617b7bf1acf8d5070892f186 (patch) | |
tree | 2fbabc365b5ca43effde2a5729fea5555c3ade15 /meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb | |
parent | 4e9984d270f6a8cede089ec7d6b8fe0a2a71dc3d (diff) | |
download | meta-openembedded-50c15c53d9499834617b7bf1acf8d5070892f186.tar.gz |
autofs: Upgrade to 5.1.2 release
Add patches to make it work when SECURITY_FLAGS are enabled
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb')
-rw-r--r-- | meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb new file mode 100644 index 000000000..eea7c4b83 --- /dev/null +++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.2.bb | |||
@@ -0,0 +1,76 @@ | |||
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 e2fsprogs openssl libxml2 util-linux cyrus-sasl" | ||
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://autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch \ | ||
14 | file://no-bash.patch \ | ||
15 | file://cross.patch \ | ||
16 | file://libtirpc.patch \ | ||
17 | file://autofs-5.0.7-do-not-check-for-modprobe.patch \ | ||
18 | file://fix_disable_ldap.patch \ | ||
19 | file://autofs-5.0.7-fix-lib-deps.patch \ | ||
20 | file://add-the-needed-stdarg.h.patch \ | ||
21 | file://using-pkg-config-to-detect-libxml-2.0-and-krb5.patch \ | ||
22 | file://force-STRIP-to-emtpy.patch \ | ||
23 | file://remove-bashism.patch \ | ||
24 | file://fix-the-YACC-rule-to-fix-a-building-failure.patch \ | ||
25 | file://0001-Define-__SWORD_TYPE-and-_PATH_NSSWITCH_CONF.patch \ | ||
26 | file://0002-Replace-__S_IEXEC-with-S_IEXEC.patch \ | ||
27 | file://autofs-5.1.2-libtirpc-as-need.patch \ | ||
28 | file://pkgconfig-libnsl.patch \ | ||
29 | " | ||
30 | SRC_URI[md5sum] = "28cf88f99eff553a8500659ba5d45a76" | ||
31 | SRC_URI[sha256sum] = "0d57e4138c2ec8058ca92164d035546f68ce4af93acb893369993d67c7056a10" | ||
32 | |||
33 | INITSCRIPT_NAME = "autofs" | ||
34 | INITSCRIPT_PARAMS = "defaults" | ||
35 | |||
36 | # FIXME: modules/Makefile has crappy rules that don't obey LDFLAGS | ||
37 | #CFLAGS += "${LDFLAGS}" | ||
38 | |||
39 | PACKAGECONFIG[systemd] = "--with-systemd=${systemd_unitdir}/system,--without-systemd,systemd" | ||
40 | |||
41 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | ||
42 | |||
43 | EXTRA_OEMAKE = "DONTSTRIP=1" | ||
44 | EXTRA_OECONF += "--disable-mount-locking \ | ||
45 | --enable-ignore-busy --with-openldap=no \ | ||
46 | --with-sasl=no --with-libtirpc \ | ||
47 | --with-path=${STAGING_BINDIR_NATIVE} \ | ||
48 | " | ||
49 | CACHED_CONFIGUREVARS = "ac_cv_path_RANLIB=${RANLIB} \ | ||
50 | ac_cv_path_RPCGEN=rpcgen \ | ||
51 | " | ||
52 | |||
53 | do_configure_prepend () { | ||
54 | sed -e "s:filagdir:flagdir:" -i ${S}/configure.in | ||
55 | if [ ! -e ${S}/acinclude.m4 ]; then | ||
56 | cp ${S}/aclocal.m4 ${S}/acinclude.m4 | ||
57 | fi | ||
58 | } | ||
59 | |||
60 | do_install_append () { | ||
61 | if [ -d ${D}/run ]; then | ||
62 | rmdir ${D}/run | ||
63 | fi | ||
64 | if [ -d ${D}${localstatedir}/run ]; then | ||
65 | rmdir ${D}${localstatedir}/run | ||
66 | fi | ||
67 | } | ||
68 | SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" | ||
69 | |||
70 | INSANE_SKIP_${PN} = "dev-so" | ||
71 | |||
72 | RPROVIDES_${PN} += "${PN}-systemd" | ||
73 | RREPLACES_${PN} += "${PN}-systemd" | ||
74 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
75 | SYSTEMD_SERVICE_${PN} = "autofs.service" | ||
76 | |||