2009-04-21 01:13:20 +00:00
|
|
|
#
|
2010-02-18 00:33:06 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2009-04-21 01:13:20 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
2010-03-05 07:24:31 +00:00
|
|
|
#
|
2009-04-21 01:13:20 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sudo
|
2010-12-29 06:54:09 +00:00
|
|
|
PKG_VERSION:=1.7.4p4
|
2010-03-05 07:24:31 +00:00
|
|
|
PKG_RELEASE:=1
|
2009-04-21 01:13:20 +00:00
|
|
|
|
2009-07-15 09:57:36 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-03-05 07:24:31 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.sudo.ws/sudo/dist
|
2010-12-29 06:54:09 +00:00
|
|
|
PKG_MD5SUM:=55d9906535d70a1de347cd3d3550ee87
|
2009-12-29 18:59:58 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2009-04-21 01:13:20 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/sudo
|
2010-02-18 00:33:06 +00:00
|
|
|
SECTION:=admin
|
2009-04-29 09:14:52 +00:00
|
|
|
CATEGORY:=Administration
|
2010-02-18 00:33:06 +00:00
|
|
|
TITLE:=Delegate authority to run commands
|
2009-04-21 01:13:20 +00:00
|
|
|
URL:=http://www.sudo.ws/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sudo/description
|
2010-04-21 17:29:34 +00:00
|
|
|
Sudo (su "do") allows a system administrator to delegate authority to
|
|
|
|
give certain users (or groups of users) the ability to run some (or
|
|
|
|
all) commands as root or another user while providing an audit trail of
|
|
|
|
the commands and their arguments.
|
2010-02-18 00:33:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sudo/conffiles
|
|
|
|
/etc/sudoers
|
2009-04-21 01:13:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--without-pam \
|
|
|
|
--disable-pam-session \
|
2010-12-29 06:54:09 +00:00
|
|
|
--with-editor=/bin/vi \
|
|
|
|
--without-lecture \
|
|
|
|
--disable-zlib
|
2009-04-21 01:13:20 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS+= \
|
|
|
|
sudo_cv_uid_t_len=10 \
|
2010-02-18 00:33:06 +00:00
|
|
|
sudo_cv_func_unsetenv_void=no
|
2009-04-21 01:13:20 +00:00
|
|
|
|
|
|
|
define Package/sudo/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/sudo $(1)/usr/bin/
|
|
|
|
chmod 4755 $(1)/usr/bin/sudo
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/visudo $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/sudoers $(1)/etc/
|
|
|
|
chmod 0440 $(1)/etc/sudoers
|
2010-12-29 06:54:09 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/sudoers.d
|
2009-04-21 01:13:20 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sudo_noexec.so $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,sudo))
|