Makefile 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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:= iproute2
  5. PKG_VERSION:= 2.6.29-1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= c1bc258a6c345905e79935ac7a3cc582
  8. PKG_DESCR:= iproute2 routing control utility
  9. PKG_SECTION:= net
  10. PKG_URL:= http://www.linuxfoundation.org/en/Net:Iproute2
  11. PKG_SITES:= http://developer.osdl.org/dev/iproute2/download/
  12. PKG_DESCR_TC:= iproute2 traffic control utility
  13. PKG_DEPENDS_TC:= kmod-sched
  14. PKG_DESCR_TC_ATM:= iproute2 traffic control ATM support library
  15. PKG_DEPENDS_TC_ATM:= tc
  16. PKG_DESCR_IFSTAT:= iproute2 interface statistics utility
  17. PKG_DESCR_LNSTAT:= iproute2 network statistics utilities
  18. PKG_DESCR_ROUTEL:= iproute2 route list and flush utilities
  19. PKG_DESCR_RTMON:= iproute2 RTnetlink monitor
  20. PKG_DESCR_SS:= iproute2 socket statistics utility
  21. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,IP,ip,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,TC,tc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_TC},${PKG_DESCR_TC},${PKG_SECTION}))
  25. $(eval $(call PKG_template,TC_ATM,tc-atm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_TC_ATM},${PKG_DESCR_TC_ATM},${PKG_SECTION}))
  26. $(eval $(call PKG_template,IFSTAT,ifstat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_IFSTAT},${PKG_DESCR_IFSTAT},${PKG_SECTION}))
  27. $(eval $(call PKG_template,LNSTAT,lnstat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_LNSTAT},${PKG_DESCR_LNSTAT},${PKG_SECTION}))
  28. $(eval $(call PKG_template,ROUTEL,routel,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_ROUTEL},${PKG_DESCR_ROUTEL},${PKG_SECTION}))
  29. $(eval $(call PKG_template,RTMON,rtmon,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_RTMON},${PKG_DESCR_RTMON},${PKG_SECTION}))
  30. $(eval $(call PKG_template,SS,ss,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_SS},${PKG_DESCR_SS},${PKG_SECTION}))
  31. CONFIGURE_STYLE= gnu
  32. CONFIGURE_FLAGS+= KERNEL_INCLUDE="${LINUX_DIR}/include"
  33. MAKE_FLAGS+= MFLAGS="CC=${TARGET_CC}"
  34. BUILD_STYLE= auto
  35. INSTALL_STYLE= auto
  36. INSTALL_y:=
  37. INSTALL_m:=
  38. INSTALL_${ADK_PACKAGE_IP}:= install-ip
  39. INSTALL_${ADK_PACKAGE_TC}:= install-tc
  40. INSTALL_${ADK_PACKAGE_TC_ATM}:= install-tc-atm
  41. INSTALL_${ADK_PACKAGE_IFSTAT}:= install-ifstat
  42. INSTALL_${ADK_PACKAGE_LNSTAT}:= install-lnstat
  43. INSTALL_${ADK_PACKAGE_ROUTEL}:= install-routel
  44. INSTALL_${ADK_PACKAGE_RTMON}:= install-rtmon
  45. INSTALL_${ADK_PACKAGE_SS}:= install-ss
  46. post-install: ${INSTALL_y} ${INSTALL_m}
  47. install-ip:
  48. ${INSTALL_DIR} ${IDIR_IP}/{etc/iproute2,usr/sbin}
  49. ${INSTALL_DATA} ${WRKINST}/etc/iproute2/* ${IDIR_IP}/etc/iproute2/
  50. ${INSTALL_BIN} ${WRKINST}/sbin/ip ${IDIR_IP}/usr/sbin/ip
  51. install-tc:
  52. ${INSTALL_DIR} ${IDIR_TC}/{lib/tc,usr/sbin}
  53. ${INSTALL_DATA} ${WRKINST}/lib/tc/* ${IDIR_TC}/lib/tc/
  54. ${INSTALL_BIN} ${WRKINST}/sbin/tc ${IDIR_TC}/usr/sbin/
  55. install-tc-atm:
  56. ${INSTALL_DIR} ${IDIR_TC_ATM}/usr/lib/tc
  57. ${INSTALL_DATA} ${WRKINST}/usr/lib/tc/q_atm.so ${IDIR_TC_ATM}/usr/lib/tc/
  58. install-ifstat:
  59. ${INSTALL_DIR} ${IDIR_IFSTAT}/usr/sbin
  60. ${INSTALL_BIN} ${WRKINST}/sbin/ifstat ${IDIR_IFSTAT}/usr/sbin
  61. install-lnstat:
  62. ${INSTALL_DIR} ${IDIR_LNSTAT}/usr/sbin
  63. ${INSTALL_BIN} ${WRKINST}/sbin/{ln,n}stat ${IDIR_LNSTAT}/usr/sbin
  64. ln -sf lnstat ${IDIR_LNSTAT}/usr/sbin/rtstat
  65. ln -sf lnstat ${IDIR_LNSTAT}/usr/sbin/ctstat
  66. ${INSTALL_BIN} ${WRKINST}/sbin/rtacct ${IDIR_LNSTAT}/usr/sbin
  67. install-routel:
  68. ${INSTALL_DIR} ${IDIR_ROUTEL}/usr/sbin
  69. ${INSTALL_BIN} ${WRKINST}/sbin/route{l,f} ${IDIR_ROUTEL}/usr/sbin
  70. install-rtmon:
  71. ${INSTALL_DIR} ${IDIR_RTMON}/usr/sbin
  72. ${INSTALL_BIN} ${WRKINST}/sbin/rtmon ${IDIR_RTMON}/usr/sbin
  73. install-ss:
  74. ${INSTALL_DIR} ${IDIR_SS}/usr/sbin
  75. ${INSTALL_BIN} ${WRKINST}/sbin/ss ${IDIR_SS}/usr/sbin
  76. include ${TOPDIR}/mk/pkg-bottom.mk