1
0

Makefile 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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:= quagga
  5. PKG_VERSION:= 0.99.22.4
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 5e12056692e2dbc272a929f96d0e98d9873f4e7f7ffcca62434b58f6660a6386
  8. PKG_DESCR:= routing software package
  9. PKG_SECTION:= net/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_SUBPKGS:= QUAGGA QUAGGA_BGPD QUAGGA_OSPFD QUAGGA_OSPF6D
  14. PKG_SUBPKGS+= QUAGGA_RIPNGD QUAGGA_RIPD QUAGGA_VTYSH
  15. PKGSD_QUAGGA_BGPD:= BGP daemon
  16. PKGSN_QUAGGA_BGPD:= quagga
  17. PKGSD_QUAGGA_OSPFD:= OSPF daemon
  18. PKGSN_QUAGGA_OSPFD:= quagga
  19. PKGSD_QUAGGA_OSPF6D:= OSPF IPv6 daemon
  20. PKGSN_QUAGGA_OSPF6D:= quagga
  21. PKGSD_QUAGGA_RIPNGD:= RIPng daemon
  22. PKGSN_QUAGGA_RIPNGD:= quagga
  23. PKGSD_QUAGGA_RIPD:= RIP daemon
  24. PKGSN_QUAGGA_RIPD:= quagga
  25. PKGSD_QUAGGA_VTYSH:= vtysh utility
  26. PKGSN_QUAGGA_VTYSH:= quagga
  27. PKG_FLAVOURS_QUAGGA:= WITH_IPV6
  28. PKGFD_WITH_IPV6:= enable IPv6 support
  29. include ${ADK_TOPDIR}/mk/package.mk
  30. $(eval $(call PKG_template,QUAGGA,quagga,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  31. $(eval $(call PKG_template,QUAGGA_BGPD,quagga-bgpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_BGPD},${PKG_SECTION}))
  32. $(eval $(call PKG_template,QUAGGA_OSPFD,quagga-ospfd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_OSPFD},${PKG_SECTION}))
  33. $(eval $(call PKG_template,QUAGGA_OSPF6D,quagga-ospf6d,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_OSPF6D},${PKG_SECTION}))
  34. $(eval $(call PKG_template,QUAGGA_RIPNGD,quagga-ripngd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_RIPNGD},${PKG_SECTION}))
  35. $(eval $(call PKG_template,QUAGGA_RIPD,quagga-ripd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_RIPD},${PKG_SECTION}))
  36. $(eval $(call PKG_template,QUAGGA_VTYSH,quagga-vtysh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_QUAGGA_VTYSH},${PKG_SECTION}))
  37. CONFIGURE_ENV+= quagga_cv_ipforward_method="proc"
  38. CONFIGURE_ARGS+= --localstatedir=/var/run/quagga \
  39. --sysconfdir=/etc/quagga \
  40. --enable-vtysh \
  41. --enable-user=quagga \
  42. --enable-group=quagga \
  43. --disable-pie \
  44. --disable-babeld \
  45. --disable-doc \
  46. --disable-tests \
  47. --enable-multipath=8
  48. ifneq (${ADK_PACKAGE_QUAGGA_WITH_IPV6},)
  49. CONFIGURE_ARGS+= --enable-ipv6
  50. else
  51. CONFIGURE_ARGS+= --disable-ipv6
  52. endif
  53. quagga-install:
  54. ${INSTALL_DIR} ${IDIR_QUAGGA}/usr/{lib,sbin}
  55. ${CP} ${WRKINST}/usr/lib/libzebra.so.* ${IDIR_QUAGGA}/usr/lib/
  56. ${INSTALL_BIN} ${WRKINST}/usr/sbin/zebra \
  57. ${WRKINST}/usr/sbin/watchquagga ${IDIR_QUAGGA}/usr/sbin/
  58. # avoid /etc being set to 0750
  59. ${INSTALL_DIR} ${IDIR_QUAGGA}/etc/quagga/
  60. chmod 0750 ${IDIR_QUAGGA}/etc/quagga/
  61. quagga-bgpd-install:
  62. ${INSTALL_DIR} ${IDIR_QUAGGA_BGPD}/usr/sbin
  63. ${CP} ${WRKINST}/usr/sbin/bgpd ${IDIR_QUAGGA_BGPD}/usr/sbin/
  64. quagga-ospfd-install:
  65. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPFD}/usr/{lib,sbin}
  66. ${CP} ${WRKINST}/usr/lib/libospf.so.* ${IDIR_QUAGGA_OSPFD}/usr/lib/
  67. ${CP} ${WRKINST}/usr/sbin/ospfd ${IDIR_QUAGGA_OSPFD}/usr/sbin/
  68. quagga-ospf6d-install:
  69. ifneq (${ADK_PACKAGE_QUAGGA_WITH_IPV6},)
  70. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPF6D}/usr/sbin
  71. ${CP} ${WRKINST}/usr/sbin/ospf6d ${IDIR_QUAGGA_OSPF6D}/usr/sbin/
  72. endif
  73. quagga-ripngd-install:
  74. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPNGD}/usr/sbin
  75. ${CP} ${WRKINST}/usr/sbin/ripngd ${IDIR_QUAGGA_RIPNGD}/usr/sbin/
  76. quagga-ripd-install:
  77. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPD}/usr/sbin
  78. ${CP} ${WRKINST}/usr/sbin/ripd ${IDIR_QUAGGA_RIPD}/usr/sbin/
  79. quagga-vtysh-install:
  80. ${INSTALL_DIR} ${IDIR_QUAGGA_VTYSH}/usr/bin
  81. ${CP} ${WRKINST}/usr/bin/vtysh ${IDIR_QUAGGA_VTYSH}/usr/bin/
  82. include ${ADK_TOPDIR}/mk/pkg-bottom.mk