summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/at
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2011-08-16 16:32:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-19 09:29:19 -0700
commit357434dfb1285fc89755f9bdba9c94ce1fd8509e (patch)
tree314e995d90b763a8bdf16eedb9fd0a47fab940b0 /meta/recipes-extended/at
parentdb530d7c81df63356082af31a1dd95b931804622 (diff)
downloadast2050-yocto-poky-357434dfb1285fc89755f9bdba9c94ce1fd8509e.zip
ast2050-yocto-poky-357434dfb1285fc89755f9bdba9c94ce1fd8509e.tar.gz
at: make at usable for common user
Fixes [Yocto #1297] The pkg_postinst was added to fix Yocto #675. But it seems not needed any more. Remove it then unprivilege user could use at. (From OE-Core rev: dec5dfa334ce1b2524f80fab3d3f37e476f54a9f) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/at')
-rw-r--r--meta/recipes-extended/at/at_3.1.12.bb26
1 files changed, 5 insertions, 21 deletions
diff --git a/meta/recipes-extended/at/at_3.1.12.bb b/meta/recipes-extended/at/at_3.1.12.bb
index c76b50e..baf15df 100644
--- a/meta/recipes-extended/at/at_3.1.12.bb
+++ b/meta/recipes-extended/at/at_3.1.12.bb
@@ -4,11 +4,14 @@ the system load levels drop to a particular level."
SECTION = "base"
LICENSE="GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
-DEPENDS = "flex libpam initscripts \
+DEPENDS = "flex initscripts \
${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
+RDEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}"
+PAM_DEPS = "libpam libpam-runtime pam-plugin-env pam-plugin-limits"
+
RCONFLICTS_${PN} = "atd"
RREPLACES_${PN} = "atd"
-PR = "r5"
+PR = "r6"
SRC_URI = "${DEBIAN_MIRROR}/main/a/at/at_${PV}.orig.tar.gz \
file://configure.patch \
@@ -56,23 +59,4 @@ do_install () {
done
}
-pkg_postinst_${PN} () {
- if [ "x$D" != "x" ] ; then
- exit 1
- fi
-
- # below is necessary to allow at usable to normal users
- # now at is has its own /var/spool/at instead of under /var/spool/cron
- # this way is better to allow setgid on both sides
- grep "^daemon" /etc/group || groupadd daemon
- chown root:daemon /usr/bin/at
- chmod 2755 /usr/bin/at
-
- chown root:daemon -R /var/spool/at
- chmod 770 -R /var/spool/at
-
- chown root:daemon /etc/at.deny
- chmod 640 /etc/at.deny
-}
-
PARALLEL_MAKE = ""
OpenPOWER on IntegriCloud