summaryrefslogtreecommitdiff
path: root/package/sudo/Makefile
blob: 2dc7ecdb9282a1dc232c2d38a9d43852fbc01b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		sudo
PKG_VERSION:=		1.7.4p4
PKG_RELEASE:=		2
PKG_MD5SUM:=		55d9906535d70a1de347cd3d3550ee87
PKG_DESCR:=		su do
PKG_SECTION:=		admin
PKG_URL:=		http://www.courtesan.com/sudo/
PKG_SITES:=		http://www.courtesan.com/sudo/dist/

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,SUDO,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ARGS+=	--without-pam \
			--with-env-editor \
			--with-timedir=/var/run

post-install:
	$(INSTALL_DIR) $(IDIR_SUDO)/usr/bin
	$(INSTALL_DIR) $(IDIR_SUDO)/usr/sbin
	$(INSTALL_DIR) $(IDIR_SUDO)/etc
	$(INSTALL_DATA) ./files/sudoers $(IDIR_SUDO)/etc
	chmod 440 $(IDIR_SUDO)/etc/sudoers
	$(INSTALL_BIN) $(WRKINST)/usr/bin/sudo \
		$(IDIR_SUDO)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/sbin/visudo \
		$(IDIR_SUDO)/usr/sbin

include ${TOPDIR}/mk/pkg-bottom.mk