* [gentoo-commits] gentoo-x86 commit in net-misc/quagga/files: zebra.init.3 quagga-services.init.2
@ 2011-09-27 13:07 Diego Petteno (flameeyes)
0 siblings, 0 replies; 2+ messages in thread
From: Diego Petteno (flameeyes) @ 2011-09-27 13:07 UTC (permalink / raw
To: gentoo-commits
flameeyes 11/09/27 13:07:50
Added: zebra.init.3 quagga-services.init.2
Log:
Version bump (security fixes); use EAPI=4; use OpenRC's proper init scripts with check whether to use syslog or not; disable strict aliasing since way too many warnings are thrown right now and this could be mission-critical for many.
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
Revision Changes Path
1.1 net-misc/quagga/files/zebra.init.3
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/zebra.init.3?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/zebra.init.3?rev=1.1&content-type=text/plain
Index: zebra.init.3
===================================================================
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/zebra.init.3,v 1.1 2011/09/27 13:07:50 flameeyes Exp $
: CFGFILE=/etc/quagga/${SVCNAME}.conf
get_service_config() {
awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
}
depend() {
config "$CFGFILE"
need net
[ "$(get_service_config log)" = "syslog" ] && \
use logger
}
start() {
if [ ! -e "${CFGFILE}" ] ; then
eerror "Before starting ${SVCNAME} you have to configure it, by creating"
eerror "a ${CFGFILE} file."
eerror ""
eerror "A sample file has been installed in `ls /usr/share/doc/quagga-*/samples/${SVCNAME}.conf.sample`"
return 1
fi
if [ ! -d /var/run/quagga ] ; then
mkdir -p /var/run/quagga
chown quagga:quagga /var/run/quagga
chmod 0750 /var/run/quagga
fi
ebegin "Cleaning up stale zebra routes..."
ip route flush proto zebra
eend $?
ebegin "Starting ${SVCNAME}"
start-stop-daemon \
--start --exec /usr/sbin/${SVCNAME} \
--pidfile /var/run/quagga/${SVCNAME}.pid \
-- -d -f "${CFGFILE}" ${EXTRA_OPTS} \
--pid_file /var/run/quagga/${SVCNAME}.pid
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop \
--pidfile /var/run/quagga/${SVCNAME}.pid
eend $?
}
1.1 net-misc/quagga/files/quagga-services.init.2
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init.2?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init.2?rev=1.1&content-type=text/plain
Index: quagga-services.init.2
===================================================================
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init.2,v 1.1 2011/09/27 13:07:50 flameeyes Exp $
: CFGFILE=/etc/quagga/${SVCNAME}.conf
get_service_config() {
awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
}
depend() {
config "$CFGFILE"
need zebra
[ "$(get_service_config log)" = "syslog" ] && \
use logger
}
start() {
if [ ! -e "${CFGFILE}" ] ; then
eerror "Before starting ${SVCNAME} you have to configure it, by creating"
eerror "a ${CFGFILE} file."
eerror ""
eerror "A sample file has been installed in `ls /usr/share/doc/quagga-*/samples/${SVCNAME}.conf.sample`"
return 1
fi
if [ ! -d /var/run/quagga ] ; then
mkdir -p /var/run/quagga
chown quagga:quagga /var/run/quagga
chmod 0750 /var/run/quagga
fi
ebegin "Starting ${SVCNAME}"
start-stop-daemon \
--start --exec /usr/sbin/${SVCNAME} \
--pidfile /var/run/quagga/${SVCNAME}.pid \
-- -d -f "${CFGFILE}" ${EXTRA_OPTS} \
--pid_file /var/run/quagga/${SVCNAME}.pid
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop \
--pidfile /var/run/quagga/${SVCNAME}.pid
eend $?
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in net-misc/quagga/files: zebra.init.3 quagga-services.init.2
@ 2011-09-27 21:50 Diego Petteno (flameeyes)
0 siblings, 0 replies; 2+ messages in thread
From: Diego Petteno (flameeyes) @ 2011-09-27 21:50 UTC (permalink / raw
To: gentoo-commits
flameeyes 11/09/27 21:50:12
Modified: zebra.init.3 quagga-services.init.2
Log:
Fix broken init scripts. Thanks to Jeroen Roovers in bug #384651.
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
Revision Changes Path
1.2 net-misc/quagga/files/zebra.init.3
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/zebra.init.3?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/zebra.init.3?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/zebra.init.3?r1=1.1&r2=1.2
Index: zebra.init.3
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/files/zebra.init.3,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- zebra.init.3 27 Sep 2011 13:07:50 -0000 1.1
+++ zebra.init.3 27 Sep 2011 21:50:12 -0000 1.2
@@ -1,9 +1,9 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/zebra.init.3,v 1.1 2011/09/27 13:07:50 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/zebra.init.3,v 1.2 2011/09/27 21:50:12 flameeyes Exp $
-: CFGFILE=/etc/quagga/${SVCNAME}.conf
+: ${CFGFILE:=/etc/quagga/${SVCNAME}.conf}
get_service_config() {
awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
1.2 net-misc/quagga/files/quagga-services.init.2
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init.2?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init.2?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init.2?r1=1.1&r2=1.2
Index: quagga-services.init.2
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init.2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- quagga-services.init.2 27 Sep 2011 13:07:50 -0000 1.1
+++ quagga-services.init.2 27 Sep 2011 21:50:12 -0000 1.2
@@ -1,9 +1,9 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init.2,v 1.1 2011/09/27 13:07:50 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init.2,v 1.2 2011/09/27 21:50:12 flameeyes Exp $
-: CFGFILE=/etc/quagga/${SVCNAME}.conf
+: ${CFGFILE:=/etc/quagga/${SVCNAME}.conf}
get_service_config() {
awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-27 21:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 21:50 [gentoo-commits] gentoo-x86 commit in net-misc/quagga/files: zebra.init.3 quagga-services.init.2 Diego Petteno (flameeyes)
-- strict thread matches above, loose matches on Subject: below --
2011-09-27 13:07 Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox