2010-11-23 05:01:34 +00:00
SUMMARY = " Provide limited super user privileges to specific users "
2010-06-22 03:33:06 +00:00
DESCRIPTION = " Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root while logging all commands and arguments. "
2010-11-23 05:01:34 +00:00
HOMEPAGE = " http://www.sudo.ws "
2010-06-22 03:33:06 +00:00
BUGTRACKER = " http://www.sudo.ws/bugs/ "
2009-05-27 10:10:06 +00:00
SECTION = " admin "
2012-02-28 21:45:28 +00:00
LICENSE = " ISC & BSD & Zlib "
2015-07-24 14:58:11 +00:00
LIC_FILES_CHKSUM = " file://doc/LICENSE;md5=c16e542408abda013d672be8eb88d174 \
2015-04-08 06:39:14 +00:00
file :// plugins / sudoers / redblack . c ; beginline = 1 ; endline = 41 ; md5 = cfe41112f96c19a074934d128f45c693 \
2015-07-24 14:58:11 +00:00
file :// lib / util / reallocarray . c ; beginline = 3 ; endline = 16 ; md5 = 85 b0905b795d4d58bf2e00635649eec6 \
2014-12-26 09:35:29 +00:00
file :// lib / util / fnmatch . c ; beginline = 3 ; endline = 27 ; md5 = 67 f83ee9bd456557397082f8f1be0efd \
file :// lib / util / getcwd . c ; beginline = 5 ; endline = 27 ; md5 = 449 af4cc57fc7d46f42090608ba3e681 \
file :// lib / util / glob . c ; beginline = 6 ; endline = 31 ; md5 = 5872733146 b9eb0deb79e1f664815b85 \
2015-04-08 06:39:14 +00:00
file :// lib / util / snprintf . c ; beginline = 6 ; endline = 34 ; md5 = c82c1b3a5c32e08545c9ec5d71e41e50 \
2014-12-26 09:35:29 +00:00
file :// include / sudo_queue . h ; beginline = 5 ; endline = 27 ; md5 = 449 af4cc57fc7d46f42090608ba3e681 \
file :// lib / util / inet_pton . c ; beginline = 3 ; endline = 17 ; md5 = 3970 ab0518ab79cbd0bafb697f10b33a "
2009-05-27 10:10:06 +00:00
inherit autotools
2013-07-21 13:53:39 +00:00
PACKAGECONFIG ? ? = " "
PACKAGECONFIG [ zlib ] = " --enable-zlib,--disable-zlib,zlib "
2014-09-08 11:58:22 +00:00
CONFFILES_ $ { PN } = " ${ sysconfdir } /sudoers "
2009-05-27 10:10:06 +00:00
EXTRA_OECONF = " --with-editor=/bin/vi --with-env-editor "
2015-04-11 01:20:44 +00:00
EXTRA_OECONF_append_libc - musl = " --disable-hardening "
2013-03-10 22:05:18 +00:00
# mksigname/mksiglist are used on build host to generate source files
do_compile_prepend () {
2014-12-26 09:35:29 +00:00
oe_runmake SSP_CFLAGS = " " SSP_LDFLAGS = " " CC = " $BUILD_CC " CFLAGS = " $BUILD_CFLAGS " CPPFLAGS = " $BUILD_CPPFLAGS -I ${ S } /include -I ${ S } -I ${ B } " - C lib / util mksigname mksiglist
2013-03-10 22:05:18 +00:00
}
2011-06-14 16:49:18 +00:00
# Explicitly create ${localstatedir}/lib before do_install to ensure
# the directory is accessible by all users. Otherwise the mkinstalldirs
# script (from sudo) will recursively create ${localstatedir}/lib/sudo
# and then chmod each directory with 0700 permissions, which isn't what
# we want (i.e, users would not be able to access /var/lib).
2011-05-30 11:27:45 +00:00
do_install_prepend (){
mkdir - p $ { D } / $ { localstatedir } / lib
}