Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
  8. PKG_BUILDDEP+= tcp_wrappers
  9. endif
  10. PKG_MD5SUM:= ac108ab68bf0f34477f8317791aaf1ff
  11. PKG_DESCR:= RPC portmapper
  12. PKG_SECTION:= net
  13. PKG_URL:= http://neil.brown.name/portmap
  14. PKG_SITES:= http://neil.brown.name/portmap/
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  16. WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}
  17. include ${TOPDIR}/mk/package.mk
  18. ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
  19. PKG_DEPENDS:= libwrap
  20. endif
  21. $(eval $(call PKG_template,PORTMAP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  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. BUILD_STYLE:= auto
  30. MAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS} \
  31. CFLAGS='${TCFLAGS}'
  32. do-install:
  33. ${INSTALL_DIR} ${IDIR_PORTMAP}/usr/sbin
  34. ${INSTALL_BIN} ${WRKBUILD}/portmap ${IDIR_PORTMAP}/usr/sbin/
  35. include ${TOPDIR}/mk/pkg-bottom.mk