From da57b0623d09c809bf86418fb4c36c303278e9a2 Mon Sep 17 00:00:00 2001 From: Andreas Klemm Date: Sun, 18 Jul 1999 10:31:43 +0000 Subject: Make zebra port more user friendly be providing a nice start stop script which is prefix-clean: - Install a zebra startup script ${PREFIX}/rc.d/zebra.sh - Can be used as start and stop script (expects "start" or - "stop" as argument). - If config file is present in ${PREFIX}/etc/zebra - Starts zebra, ripd, ospfd and bgpd - Stops (kills) ripd, ospfd, bgpd and at last zebra --- net/zebra-devel/Makefile | 9 ++++++++- net/zebra-devel/pkg-plist | 1 + net/zebra-pj/Makefile | 9 ++++++++- net/zebra-pj/pkg-plist | 1 + net/zebra/Makefile | 9 ++++++++- net/zebra/pkg-plist | 1 + 6 files changed, 27 insertions(+), 3 deletions(-) (limited to 'net') diff --git a/net/zebra-devel/Makefile b/net/zebra-devel/Makefile index a91b7c0117da..6cba387f3b45 100644 --- a/net/zebra-devel/Makefile +++ b/net/zebra-devel/Makefile @@ -3,7 +3,7 @@ # Date created: So 31 Mai 1998 11:00:30 CEST # Whom: Andreas Klemm # -# $Id: Makefile,v 1.14 1999/06/19 10:21:01 andreas Exp $ +# $Id: Makefile,v 1.15 1999/07/17 22:14:37 andreas Exp $ # DISTNAME= zebra-0.73 @@ -17,4 +17,11 @@ MAINTAINER= andreas@FreeBSD.ORG GNU_CONFIGURE= yes CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra +post-install: + @${ECHO} "===> installing zebra startup file..." + @${SED} -e "s=!!PREFIX!!=${PREFIX}=" \ + < ${FILESDIR}/zebra.sh \ + > ${PREFIX}/etc/rc.d/zebra.sh + @${ECHO} "===> done." + .include diff --git a/net/zebra-devel/pkg-plist b/net/zebra-devel/pkg-plist index a9ee036007de..3066d27b9659 100644 --- a/net/zebra-devel/pkg-plist +++ b/net/zebra-devel/pkg-plist @@ -3,6 +3,7 @@ sbin/client sbin/ospfd sbin/ripd sbin/zebra +etc/rc.d/zebra.sh etc/zebra/bgpd.conf.sample etc/zebra/ripd.conf.sample etc/zebra/zebra.conf.sample diff --git a/net/zebra-pj/Makefile b/net/zebra-pj/Makefile index a91b7c0117da..6cba387f3b45 100644 --- a/net/zebra-pj/Makefile +++ b/net/zebra-pj/Makefile @@ -3,7 +3,7 @@ # Date created: So 31 Mai 1998 11:00:30 CEST # Whom: Andreas Klemm # -# $Id: Makefile,v 1.14 1999/06/19 10:21:01 andreas Exp $ +# $Id: Makefile,v 1.15 1999/07/17 22:14:37 andreas Exp $ # DISTNAME= zebra-0.73 @@ -17,4 +17,11 @@ MAINTAINER= andreas@FreeBSD.ORG GNU_CONFIGURE= yes CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra +post-install: + @${ECHO} "===> installing zebra startup file..." + @${SED} -e "s=!!PREFIX!!=${PREFIX}=" \ + < ${FILESDIR}/zebra.sh \ + > ${PREFIX}/etc/rc.d/zebra.sh + @${ECHO} "===> done." + .include diff --git a/net/zebra-pj/pkg-plist b/net/zebra-pj/pkg-plist index a9ee036007de..3066d27b9659 100644 --- a/net/zebra-pj/pkg-plist +++ b/net/zebra-pj/pkg-plist @@ -3,6 +3,7 @@ sbin/client sbin/ospfd sbin/ripd sbin/zebra +etc/rc.d/zebra.sh etc/zebra/bgpd.conf.sample etc/zebra/ripd.conf.sample etc/zebra/zebra.conf.sample diff --git a/net/zebra/Makefile b/net/zebra/Makefile index a91b7c0117da..6cba387f3b45 100644 --- a/net/zebra/Makefile +++ b/net/zebra/Makefile @@ -3,7 +3,7 @@ # Date created: So 31 Mai 1998 11:00:30 CEST # Whom: Andreas Klemm # -# $Id: Makefile,v 1.14 1999/06/19 10:21:01 andreas Exp $ +# $Id: Makefile,v 1.15 1999/07/17 22:14:37 andreas Exp $ # DISTNAME= zebra-0.73 @@ -17,4 +17,11 @@ MAINTAINER= andreas@FreeBSD.ORG GNU_CONFIGURE= yes CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra +post-install: + @${ECHO} "===> installing zebra startup file..." + @${SED} -e "s=!!PREFIX!!=${PREFIX}=" \ + < ${FILESDIR}/zebra.sh \ + > ${PREFIX}/etc/rc.d/zebra.sh + @${ECHO} "===> done." + .include diff --git a/net/zebra/pkg-plist b/net/zebra/pkg-plist index a9ee036007de..3066d27b9659 100644 --- a/net/zebra/pkg-plist +++ b/net/zebra/pkg-plist @@ -3,6 +3,7 @@ sbin/client sbin/ospfd sbin/ripd sbin/zebra +etc/rc.d/zebra.sh etc/zebra/bgpd.conf.sample etc/zebra/ripd.conf.sample etc/zebra/zebra.conf.sample -- cgit v1.2.3