Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.11p2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 8133849418fa18cf6b6bb6893d1855ff7afe21db8923234a00bf045c90fba1ad
  8. PKG_DESCR:= su do
  9. PKG_SECTION:= sys/misc
  10. PKG_URL:= http://www.sudo.ws/sudo/
  11. PKG_SITES:= http://www.sudo.ws/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. TARGET_LDFLAGS+= -ldl
  17. CONFIGURE_ARGS+= --without-pam \
  18. --without-sendmail \
  19. --disable-shared \
  20. --enable-static-sudoers \
  21. --disable-shared-libutil \
  22. --with-env-editor
  23. ifeq ($(ADK_TARGET_USE_SSP),y)
  24. CONFIGURE_ARGS+= --enable-hardening
  25. else
  26. CONFIGURE_ARGS+= --disable-hardening
  27. endif
  28. sudo-install:
  29. $(INSTALL_DIR) $(IDIR_SUDO)/usr/bin
  30. $(INSTALL_DIR) $(IDIR_SUDO)/usr/sbin
  31. $(INSTALL_DIR) $(IDIR_SUDO)/etc
  32. $(INSTALL_DATA) ./files/sudoers $(IDIR_SUDO)/etc
  33. chmod 440 $(IDIR_SUDO)/etc/sudoers
  34. $(INSTALL_BIN) $(WRKINST)/usr/bin/sudo \
  35. $(IDIR_SUDO)/usr/bin
  36. $(INSTALL_BIN) $(WRKINST)/usr/sbin/visudo \
  37. $(IDIR_SUDO)/usr/sbin
  38. include ${ADK_TOPDIR}/mk/pkg-bottom.mk