cacaoh-native: Removed legacy style staging
[openembedded.git] / recipes / sudo / sudo.inc
blob2bb0d72836fff2e4f1e4eedae10926282776bdc3
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"
10 inherit autotools
12 EXTRA_OECONF += "--with-editor=/bin/vi --with-env-editor --with-all-insults "
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
19   # Prevent binaries from being stripped.
20   sed -i 's/\($(INSTALL).*\) -s \(.*[(sudo|visudo)]\)/\1 \2/g' Makefile.in
22   rm -f acsite.m4
23   if [ ! -e acinclude.m4 ]; then
24     cat aclocal.m4 > acinclude.m4
25   fi
28 do_configure() { 
29    oe_runconf
32 pkg_postinst() {
33         if [ "x$D" != "x" ]; then
34                 exit 1
35         fi
37         chmod 4111 /usr/bin/sudo
38         chmod 0440 /etc/sudoers