1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 558d10b9a1991fb3b9fa7fa7b07ec4405b7aefb5b3cb0b0871dbc81e3a88e558
11 PKG_SECTION
:= sys
/misc
13 PKG_URL
:= http
://www.sudo.ws
/sudo
/
14 PKG_SITES
:= http
://www.sudo.ws
/sudo
/dist/
16 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
18 include $(ADK_TOPDIR
)/mk
/package.mk
20 $(eval
$(call PKG_template
,SUDO
,sudo
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
22 HOST_CPPFLAGS
+= -I..
/ -I..
/include
24 ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY
),y
)
25 MAKE_FLAGS
+= LDFLAGS
="$(TARGET_LDFLAGS) -all-static"
30 CONFIGURE_ARGS
+= --without-pam \
33 --enable-static-sudoers \
34 --disable-shared-libutil \
37 ifeq ($(ADK_TARGET_USE_SSP
),y
)
38 CONFIGURE_ARGS
+= --enable-hardening
40 CONFIGURE_ARGS
+= --disable-hardening
43 XAKE_FLAGS
+= INSTALL_OWNER
=""
46 $(INSTALL_DIR
) $(IDIR_SUDO
)/usr
/bin
47 $(INSTALL_DIR
) $(IDIR_SUDO
)/usr
/sbin
48 $(INSTALL_DIR
) $(IDIR_SUDO
)/etc
49 $(INSTALL_DATA
) .
/files
/sudoers
$(IDIR_SUDO
)/etc
50 chmod
440 $(IDIR_SUDO
)/etc
/sudoers
51 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/sudo \
53 $(INSTALL_BIN
) $(WRKINST
)/usr
/sbin
/visudo \
56 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk