diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-19 20:56:09 +0100 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-19 20:56:09 +0100 |
commit | 6a21d65d2840c58cfa7cd749a04669d8f7980646 (patch) | |
tree | 00b1aa153b69cda8cf9406c4700fd7730c34d3a5 /recipes/pam/libpam_0.79.bb | |
parent | dcfe7349b369a87881cf1fa43085d9e9c5609fcf (diff) | |
parent | 6f854d71c347475d53d5080a5490625345d95d12 (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/pam/libpam_0.79.bb')
-rw-r--r-- | recipes/pam/libpam_0.79.bb | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/recipes/pam/libpam_0.79.bb b/recipes/pam/libpam_0.79.bb new file mode 100644 index 0000000000..7a5ff4bdc8 --- /dev/null +++ b/recipes/pam/libpam_0.79.bb @@ -0,0 +1,71 @@ +# PAM authentication library for Linux - Linux-PAM +# +# NOTE: this is a library with plug-in modules, at present all +# the modules are built and installed into the main libpam +# ipkg. This causes lots of problems (e.g. it is not possible +# to build on uClibC) so *do not* rely on this behaviour - +# assume the modules will be moved to individual ipks (like +# the kernel modules.) +# +DESCRIPTION = "\ +PAM authentication library for Linux. \ +Linux-PAM (Pluggable Authentication Modules for Linux) is a \ +library that enables the local system administrator to choose \ +how individual applications authenticate users. For an \ +overview of the Linux-PAM library see the Linux-PAM System \ +Administrators' Guide." +HOMEPAGE = "http://www.kernel.org/pub/linux/libs/pam" +SECTION = "libs" +PRIORITY = "optional" +LICENSE = "GPLv2" +PR = "r2" + +# The project is actually called Linux-PAM but that gives +# a bad OE package name because of the upper case characters +pn = "Linux-PAM" +p = "${pn}-${PV}" +S = "${WORKDIR}/${p}" + +SRC_URI = "${KERNELORG_MIRROR}/pub/linux/libs/pam/pre/library/${p}.tar.bz2" + +# the patches are necessary to get the autoreconf and cross build +# to work correctly +SRC_URI += " file://libpam-config.patch;patch=1" +# The Makefile uses 'FAKEROOT' not DESTDIR. +SRC_URI += " file://libpam-make.patch;patch=1" + +inherit autotools + +# maintain the pam default layout +EXTRA_OECONF += " --includedir=${includedir}/security" + +# EXTRA_OECONF += " --enable-static-libpam" +# Disable building of the documentation - it requires too many different +# programs installed on the build system and is a waste of time. This +# leaves the man documentation in the build. +EXTRA_OECONF += "ac_cv_prog_HAVE_SGML2TXT=no" +EXTRA_OECONF += "ac_cv_prog_HAVE_SGML2HTML=no" +EXTRA_OECONF += "ac_cv_prog_HAVE_SGML2LATEX=no" +EXTRA_OECONF += "ac_cv_prog_HAVE_PS2PDF=no" +EXTRA_OECONF += "ac_cv_prog_HAVE_SGML2PS=no" + +LEAD_SONAME = "libpam.so.*" + +# This is crude - the modules maybe should each have independent ipks +FILES_${PN} += "/usr/lib/security/pam_*.so /usr/lib/security/pam_filter/*" + +do_stage() { + autotools_stage_all +} + +# An attempt to build on uclibc will fail, causing annoyance, +# so force the package to be skipped here (this will cause a +# 'nothing provides' error) +#NOTE: this can be fixed, but it means hacking the modules so +# that those which use YP don't get built on uClibC, this looks +# like a big patch... +python () { + os = bb.data.getVar("TARGET_OS", d, 1) + if os == "linux-uclibc": + raise bb.parse.SkipPackage("Some PAM modules require rpcsvc/yp.h, uClibC does not provide this") +} |