Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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:= quagga
  5. PKG_VERSION:= 0.99.17
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 37b9022adca04b03863d2d79787e643f
  8. PKG_DESCR:= A routing software package
  9. PKG_SECTION:= route
  10. PKG_BUILDDEP:= readline ncurses
  11. PKG_URL:= http://www.quagga.net/
  12. PKG_SITES:= http://download.savannah.gnu.org/releases/quagga/
  13. PKG_MULTI:= 1
  14. PKG_SUBPKGS:= QUAGGA QUAGGA_BGPD QUAGGA_OSPFD QUAGGA_OSPF6D
  15. PKG_SUBPKGS+= QUAGGA_RIPNGD QUAGGA_RIPD QUAGGA_VTYSH
  16. PKGSD_QUAGGA_BGPD:= BGP daemon
  17. PKGSD_QUAGGA_OSPFD:= OSPF daemon
  18. PKGSD_QUAGGA_OSPF6D:= OSPF IPv6 daemon
  19. PKGSD_QUAGGA_RIPNGD:= RIPng daemon
  20. PKGSD_QUAGGA_RIPD:= RIP daemon
  21. PKGSD_QUAGGA_VTYSH:= vtysh utility
  22. PKG_FLAVOURS_QUAGGA:= WITH_IPV6
  23. PKGFD_WITH_IPV6:= enable IPv6 support
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,QUAGGA,quagga,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,QUAGGA_BGPD,quagga-bgpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_BGPD},${PKG_SECTION}))
  27. $(eval $(call PKG_template,QUAGGA_OSPFD,quagga-ospfd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_OSPFD},${PKG_SECTION}))
  28. $(eval $(call PKG_template,QUAGGA_OSPF6D,quagga-ospf6d,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_OSPF6D},${PKG_SECTION}))
  29. $(eval $(call PKG_template,QUAGGA_RIPNGD,quagga-ripngd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_RIPNGD},${PKG_SECTION}))
  30. $(eval $(call PKG_template,QUAGGA_RIPD,quagga-ripd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_RIPD},${PKG_SECTION}))
  31. $(eval $(call PKG_template,QUAGGA_VTYSH,quagga-vtysh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_VTYSH},${PKG_SECTION}))
  32. CONFIGURE_ENV+= quagga_cv_ipforward_method="proc"
  33. CONFIGURE_ARGS+= --localstatedir=/var/run/quagga \
  34. --sysconfdir=/etc/quagga \
  35. --enable-vtysh \
  36. --enable-user=quagga \
  37. --enable-group=quagga \
  38. --disable-pie \
  39. --enable-multipath=8
  40. ifneq (${ADK_PACKAGE_QUAGGA_WITH_IPV6},)
  41. CONFIGURE_ARGS+= --enable-ipv6
  42. else
  43. CONFIGURE_ARGS+= --disable-ipv6
  44. endif
  45. quagga-install:
  46. ${INSTALL_DIR} ${IDIR_QUAGGA}/usr/{lib,sbin}
  47. ${CP} ${WRKINST}/usr/lib/libzebra.so.* ${IDIR_QUAGGA}/usr/lib/
  48. ${INSTALL_BIN} ${WRKINST}/usr/sbin/zebra \
  49. ${WRKINST}/usr/sbin/watchquagga ${IDIR_QUAGGA}/usr/sbin/
  50. # avoid /etc being set to 0750
  51. ${INSTALL_DIR} ${IDIR_QUAGGA}/etc/quagga/
  52. chmod 0750 ${IDIR_QUAGGA}/etc/quagga/
  53. quagga-bgpd-install:
  54. ${INSTALL_DIR} ${IDIR_QUAGGA_BGPD}/usr/sbin
  55. ${CP} ${WRKINST}/usr/sbin/bgpd ${IDIR_QUAGGA_BGPD}/usr/sbin/
  56. quagga-ospfd-install:
  57. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPFD}/usr/{lib,sbin}
  58. ${CP} ${WRKINST}/usr/lib/libospf.so.* ${IDIR_QUAGGA_OSPFD}/usr/lib/
  59. ${CP} ${WRKINST}/usr/sbin/ospfd ${IDIR_QUAGGA_OSPFD}/usr/sbin/
  60. quagga-ospf6d-install:
  61. ifneq (${ADK_PACKAGE_QUAGGA_WITH_IPV6},)
  62. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPF6D}/usr/sbin
  63. ${CP} ${WRKINST}/usr/sbin/ospf6d ${IDIR_QUAGGA_OSPF6D}/usr/sbin/
  64. endif
  65. quagga-ripngd-install:
  66. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPNGD}/usr/sbin
  67. ${CP} ${WRKINST}/usr/sbin/ripngd ${IDIR_QUAGGA_RIPNGD}/usr/sbin/
  68. quagga-ripd-install:
  69. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPD}/usr/sbin
  70. ${CP} ${WRKINST}/usr/sbin/ripd ${IDIR_QUAGGA_RIPD}/usr/sbin/
  71. quagga-vtysh-install:
  72. ${INSTALL_DIR} ${IDIR_QUAGGA_VTYSH}/usr/bin
  73. ${CP} ${WRKINST}/usr/bin/vtysh ${IDIR_QUAGGA_VTYSH}/usr/bin/
  74. include ${TOPDIR}/mk/pkg-bottom.mk