python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / sudo / sudo.mk
blobbb0a2b5e69338111193ef6ed2b6ab61c7aa4abc8
1 ################################################################################
3 # sudo
5 ################################################################################
7 SUDO_VERSION = 1.8.19p2
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 ifeq ($(BR2_PACKAGE_OPENLDAP),y)
41 SUDO_DEPENDENCIES += openldap
42 SUDO_CONF_OPTS += --with-ldap
43 else
44 SUDO_CONF_OPTS += --without-ldap
45 endif
47 # mksigname/mksiglist needs to run on build host to generate source files
48 define SUDO_BUILD_MKSIGNAME_MKSIGLIST_HOST
49 $(MAKE) $(HOST_CONFIGURE_OPTS) \
50 CPPFLAGS="$(HOST_CPPFLAGS) -I../../include -I../.." \
51 -C $(@D)/lib/util mksigname mksiglist
52 endef
54 SUDO_POST_CONFIGURE_HOOKS += SUDO_BUILD_MKSIGNAME_MKSIGLIST_HOST
56 define SUDO_PERMISSIONS
57 /usr/bin/sudo f 4755 0 0 - - - - -
58 endef
60 $(eval $(autotools-package))