2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-04-11 02:27:51 +02:00
|
|
|
#
|
|
|
|
# sudo
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-04-11 02:27:51 +02:00
|
|
|
|
2015-02-17 13:50:51 +01:00
|
|
|
SUDO_VERSION = 1.8.12
|
2014-09-18 23:09:24 +02:00
|
|
|
SUDO_SITE = http://www.sudo.ws/sudo/dist
|
|
|
|
SUDO_LICENSE = ISC BSD-3c
|
2012-09-09 23:46:23 +02:00
|
|
|
SUDO_LICENSE_FILES = doc/LICENSE
|
2015-02-17 13:50:51 +01:00
|
|
|
# This is to avoid sudo's make install from chown()ing files which fails
|
|
|
|
SUDO_INSTALL_TARGET_OPTS = INSTALL_OWNER="" DESTDIR="$(TARGET_DIR)" install
|
2014-09-27 21:32:44 +02:00
|
|
|
SUDO_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--without-lecture \
|
|
|
|
--without-sendmail \
|
|
|
|
--without-umask \
|
|
|
|
--with-logging=syslog \
|
|
|
|
--without-interfaces \
|
|
|
|
--without-pam \
|
|
|
|
--with-env-editor
|
2006-04-11 02:27:51 +02:00
|
|
|
|
2012-09-09 23:46:23 +02:00
|
|
|
# mksigname/mksiglist needs to run on build host to generate source files
|
|
|
|
define SUDO_BUILD_MKSIGNAME_MKSIGLIST_HOST
|
2012-10-11 09:01:39 +02:00
|
|
|
$(MAKE) $(HOST_CONFIGURE_OPTS) \
|
2015-02-17 13:50:51 +01:00
|
|
|
CPPFLAGS="$(HOST_CPPFLAGS) -I../../include -I../.." \
|
|
|
|
-C $(@D)/lib/util mksigname mksiglist
|
2012-09-09 23:46:23 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
SUDO_POST_CONFIGURE_HOOKS += SUDO_BUILD_MKSIGNAME_MKSIGLIST_HOST
|
|
|
|
|
2012-08-04 22:11:01 +02:00
|
|
|
define SUDO_PERMISSIONS
|
2014-11-15 17:29:16 +01:00
|
|
|
/usr/bin/sudo f 4755 0 0 - - - - -
|
2012-08-04 22:11:01 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|