2 # Copyright (C) 2006-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://www.sudo.ws
/dist
16 PKG_HASH
:=4687e7d2f56721708f59cca2e1352c056cb23de526c22725615a42bb094f1f70
18 PKG_MAINTAINER
:=Alexandru Ardelean
<ardeleanalex@gmail.com
>
21 PKG_LICENSE_FILES
:=doc
/LICENSE
22 PKG_CPE_ID
:=cpe
:/a
:todd_miller
:sudo
27 include $(INCLUDE_DIR
)/package.mk
31 CATEGORY
:=Administration
32 TITLE
:=Delegate authority to run commands
33 URL
:=https
://www.sudo.ws
/
36 define Package
/sudo
/description
37 Sudo
(su
"do") allows a system administrator to delegate authority to
38 give certain users
(or groups of users
) the ability to run some
(or
39 all) commands
as root or another user while providing an audit trail of
40 the commands and their arguments.
43 define Package
/sudo
/conffiles
50 --disable-pam-session \
51 --with-editor
=/bin
/vi \
55 --with-rundir
=/var
/lib
/sudo \
56 --with-vardir
=/var
/lib
/sudo
59 sudo_cv_uid_t_len
=10 \
60 sudo_cv_func_unsetenv_void
=no
62 define Package
/sudo
/install
64 $(1)/etc
/{init.d
,sudoers.d
} \
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/sudo
$(1)/usr
/bin
/
69 chmod
4755 $(1)/usr
/bin
/sudo
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/visudo
$(1)/usr
/sbin
/
71 $(CP
) $(PKG_INSTALL_DIR
)/etc
/sudoers
$(1)/etc
/
72 chmod
0440 $(1)/etc
/sudoers
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/sudo
/*.so
* $(1)/usr
/lib
/sudo
/
74 $(INSTALL_BIN
) .
/files
/sudo.init
$(1)/etc
/init.d
/sudo
77 define Package
/sudo
/postinst
80 [ -n
"$$IPKG_INSTROOT" ] ||
{
81 /etc
/init.d
/sudo enable
82 /etc
/init.d
/sudo start
86 $(eval
$(call BuildPackage
,sudo
))