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
7 #DISTNAME= zebra-980224
8 DISTNAME= zebra-current
11 MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
13 MAINTAINER= seirios@matrix.iri.co.jp
15 WRKSRC= ${WRKDIR}/zebra-current
17 #### Under constructing, We cannot support md5
21 @(cd ${WRKSRC}; sh ./configure; make)
24 @if [ ! -f ${PREFIX}/etc/rc.d/zebra.sh ]; then \
25 echo "Installing ${PREFIX}/etc/rc.d/zebra.sh startup file."; \
26 echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/zebra.sh; \
27 echo "# zebra" >> ${PREFIX}/etc/rc.d/zebra.sh; \
28 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; \
29 echo " /usr/local/sbin/zebra -d -f /usr/local/etc/zebra.conf" >> ${PREFIX}/etc/rc.d/zebra.sh; \
30 echo " echo -n ' zebra'" >> ${PREFIX}/etc/rc.d/zebra.sh; \
31 echo "fi" >> ${PREFIX}/etc/rc.d/zebra.sh; \
32 echo "# bgpd" >> ${PREFIX}/etc/rc.d/zebra.sh; \
33 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; \
34 echo " /usr/local/sbin/bgpd -d -f /usr/local/etc/bgpd.conf" >> ${PREFIX}/etc/rc.d/zebra.sh; \
35 echo " echo -n ' bgpd'" >> ${PREFIX}/etc/rc.d/zebra.sh; \
36 echo "fi" >> ${PREFIX}/etc/rc.d/zebra.sh; \
37 echo "# ripd" >> ${PREFIX}/etc/rc.d/zebra.sh; \
38 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; \
39 echo " /usr/local/sbin/ripd -d -f /usr/local/etc/ripd.conf" >> ${PREFIX}/etc/rc.d/zebra.sh; \
40 echo " echo -n ' ripd'" >> ${PREFIX}/etc/rc.d/zebra.sh; \
41 echo "fi" >> ${PREFIX}/etc/rc.d/zebra.sh; \
42 echo "# ripngd" >> ${PREFIX}/etc/rc.d/zebra.sh; \
43 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; \
44 echo " /usr/local/sbin/ripngd -d -f /usr/local/etc/ripd.conf" >> ${PREFIX}/etc/rc.d/zebra.sh; \
45 echo " echo -n ' ripngd'" >> ${PREFIX}/etc/rc.d/zebra.sh; \
46 echo "fi" >> ${PREFIX}/etc/rc.d/zebra.sh; \
47 chmod 751 ${PREFIX}/etc/rc.d/zebra.sh; \
49 @echo "If you will access zebra,bgpd,ripd,ripngd with telnet,";
50 @echo "then you add some line (written under this line) to /etc/services";
51 @echo " zebrasrv 2600/tcp # zebra service";
52 @echo " zebra 2601/tcp # zebra vty";
53 @echo " ripd 2602/tcp # RIPd vty";
54 @echo " ripngd 2603/tcp # RIPngd vty";
55 @echo " ospfd 2604/tcp # OSPFd vty";
56 @echo " bgpd 2605/tcp # BGPd vty";
57 @echo " pimd 2611/tcp # PIMd vty";
59 .include <bsd.port.mk>