Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= sudo
  5. PKG_VERSION:= 1.8.10
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 954d64906c3f6e2436f33445a049c58b
  8. PKG_DESCR:= su do
  9. PKG_SECTION:= sys/misc
  10. PKG_URL:= http://www.courtesan.com/sudo/
  11. PKG_SITES:= http://www.courtesan.com/sudo/dist/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  13. include $(ADK_TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,SUDO,sudo,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. HOST_CPPFLAGS+= -I../ -I../include
  16. CONFIGURE_ARGS+= --without-pam \
  17. --without-sendmail \
  18. --with-env-editor
  19. ifeq ($(ADK_TARGET_USE_SSP),y)
  20. CONFIGURE_ARGS+= --enable-hardening
  21. else
  22. CONFIGURE_ARGS+= --disable-hardening
  23. endif
  24. sudo-install:
  25. $(INSTALL_DIR) $(IDIR_SUDO)/usr/bin
  26. $(INSTALL_DIR) $(IDIR_SUDO)/usr/sbin
  27. $(INSTALL_DIR) $(IDIR_SUDO)/etc
  28. $(INSTALL_DATA) ./files/sudoers $(IDIR_SUDO)/etc
  29. chmod 440 $(IDIR_SUDO)/etc/sudoers
  30. $(INSTALL_BIN) $(WRKINST)/usr/bin/sudo \
  31. $(IDIR_SUDO)/usr/bin
  32. $(INSTALL_BIN) $(WRKINST)/usr/sbin/visudo \
  33. $(IDIR_SUDO)/usr/sbin
  34. include ${ADK_TOPDIR}/mk/pkg-bottom.mk