Makefile 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.15
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= readline ncurses
  8. PKG_MD5SUM:= 8975414c76a295f4855a417af0b5ddce
  9. PKG_DESCR:= A routing software package
  10. PKG_SECTION:= net
  11. PKG_MULTI:= 1
  12. PKG_URL:= http://www.quagga.net
  13. PKG_SITES:= http://www.quagga.net/download/ \
  14. http://www.de.quagga.net/download/ \
  15. http://www.uk.quagga.net/download/
  16. PKG_DESCR_1:= BGP daemon
  17. PKG_DESCR_2:= OSPF daemon
  18. PKG_DESCR_3:= OSPF IPv6 daemon
  19. PKG_DESCR_4:= RIPng daemon
  20. PKG_DESCR_5:= RIP daemon
  21. PKG_DESCR_6:= vtysh utility
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,QUAGGA,quagga,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,QUAGGA_BGPD,quagga-bgpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  25. $(eval $(call PKG_template,QUAGGA_OSPFD,quagga-ospfd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_2},${PKG_SECTION}))
  26. $(eval $(call PKG_template,QUAGGA_OSPF6D,quagga-ospf6d,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_3},${PKG_SECTION}))
  27. $(eval $(call PKG_template,QUAGGA_RIPNGD,quagga-ripngd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_4},${PKG_SECTION}))
  28. $(eval $(call PKG_template,QUAGGA_RIPD,quagga-ripd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_5},${PKG_SECTION}))
  29. $(eval $(call PKG_template,QUAGGA_VTYSH,quagga-vtysh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_6},${PKG_SECTION}))
  30. CONFIGURE_ENV+= quagga_cv_ipforward_method="proc"
  31. CONFIGURE_ARGS+= --localstatedir=/var/run/quagga \
  32. --sysconfdir=/etc/quagga \
  33. --enable-vtysh \
  34. --enable-user=quagga \
  35. --enable-group=quagga \
  36. --disable-pie \
  37. --enable-multipath=8
  38. post-install:
  39. ${INSTALL_DIR} ${IDIR_QUAGGA}/usr/{lib,sbin}
  40. ${CP} ${WRKINST}/usr/lib/libzebra.so.* ${IDIR_QUAGGA}/usr/lib/
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/zebra \
  42. ${WRKINST}/usr/sbin/watchquagga ${IDIR_QUAGGA}/usr/sbin/
  43. # avoid /etc being set to 0750
  44. ${INSTALL_DIR} ${IDIR_QUAGGA}/etc/quagga/
  45. chmod 0750 ${IDIR_QUAGGA}/etc/quagga/
  46. ${INSTALL_DIR} ${IDIR_QUAGGA_BGPD}/usr/sbin
  47. ${CP} ${WRKINST}/usr/sbin/bgpd ${IDIR_QUAGGA_BGPD}/usr/sbin/
  48. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPFD}/usr/{lib,sbin}
  49. ${CP} ${WRKINST}/usr/lib/libospf.so.* ${IDIR_QUAGGA_OSPFD}/usr/lib/
  50. ${CP} ${WRKINST}/usr/sbin/ospfd ${IDIR_QUAGGA_OSPFD}/usr/sbin/
  51. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPF6D}/usr/sbin
  52. ${CP} ${WRKINST}/usr/sbin/ospf6d ${IDIR_QUAGGA_OSPF6D}/usr/sbin/
  53. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPNGD}/usr/sbin
  54. ${CP} ${WRKINST}/usr/sbin/ripngd ${IDIR_QUAGGA_RIPNGD}/usr/sbin/
  55. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPD}/usr/sbin
  56. ${CP} ${WRKINST}/usr/sbin/ripd ${IDIR_QUAGGA_RIPD}/usr/sbin/
  57. ${INSTALL_DIR} ${IDIR_QUAGGA_VTYSH}/usr/bin
  58. ${CP} ${WRKINST}/usr/bin/vtysh ${IDIR_QUAGGA_VTYSH}/usr/bin/
  59. include ${TOPDIR}/mk/pkg-bottom.mk