Makefile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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_STYLE:= gnu
  31. CONFIGURE_ENV+= quagga_cv_ipforward_method="proc"
  32. CONFIGURE_ARGS+= --localstatedir=/var/run/quagga \
  33. --sysconfdir=/etc/quagga \
  34. --enable-vtysh \
  35. --enable-user=quagga \
  36. --enable-group=quagga \
  37. --disable-pie \
  38. --enable-multipath=8
  39. BUILD_STYLE:= auto
  40. INSTALL_STYLE:= auto
  41. post-install:
  42. ${INSTALL_DIR} ${IDIR_QUAGGA}/usr/{lib,sbin}
  43. ${CP} ${WRKINST}/usr/lib/libzebra.so.* ${IDIR_QUAGGA}/usr/lib/
  44. ${INSTALL_BIN} ${WRKINST}/usr/sbin/zebra \
  45. ${WRKINST}/usr/sbin/watchquagga ${IDIR_QUAGGA}/usr/sbin/
  46. # avoid /etc being set to 0750
  47. ${INSTALL_DIR} ${IDIR_QUAGGA}/etc/quagga/
  48. chmod 0750 ${IDIR_QUAGGA}/etc/quagga/
  49. ${INSTALL_DIR} ${IDIR_QUAGGA_BGPD}/usr/sbin
  50. ${CP} ${WRKINST}/usr/sbin/bgpd ${IDIR_QUAGGA_BGPD}/usr/sbin/
  51. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPFD}/usr/{lib,sbin}
  52. ${CP} ${WRKINST}/usr/lib/libospf.so.* ${IDIR_QUAGGA_OSPFD}/usr/lib/
  53. ${CP} ${WRKINST}/usr/sbin/ospfd ${IDIR_QUAGGA_OSPFD}/usr/sbin/
  54. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPF6D}/usr/sbin
  55. ${CP} ${WRKINST}/usr/sbin/ospf6d ${IDIR_QUAGGA_OSPF6D}/usr/sbin/
  56. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPNGD}/usr/sbin
  57. ${CP} ${WRKINST}/usr/sbin/ripngd ${IDIR_QUAGGA_RIPNGD}/usr/sbin/
  58. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPD}/usr/sbin
  59. ${CP} ${WRKINST}/usr/sbin/ripd ${IDIR_QUAGGA_RIPD}/usr/sbin/
  60. ${INSTALL_DIR} ${IDIR_QUAGGA_VTYSH}/usr/bin
  61. ${CP} ${WRKINST}/usr/bin/vtysh ${IDIR_QUAGGA_VTYSH}/usr/bin/
  62. include ${TOPDIR}/mk/pkg-bottom.mk