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