summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/at/at-3.1.12
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/at/at-3.1.12')
-rw-r--r--meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch23
-rw-r--r--meta/recipes-extended/at/at-3.1.12/pam.conf.patch21
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch b/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
new file mode 100644
index 0000000000..1f73cdd07e
--- /dev/null
+++ b/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
@@ -0,0 +1,23 @@
1--- at-3.1.12/configure.ac 2011-06-23 14:51:03.653572945 +0800
2+++ at-3.1.12/configure.ac.new 2011-06-27 16:12:14.903572945 +0800
3@@ -81,10 +81,18 @@
4 AC_FUNC_VPRINTF
5 AC_FUNC_GETLOADAVG
6 AC_CHECK_FUNCS(getcwd mktime strftime setreuid setresuid sigaction waitpid)
7+
8+AC_ARG_WITH([pam],
9+ [AS_HELP_STRING([--without-pam], [without PAM support])])
10+
11+if test "x$with_pam" != xno; then
12 AC_CHECK_HEADERS(security/pam_appl.h, [
13 PAMLIB="-lpam"
14- AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])
15-])
16+ AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])],
17+ [if test "x$with_pam" = xyes; then
18+ AC_MSG_ERROR([PAM selected but security/pam_misc.h not found])
19+ fi])
20+fi
21
22 dnl Checking for programs
23
diff --git a/meta/recipes-extended/at/at-3.1.12/pam.conf.patch b/meta/recipes-extended/at/at-3.1.12/pam.conf.patch
new file mode 100644
index 0000000000..dfe76d7487
--- /dev/null
+++ b/meta/recipes-extended/at/at-3.1.12/pam.conf.patch
@@ -0,0 +1,21 @@
1oe doesn't support "@include", use the concrete directive instead.
2
3Upstream-Status: Pending
4
5Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
6--- at-3.1.12/pam.conf.orig 2009-11-23 23:11:52.000000000 +0800
7+++ at-3.1.12/pam.conf 2011-07-15 11:14:04.132818950 +0800
8@@ -2,8 +2,8 @@
9 # The PAM configuration file for the at daemon
10 #
11
12-auth required pam_env.so
13-@include common-auth
14-@include common-account
15-@include common-session-noninteractive
16-session required pam_limits.so
17+auth required pam_env.so
18+auth include common-auth
19+account include common-account
20+session include common-session-noninteractive
21+session required pam_limits.so