summaryrefslogtreecommitdiffstats
path: root/net/zebra
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1999-07-18 10:31:43 +0000
committerandreas <andreas@FreeBSD.org>1999-07-18 10:31:43 +0000
commitae832186fdb2afb650ef165e5f5e5bbf13ea81e7 (patch)
tree7c6e097c3f98ab61ee8210548dbc37c60aab485a /net/zebra
parent6139ed07c3bd39a1eea2561262f1cdb18781c3ac (diff)
downloadFreeBSD-ports-ae832186fdb2afb650ef165e5f5e5bbf13ea81e7.zip
FreeBSD-ports-ae832186fdb2afb650ef165e5f5e5bbf13ea81e7.tar.gz
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
Diffstat (limited to 'net/zebra')
-rw-r--r--net/zebra/Makefile9
-rw-r--r--net/zebra/pkg-plist1
2 files changed, 9 insertions, 1 deletions
diff --git a/net/zebra/Makefile b/net/zebra/Makefile
index a91b7c0..6cba387 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 a9ee036..3066d27 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
OpenPOWER on IntegriCloud