increase dvbapp PR.
[vuplus_openembedded] / recipes / sudo / sudo.inc
1 DESCRIPTION = "Sudo (superuser do) allows a system \
2 administrator to give certain users (or groups of \
3 users) the ability to run some (or all) commands \
4 as root while logging all commands and arguments."
5 LICENSE = "sudo"
6 HOMEPAGE = "http://www.sudo.ws/"
7 PRIORITY = "optional"
8 SECTION = "admin"
9
10 inherit autotools
11
12 EXTRA_OECONF += "--with-editor=/bin/vi --with-env-editor --with-all-insults "
13
14 do_configure_prepend () {
15   # Make sure the build does not get clever.
16   export sudo_cv_uid_t_len=10
17   export sudo_cv_func_unsetenv_void=no
18
19   # Prevent binaries from being stripped.
20   sed -i 's/\($(INSTALL).*\) -s \(.*[(sudo|visudo)]\)/\1 \2/g' Makefile.in
21
22   rm -f acsite.m4
23   if [ ! -e acinclude.m4 ]; then
24     cat aclocal.m4 > acinclude.m4
25   fi
26 }
27
28 do_configure() { 
29    oe_runconf
30 }
31
32 pkg_postinst() {
33         if [ "x$D" != "x" ]; then
34                 exit 1
35         fi
36
37         chmod 4111 /usr/bin/sudo
38         chmod 0440 /etc/sudoers
39 }