source: packages/admin/sudo/Makefile @ 19988

Last change on this file since 19988 was 19988, checked in by swalker, 7 years ago

[packages] sudo: update to 1.7.2p5

File size: 1.5 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=sudo
11PKG_VERSION:=1.7.2p5
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.sudo.ws/sudo/dist
16PKG_MD5SUM:=398f584e831bd75b3c0179e28368c2a3
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/sudo
23  SECTION:=admin
24  CATEGORY:=Administration
25  TITLE:=Delegate authority to run commands
26  URL:=http://www.sudo.ws/
27endef
28
29define Package/sudo/description
30Sudo (su "do") allows a system administrator to delegate authority to give
31certain users (or groups of users) the ability to run some (or all) commands as
32root or another user while providing an audit trail of the commands and their
33arguments.
34endef
35
36define Package/sudo/conffiles
37/etc/sudoers
38endef
39
40CONFIGURE_ARGS+= \
41        --without-pam \
42        --disable-pam-session \
43        --with-editor=/bin/vi
44
45CONFIGURE_VARS+= \
46        sudo_cv_uid_t_len=10 \
47        sudo_cv_func_unsetenv_void=no
48
49define Package/sudo/install
50        $(INSTALL_DIR) $(1)/usr/bin
51        $(CP) $(PKG_INSTALL_DIR)/usr/bin/sudo $(1)/usr/bin/
52        chmod 4755 $(1)/usr/bin/sudo
53        $(INSTALL_DIR) $(1)/usr/sbin
54        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/visudo $(1)/usr/sbin/
55        $(INSTALL_DIR) $(1)/etc
56        $(CP) $(PKG_INSTALL_DIR)/etc/sudoers $(1)/etc/
57        chmod 0440 $(1)/etc/sudoers
58        $(INSTALL_DIR) $(1)/usr/lib
59        $(CP) $(PKG_INSTALL_DIR)/usr/lib/sudo_noexec.so $(1)/usr/lib/
60endef
61
62$(eval $(call BuildPackage,sudo))
Note: See TracBrowser for help on using the repository browser.