Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # New ports collection makefile for: zebra
  2. # Version required: 2.1.5
  3. # Date created: 28 Feb 1998
  4. # Whom: seirios@matrix.iri.co.jp
  5. #
  6. #DISTNAME= zebra-980224
  7. DISTNAME= zebra-current
  8. PKGNAME= zebra
  9. CATEGORIES= net
  10. MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
  11. MAINTAINER= seirios@matrix.iri.co.jp
  12. WRKSRC= ${WRKDIR}/zebra-current
  13. #### Under constructing, We cannot support md5
  14. NO_CHECKSUM= yes
  15. do-build:
  16. @(cd ${WRKSRC}; sh ./configure; make)
  17. post-install:
  18. @if [ ! -f ${PREFIX}/etc/rc.d/zebra.sh ]; then \
  19. echo "Installing ${PREFIX}/etc/rc.d/zebra.sh startup file."; \
  20. echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/zebra.sh; \
  21. echo "# zebra" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  22. echo "if [ -x /usr/local/sbin/zebra -a ! -f /var/run/zebra.pid -a -f /usr/local/etc/zebra.conf ]; then" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  23. echo " /usr/local/sbin/zebra -d -f /usr/local/etc/zebra.conf" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  24. echo " echo -n ' zebra'" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  25. echo "fi" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  26. echo "# bgpd" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  27. echo "if [ -x /usr/local/sbin/bgpd -a ! -f /var/run/bgpd.pid -a -f /usr/local/etc/bgpd.conf ]; then" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  28. echo " /usr/local/sbin/bgpd -d -f /usr/local/etc/bgpd.conf" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  29. echo " echo -n ' bgpd'" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  30. echo "fi" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  31. echo "# ripd" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  32. echo "if [ -x /usr/local/sbin/ripd -a ! -f /var/run/ripd.pid -a -f /usr/local/etc/ripd.conf ]; then" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  33. echo " /usr/local/sbin/ripd -d -f /usr/local/etc/ripd.conf" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  34. echo " echo -n ' ripd'" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  35. echo "fi" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  36. echo "# ripngd" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  37. echo "if [ -x /usr/local/sbin/ripngd -a ! -f /var/run/ripd.pid -a -f /usr/local/etc/ripd.conf ]; then" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  38. echo " /usr/local/sbin/ripngd -d -f /usr/local/etc/ripd.conf" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  39. echo " echo -n ' ripngd'" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  40. echo "fi" >> ${PREFIX}/etc/rc.d/zebra.sh; \
  41. chmod 751 ${PREFIX}/etc/rc.d/zebra.sh; \
  42. fi
  43. @echo "If you will access zebra,bgpd,ripd,ripngd with telnet,";
  44. @echo "then you add some line (written under this line) to /etc/services";
  45. @echo " zebrasrv 2600/tcp # zebra service";
  46. @echo " zebra 2601/tcp # zebra vty";
  47. @echo " ripd 2602/tcp # RIPd vty";
  48. @echo " ripngd 2603/tcp # RIPngd vty";
  49. @echo " ospfd 2604/tcp # OSPFd vty";
  50. @echo " bgpd 2605/tcp # BGPd vty";
  51. @echo " pimd 2611/tcp # PIMd vty";
  52. .include <bsd.port.mk>