diff options
author | Andreas Klemm <andreas@FreeBSD.org> | 1999-07-18 10:31:43 +0000 |
---|---|---|
committer | Andreas Klemm <andreas@FreeBSD.org> | 1999-07-18 10:31:43 +0000 |
commit | da57b0623d09c809bf86418fb4c36c303278e9a2 (patch) | |
tree | fede98a323f51ea089ebe904cec06d0393f25554 /net/zebra | |
parent | BROKEN= "Hardcoded FreeBSD release numbers in PLIST" (diff) |
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
Notes
Notes:
svn path=/head/; revision=20261
Diffstat (limited to 'net/zebra')
-rw-r--r-- | net/zebra/Makefile | 9 | ||||
-rw-r--r-- | net/zebra/pkg-plist | 1 |
2 files changed, 9 insertions, 1 deletions
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 <andreas@klemm.gtn.com> # -# $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 <bsd.port.mk> 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 |