diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-extended/sudo/sudo.inc | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/sudo/sudo.inc')
-rw-r--r-- | meta/recipes-extended/sudo/sudo.inc | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc new file mode 100644 index 0000000000..1d7e541024 --- /dev/null +++ b/meta/recipes-extended/sudo/sudo.inc | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "Provide limited super user privileges to specific users" | ||
2 | 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." | ||
3 | HOMEPAGE = "http://www.sudo.ws" | ||
4 | BUGTRACKER = "http://www.sudo.ws/bugs/" | ||
5 | SECTION = "admin" | ||
6 | LICENSE = "ISC & BSD & Zlib" | ||
7 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=69e337d679950e304953813158595256 \ | ||
8 | file://plugins/sudoers/redblack.c;beginline=1;endline=41;md5=e2dbb155fc49beea947515300bab99e0 \ | ||
9 | file://compat/fnmatch.c;beginline=3;endline=27;md5=67f83ee9bd456557397082f8f1be0efd \ | ||
10 | file://compat/getcwd.c;beginline=5;endline=27;md5=449af4cc57fc7d46f42090608ba3e681 \ | ||
11 | file://compat/glob.c;beginline=6;endline=31;md5=5872733146b9eb0deb79e1f664815b85 \ | ||
12 | file://compat/snprintf.c;beginline=6;endline=31;md5=c98b24f02967c095d7a70ae2e4d4d4ea \ | ||
13 | file://include/queue.h;beginline=5;endline=27;md5=449af4cc57fc7d46f42090608ba3e681 \ | ||
14 | file://compat/inet_pton.c;beginline=3;endline=17;md5=3970ab0518ab79cbd0bafb697f10b33a" | ||
15 | |||
16 | inherit autotools | ||
17 | |||
18 | PACKAGECONFIG ??= "" | ||
19 | PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib" | ||
20 | |||
21 | CONFFILES_${PN} = "${sysconfdir}/sudoers" | ||
22 | |||
23 | EXTRA_OECONF = "--with-editor=/bin/vi --with-env-editor" | ||
24 | |||
25 | do_configure_prepend () { | ||
26 | if [ ! -e ${S}/acinclude.m4 ]; then | ||
27 | cat ${S}/aclocal.m4 > ${S}/acinclude.m4 | ||
28 | fi | ||
29 | } | ||
30 | |||
31 | # mksigname/mksiglist are used on build host to generate source files | ||
32 | do_compile_prepend () { | ||
33 | oe_runmake SSP_CFLAGS="" SSP_LDFLAGS="" CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" CPPFLAGS="$BUILD_CPPFLAGS -I${S}/include -I${S} -I${B}" -C compat mksigname mksiglist | ||
34 | } | ||
35 | |||
36 | # Explicitly create ${localstatedir}/lib before do_install to ensure | ||
37 | # the directory is accessible by all users. Otherwise the mkinstalldirs | ||
38 | # script (from sudo) will recursively create ${localstatedir}/lib/sudo | ||
39 | # and then chmod each directory with 0700 permissions, which isn't what | ||
40 | # we want (i.e, users would not be able to access /var/lib). | ||
41 | do_install_prepend (){ | ||
42 | mkdir -p ${D}/${localstatedir}/lib | ||
43 | } | ||