pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/32756: pkgsrc: net/zebra needs start up scripts



>Number:         32756
>Category:       pkg
>Synopsis:       net/zebra needs start up scripts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 06 05:45:00 +0000 2006
>Originator:     Eric Schnoebelen
>Release:        NetBSD 3.0
>Organization:
        Central Iowa (Model) Railroad
>Environment:
        
        
System: NetBSD duke.cirr.com 3.0 NetBSD 3.0 (GENERIC) #22: Thu Dec 29 15:53:10 
CST 2005 
eric%egsner.cirr.com@localhost:/work/eric/NetBSD-3/obj/alpha/sys/arch/alpha/compile/GENERIC
 alpha
Architecture: alpha
Machine: alpha
/bin/sh: ELF 64-bit LSB executable, Alpha (unofficial), version 1 (SYSV), for 
NetBSD 3.0, dynamically linked (uses shared libs), not stripped
>Description:
        Package net/zebra lacks automatic start up scripts for use with
        the rc.d system. (or any other boot time scripts.)
>How-To-Repeat:
        build, install, look in @PREFIX@/share/examples/rc.d.
        note lack of start up scripts for any of the zebra components
>Fix:
# attached are the changes to the makefile, and the additional 
# start up scripts for each of the zebra components.
#
# a similar set of changes is probably needed for the quagga package.
# those patches will come under seperate cover.
#
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/zebra/Makefile,v
retrieving revision 1.72
diff -u -b -w -b -u -w -r1.72 Makefile
--- Makefile    29 Dec 2005 06:22:04 -0000      1.72
+++ Makefile    6 Feb 2006 05:39:05 -0000
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.zebra.org/
 COMMENT=       Free multithreaded routing daemon software
 
+.include "../../mk/bsd.prefs.mk"
+
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS+=       --infodir=${PREFIX}/${INFO_DIR}
@@ -21,6 +23,8 @@
                ${EGDIR}/ospfd.conf.sample ${PKG_SYSCONFDIR}/ospfd.conf \
                ${EGDIR}/ripd.conf.sample ${PKG_SYSCONFDIR}/ripd.conf \
                ${EGDIR}/zebra.conf.sample ${PKG_SYSCONFDIR}/zebra.conf
+RCD_SCRIPTS+=  bgpd ospfd ripd zebra
+
 # with optimization, the timer/scheduler (esp. for MRT dump rotation) appears
 # to have problems.
 CFLAGS+=       -O0
@@ -33,8 +37,6 @@
 
 BUILD_DEFS+=           USE_ZEBRA_VTYSH
 
-.include "../../mk/bsd.prefs.mk"
-
 .if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
 USE_GNU_READLINE=      # uses rl_pending_input
 .  include "../../devel/readline/buildlink3.mk"
@@ -56,6 +58,7 @@
 CONFIGURE_ARGS+=       --enable-ipv6
 CONF_FILES+=   ${EGDIR}/ospf6d.conf.sample ${PKG_SYSCONFDIR}/ospf6d.conf \
                ${EGDIR}/ripngd.conf.sample ${PKG_SYSCONFDIR}/ripngd.conf
+RCD_SCRIPTS+=  ospf6d ripngd
 .else
 CONFIGURE_ARGS+=       --disable-ipv6
 CONFIGURE_ARGS+=       --disable-ospf6d
--- /dev/null   2006-02-05 23:33:51.000000000 -0600
+++ files/bgpd.sh       2006-02-05 23:22:12.000000000 -0600
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD$
+#
+# PROVIDE: bgpd
+# REQUIRE: zebra
+
+. /etc/rc.subr
+
+name="bgpd"
+rcvar=zebra_${name}
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+command_args="-d"
+
+load_rc_config $name
+run_rc_command "$1"
--- /dev/null   2006-02-05 23:33:51.000000000 -0600
+++ files/ospf6d.sh     2006-02-05 23:11:10.000000000 -0600
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD$
+#
+# PROVIDE: ospf6d
+# REQUIRE: zebra
+
+. /etc/rc.subr
+
+name="ospf6d"
+rcvar=zebra_${name}
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+command_args="-d"
+
+load_rc_config $name
+run_rc_command "$1"
--- /dev/null   2006-02-05 23:33:51.000000000 -0600
+++ files/ospfd.sh      2006-02-05 23:11:19.000000000 -0600
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD$
+#
+# PROVIDE: ospfd
+# REQUIRE: zebra
+
+. /etc/rc.subr
+
+name="ospfd"
+rcvar=zebra_${name}
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+command_args="-d"
+
+load_rc_config $name
+run_rc_command "$1"
--- /dev/null   2006-02-05 23:33:51.000000000 -0600
+++ files/ripd.sh       2006-02-05 23:11:25.000000000 -0600
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD$
+#
+# PROVIDE: ripd
+# REQUIRE: zebra
+
+. /etc/rc.subr
+
+name="ripd"
+rcvar=zebra_${name}
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+command_args="-d"
+
+load_rc_config $name
+run_rc_command "$1"
--- /dev/null   2006-02-05 23:33:51.000000000 -0600
+++ files/ripngd.sh     2006-02-05 23:11:29.000000000 -0600
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD$
+#
+# PROVIDE: ripngd
+# REQUIRE: zebra
+
+. /etc/rc.subr
+
+name="ripngd"
+rcvar=zebra_${name}
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+command_args="-d"
+
+load_rc_config $name
+run_rc_command "$1"
--- /dev/null   2006-02-05 23:33:51.000000000 -0600
+++ files/zebra.sh      2006-02-05 23:22:22.000000000 -0600
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD$
+#
+# PROVIDE: zebra
+# REQUIRE: NETWORKING
+
+. /etc/rc.subr
+
+name="zebra"
+rcvar=${name}
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf"
+command_args="-d"
+
+load_rc_config $name
+run_rc_command "$1"

>Unformatted:
                pkgsrc 2006-02-04



Home | Main Index | Thread Index | Old Index