toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / sudo / sudo.mk
blobbc2a47b76506b91819a2ee1b8bf0a17c92a7c18b
1 ################################################################################
3 # sudo
5 ################################################################################
7 SUDO_VERSION = 1.8.19p1
8 SUDO_SITE = http://www.sudo.ws/sudo/dist
9 SUDO_LICENSE = ISC BSD-3c
10 SUDO_LICENSE_FILES = doc/LICENSE
11 # This is to avoid sudo's make install from chown()ing files which fails
12 SUDO_INSTALL_TARGET_OPTS = INSTALL_OWNER="" DESTDIR="$(TARGET_DIR)" install
13 SUDO_CONF_OPTS = \
14 --without-lecture \
15 --without-sendmail \
16 --without-umask \
17 --with-logging=syslog \
18 --without-interfaces \
19 --with-env-editor
21 ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
22 define SUDO_INSTALL_PAM_CONF
23 $(INSTALL) -D -m 0644 package/sudo/sudo.pam $(TARGET_DIR)/etc/pam.d/sudo
24 endef
26 SUDO_DEPENDENCIES += linux-pam
27 SUDO_CONF_OPTS += --with-pam
28 SUDO_POST_INSTALL_TARGET_HOOKS += SUDO_INSTALL_PAM_CONF
29 else
30 SUDO_CONF_OPTS += --without-pam
31 endif
33 ifeq ($(BR2_PACKAGE_ZLIB),y)
34 SUDO_CONF_OPTS += --enable-zlib
35 SUDO_DEPENDENCIES += zlib
36 else
37 SUDO_CONF_OPTS += --disable-zlib
38 endif
40 # mksigname/mksiglist needs to run on build host to generate source files
41 define SUDO_BUILD_MKSIGNAME_MKSIGLIST_HOST
42 $(MAKE) $(HOST_CONFIGURE_OPTS) \
43 CPPFLAGS="$(HOST_CPPFLAGS) -I../../include -I../.." \
44 -C $(@D)/lib/util mksigname mksiglist
45 endef
47 SUDO_POST_CONFIGURE_HOOKS += SUDO_BUILD_MKSIGNAME_MKSIGLIST_HOST
49 define SUDO_PERMISSIONS
50 /usr/bin/sudo f 4755 0 0 - - - - -
51 endef
53 $(eval $(autotools-package))