diff options
author | Kang Kai <kai.kang@windriver.com> | 2011-08-16 16:32:27 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-19 09:29:19 -0700 |
commit | 357434dfb1285fc89755f9bdba9c94ce1fd8509e (patch) | |
tree | 314e995d90b763a8bdf16eedb9fd0a47fab940b0 | |
parent | db530d7c81df63356082af31a1dd95b931804622 (diff) | |
download | 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>
-rw-r--r-- | meta/recipes-extended/at/at_3.1.12.bb | 26 |
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 c76b50e215..baf15dfc6d 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." | |||
4 | SECTION = "base" | 4 | SECTION = "base" |
5 | LICENSE="GPLv2+" | 5 | LICENSE="GPLv2+" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4" |
7 | DEPENDS = "flex libpam initscripts \ | 7 | DEPENDS = "flex initscripts \ |
8 | ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 8 | ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
9 | RDEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}" | ||
10 | PAM_DEPS = "libpam libpam-runtime pam-plugin-env pam-plugin-limits" | ||
11 | |||
9 | RCONFLICTS_${PN} = "atd" | 12 | RCONFLICTS_${PN} = "atd" |
10 | RREPLACES_${PN} = "atd" | 13 | RREPLACES_${PN} = "atd" |
11 | PR = "r5" | 14 | PR = "r6" |
12 | 15 | ||
13 | SRC_URI = "${DEBIAN_MIRROR}/main/a/at/at_${PV}.orig.tar.gz \ | 16 | SRC_URI = "${DEBIAN_MIRROR}/main/a/at/at_${PV}.orig.tar.gz \ |
14 | file://configure.patch \ | 17 | file://configure.patch \ |
@@ -56,23 +59,4 @@ do_install () { | |||
56 | done | 59 | done |
57 | } | 60 | } |
58 | 61 | ||
59 | pkg_postinst_${PN} () { | ||
60 | if [ "x$D" != "x" ] ; then | ||
61 | exit 1 | ||
62 | fi | ||
63 | |||
64 | # below is necessary to allow at usable to normal users | ||
65 | # now at is has its own /var/spool/at instead of under /var/spool/cron | ||
66 | # this way is better to allow setgid on both sides | ||
67 | grep "^daemon" /etc/group || groupadd daemon | ||
68 | chown root:daemon /usr/bin/at | ||
69 | chmod 2755 /usr/bin/at | ||
70 | |||
71 | chown root:daemon -R /var/spool/at | ||
72 | chmod 770 -R /var/spool/at | ||
73 | |||
74 | chown root:daemon /etc/at.deny | ||
75 | chmod 640 /etc/at.deny | ||
76 | } | ||
77 | |||
78 | PARALLEL_MAKE = "" | 62 | PARALLEL_MAKE = "" |