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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= portmap
  5. PKG_VERSION:= 6.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ac108ab68bf0f34477f8317791aaf1ff
  8. PKG_DESCR:= RPC portmapper
  9. PKG_SECTION:= net
  10. ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
  11. PKG_DEPENDS:= libwrap
  12. PKG_BUILDDEP+= tcp_wrappers
  13. endif
  14. PKG_URL:= http://neil.brown.name/portmap
  15. PKG_SITES:= http://neil.brown.name/portmap/
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  17. WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,PORTMAP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. INSTALL_STYLE:= manual
  22. ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
  23. MAKE_FLAGS+= WRAP_LIB='-L${STAGING_DIR}/usr/lib -lwrap'
  24. else
  25. MAKE_FLAGS+= NO_TCP_WRAPPER=1
  26. endif
  27. TCPPFLAGS+= -DDAEMON_UID=20 -DDAEMON_GID=20
  28. TCFLAGS+= -fPIC
  29. MAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS} \
  30. CFLAGS='${TCFLAGS}'
  31. do-install:
  32. ${INSTALL_DIR} ${IDIR_PORTMAP}/usr/sbin
  33. ${INSTALL_BIN} ${WRKBUILD}/portmap ${IDIR_PORTMAP}/usr/sbin/
  34. include ${TOPDIR}/mk/pkg-bottom.mk