diff options
author | Kai Kang <kai.kang@windriver.com> | 2015-08-20 16:43:22 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-09-14 10:40:35 -0400 |
commit | 43188cd97418e1456abd564a4464beadbdb3f345 (patch) | |
tree | c8e977eaed2b5112e8bd75804c53d74f29380894 /meta-networking | |
parent | 61a36e344d8b83b351c2547b2a0e9416f574be4e (diff) | |
download | meta-openembedded-43188cd97418e1456abd564a4464beadbdb3f345.tar.gz |
inetutils: add package config pam
Add package config pam for inetutils. And only check pam_appl.h when pam
is enabled.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking')
2 files changed, 45 insertions, 1 deletions
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils/inetutils-only-check-pam_appl.h-when-pam-enabled.patch b/meta-networking/recipes-connectivity/inetutils/inetutils/inetutils-only-check-pam_appl.h-when-pam-enabled.patch new file mode 100644 index 000000000..ff3abd86a --- /dev/null +++ b/meta-networking/recipes-connectivity/inetutils/inetutils/inetutils-only-check-pam_appl.h-when-pam-enabled.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | Only check security/pam_appl.h which is provided by package libpam when pam is | ||
2 | enabled. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
7 | --- | ||
8 | diff --git a/configure.ac b/configure.ac | ||
9 | index b35e672..e78a751 100644 | ||
10 | --- a/configure.ac | ||
11 | +++ b/configure.ac | ||
12 | @@ -195,6 +195,19 @@ fi | ||
13 | |||
14 | # See if we have libpam.a. Investigate PAM versus Linux-PAM. | ||
15 | if test "$with_pam" = yes ; then | ||
16 | + AC_CHECK_HEADERS([security/pam_appl.h], [], [], [ | ||
17 | +#include <sys/types.h> | ||
18 | +#ifdef HAVE_NETINET_IN_SYSTM_H | ||
19 | +# include <netinet/in_systm.h> | ||
20 | +#endif | ||
21 | +#include <netinet/in.h> | ||
22 | +#ifdef HAVE_NETINET_IP_H | ||
23 | +# include <netinet/ip.h> | ||
24 | +#endif | ||
25 | +#ifdef HAVE_SYS_PARAM_H | ||
26 | +# include <sys/param.h> | ||
27 | +#endif | ||
28 | +]) | ||
29 | AC_CHECK_LIB(dl, dlopen, LIBDL=-ldl) | ||
30 | AC_CHECK_LIB(pam, pam_authenticate, LIBPAM=-lpam) | ||
31 | if test "$ac_cv_lib_pam_pam_authenticate" = yes ; then | ||
32 | @@ -587,7 +600,7 @@ AC_HEADER_DIRENT | ||
33 | AC_CHECK_HEADERS([arpa/nameser.h errno.h fcntl.h features.h \ | ||
34 | glob.h memory.h netinet/ether.h netinet/in_systm.h \ | ||
35 | netinet/ip.h netinet/ip_icmp.h netinet/ip_var.h \ | ||
36 | - security/pam_appl.h shadow.h \ | ||
37 | + shadow.h \ | ||
38 | stdarg.h stdlib.h string.h stropts.h sys/tty.h \ | ||
39 | sys/utsname.h sys/ptyvar.h sys/msgbuf.h sys/filio.h \ | ||
40 | sys/ioctl_compat.h sys/cdefs.h sys/stream.h sys/mkdev.h \ | ||
diff --git a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb index db07cd626..adfc94010 100644 --- a/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb +++ b/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.4.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "${GNU_MIRROR}/inetutils/inetutils-${PV}.tar.gz \ | |||
19 | file://telnet.xinetd.inetutils \ | 19 | file://telnet.xinetd.inetutils \ |
20 | file://tftpd.xinetd.inetutils \ | 20 | file://tftpd.xinetd.inetutils \ |
21 | file://inetutils-1.9-PATH_PROCNET_DEV.patch \ | 21 | file://inetutils-1.9-PATH_PROCNET_DEV.patch \ |
22 | file://inetutils-only-check-pam_appl.h-when-pam-enabled.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | SRC_URI[md5sum] = "04852c26c47cc8c6b825f2b74f191f52" | 25 | SRC_URI[md5sum] = "04852c26c47cc8c6b825f2b74f191f52" |
@@ -29,9 +30,12 @@ inherit autotools gettext update-alternatives texinfo | |||
29 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'ipv6', '', 'file://fix-disable-ipv6.patch', d)}" | 30 | SRC_URI += "${@base_contains('DISTRO_FEATURES', 'ipv6', '', 'file://fix-disable-ipv6.patch', d)}" |
30 | noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}" | 31 | noipv6="${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6 gl_cv_socket_ipv6=no', d)}" |
31 | 32 | ||
32 | PACKAGECONFIG ??= "ftp uucpd" | 33 | PACKAGECONFIG ??= "ftp uucpd \ |
34 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \ | ||
35 | " | ||
33 | PACKAGECONFIG[ftp] = "--enable-ftp,--disable-ftp,readline" | 36 | PACKAGECONFIG[ftp] = "--enable-ftp,--disable-ftp,readline" |
34 | PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-uucpd,readline" | 37 | PACKAGECONFIG[uucpd] = "--enable-uucpd,--disable-uucpd,readline" |
38 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam" | ||
35 | 39 | ||
36 | EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ | 40 | EXTRA_OECONF = "--with-ncurses-include-dir=${STAGING_INCDIR} \ |
37 | ${noipv6} \ | 41 | ${noipv6} \ |