1
0

Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= sudo
  5. PKG_VERSION:= 1.8.10
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 954d64906c3f6e2436f33445a049c58b
  8. PKG_DESCR:= su do
  9. PKG_SECTION:= admin
  10. PKG_URL:= http://www.courtesan.com/sudo/
  11. PKG_SITES:= http://www.courtesan.com/sudo/dist/
  12. include $(TOPDIR)/mk/package.mk
  13. $(eval $(call PKG_template,SUDO,sudo,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CPPFLAGS_FOR_BUILD+= -I../ -I../include
  15. CONFIGURE_ARGS+= --without-pam \
  16. --without-sendmail \
  17. --with-env-editor
  18. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  19. CONFIGURE_ARGS+= --enable-hardening
  20. else
  21. CONFIGURE_ARGS+= --disable-hardening
  22. endif
  23. sudo-install:
  24. $(INSTALL_DIR) $(IDIR_SUDO)/usr/bin
  25. $(INSTALL_DIR) $(IDIR_SUDO)/usr/sbin
  26. $(INSTALL_DIR) $(IDIR_SUDO)/etc
  27. $(INSTALL_DATA) ./files/sudoers $(IDIR_SUDO)/etc
  28. chmod 440 $(IDIR_SUDO)/etc/sudoers
  29. $(INSTALL_BIN) $(WRKINST)/usr/bin/sudo \
  30. $(IDIR_SUDO)/usr/bin
  31. $(INSTALL_BIN) $(WRKINST)/usr/sbin/visudo \
  32. $(IDIR_SUDO)/usr/sbin
  33. include ${TOPDIR}/mk/pkg-bottom.mk