Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_URL:= http://www.quagga.net
  12. PKG_SITES:= http://www.quagga.net/download/ \
  13. http://www.de.quagga.net/download/ \
  14. http://www.uk.quagga.net/download/
  15. PKG_DESCR_1:= BGP daemon
  16. PKG_DESCR_2:= OSPF daemon
  17. PKG_DESCR_3:= OSPF IPv6 daemon
  18. PKG_DESCR_4:= RIPng daemon
  19. PKG_DESCR_5:= RIP daemon
  20. PKG_DESCR_6:= vtysh utility
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,QUAGGA,quagga,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,QUAGGA_BGPD,quagga-bgpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  24. $(eval $(call PKG_template,QUAGGA_OSPFD,quagga-ospfd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_2},${PKG_SECTION}))
  25. $(eval $(call PKG_template,QUAGGA_OSPF6D,quagga-ospf6d,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_3},${PKG_SECTION}))
  26. $(eval $(call PKG_template,QUAGGA_RIPNGD,quagga-ripngd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_4},${PKG_SECTION}))
  27. $(eval $(call PKG_template,QUAGGA_RIPD,quagga-ripd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_5},${PKG_SECTION}))
  28. $(eval $(call PKG_template,QUAGGA_VTYSH,quagga-vtysh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_6},${PKG_SECTION}))
  29. CONFIGURE_STYLE:= gnu
  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. --enable-multipath=8
  37. BUILD_STYLE:= auto
  38. INSTALL_STYLE:= auto
  39. post-install:
  40. ${INSTALL_DIR} ${IDIR_QUAGGA}/usr/{lib,sbin}
  41. ${CP} ${WRKINST}/usr/lib/libzebra.so.* ${IDIR_QUAGGA}/usr/lib/
  42. ${INSTALL_BIN} ${WRKINST}/usr/sbin/zebra \
  43. ${WRKINST}/usr/sbin/watchquagga ${IDIR_QUAGGA}/usr/sbin/
  44. # avoid /etc being set to 0750
  45. ${INSTALL_DIR} ${IDIR_QUAGGA}/etc/quagga/
  46. chmod 0750 ${IDIR_QUAGGA}/etc/quagga/
  47. ${INSTALL_DIR} ${IDIR_QUAGGA_BGPD}/usr/sbin
  48. ${CP} ${WRKINST}/usr/sbin/bgpd ${IDIR_QUAGGA_BGPD}/usr/sbin/
  49. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPFD}/usr/{lib,sbin}
  50. ${CP} ${WRKINST}/usr/lib/libospf.so.* ${IDIR_QUAGGA_OSPFD}/usr/lib/
  51. ${CP} ${WRKINST}/usr/sbin/ospfd ${IDIR_QUAGGA_OSPFD}/usr/sbin/
  52. ${INSTALL_DIR} ${IDIR_QUAGGA_OSPF6D}/usr/sbin
  53. ${CP} ${WRKINST}/usr/sbin/ospf6d ${IDIR_QUAGGA_OSPF6D}/usr/sbin/
  54. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPNGD}/usr/sbin
  55. ${CP} ${WRKINST}/usr/sbin/ripngd ${IDIR_QUAGGA_RIPNGD}/usr/sbin/
  56. ${INSTALL_DIR} ${IDIR_QUAGGA_RIPD}/usr/sbin
  57. ${CP} ${WRKINST}/usr/sbin/ripd ${IDIR_QUAGGA_RIPD}/usr/sbin/
  58. ${INSTALL_DIR} ${IDIR_QUAGGA_VTYSH}/usr/bin
  59. ${CP} ${WRKINST}/usr/bin/vtysh ${IDIR_QUAGGA_VTYSH}/usr/bin/
  60. include ${TOPDIR}/mk/pkg-bottom.mk