diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-07-26 15:32:42 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-30 14:50:31 +0100 |
commit | 754c54818d30ae8f5ba644a6b698b8e24636e133 (patch) | |
tree | 91a734a341aef2ea1699574323972189c71ad29e /meta | |
parent | 8362a98b8e3ad3d97d1a7b65d0ecb4723fa9c769 (diff) | |
download | openembedded-core-754c54818d30ae8f5ba644a6b698b8e24636e133.tar.gz openembedded-core-754c54818d30ae8f5ba644a6b698b8e24636e133.tar.bz2 openembedded-core-754c54818d30ae8f5ba644a6b698b8e24636e133.zip |
pam: use volatile to avoid /var/run population in do_rootfs
also disable doc rebuild to reuse existing man pages.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/pam/pam-1.1.1/99_pam | 1 | ||||
-rw-r--r-- | meta/packages/pam/pam_1.1.1.bb | 21 |
2 files changed, 19 insertions, 3 deletions
diff --git a/meta/packages/pam/pam-1.1.1/99_pam b/meta/packages/pam/pam-1.1.1/99_pam new file mode 100644 index 0000000000..97e990d10b --- /dev/null +++ b/meta/packages/pam/pam-1.1.1/99_pam @@ -0,0 +1 @@ +d root root 0755 /var/run/sepermit none diff --git a/meta/packages/pam/pam_1.1.1.bb b/meta/packages/pam/pam_1.1.1.bb index 12a95267ea..7ef4d2d251 100644 --- a/meta/packages/pam/pam_1.1.1.bb +++ b/meta/packages/pam/pam_1.1.1.bb @@ -3,14 +3,16 @@ HOMEPAGE = "http://www.kernel.org/pub/linux/libs/pam/" BUGTRACKER = "http://sourceforge.net/projects/pam/support" # PAM allows dual licensed under GPL and BSD LICENSE = "GPLv2+ | BSD" -PR = "r0" +PR = "r1" SRC_URI = "http://www.kernel.org/pub/linux/libs/pam/library/Linux-PAM-${PV}.tar.bz2 \ - file://disable_crossbinary.patch" + file://disable_crossbinary.patch \ + file://99_pam" EXTRA_OECONF = "--with-db-uniquename=_pam \ --includedir=${includedir}/security \ - --libdir=/lib" + --libdir=${base_libdir} \ + --disable-regenerate-docu" DEPENDS = "bison flex" CFLAGS_append = " -fPIC " @@ -26,3 +28,16 @@ FILES_${PN} += "${base_libdir}/security/*.so" FILES_${PN}-dev += "${base_libdir}/security/*.la" FILES_${PN}-dev += "${base_libdir}/*.la" FILES_${PN} += "${base_libdir}/*.so*" + +do_install() { + autotools_do_install + + # don't install /var/run when populating rootfs. Do it through volatile + rm -rf ${D}/var + install -d ${D}/etc/default/volatiles + install -m 0644 ${WORKDIR}/99_pam ${D}/etc/default/volatiles +} + +pkg_postinst_${PN} () { + /etc/init.d/populate-volatile.sh update +} |