summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/packages/sudo/sudo_1.6.8p12-4.bb
blob: 09930b361f3de0d55a0ce3db785965bdfebdea6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DESCRIPTION = "Provide limited super user privileges to specific users"
LICENSE = "sudo"
HOMEPAGE = "http://www.sudo.ws/sudo/"
PRIORITY = "optional"
SECTION = "admin"

DEPENDS = "fakeroot-native"

inherit autotools debian-vampyre

SRC_URI += "file://install-binaries.patch;patch=1 \
	   file://autofoo.patch;patch=1 \
	   file://noexec-link.patch;patch=1"

EXTRA_OECONF = "--with-editor=/bin/vi \
                --with-env-editor \
		--disable-setresuid \
		--libexecdir=${libdir}/sudo \
		--with-secure-path='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin'"

do_configure_prepend () {
	rm -f acsite.m4
	if [ ! -e acinclude.m4 ]; then
		cat aclocal.m4 > acinclude.m4
	fi
}

python __anonymous () {
	bb.data.setVarFlag("do_install", "fakeroot", 1, d)
}

do_fix_perms () {
	# fakeroot fucks this one up
	chmod 0400 ${D}${sysconfdir}/sudoers
}