pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/parallel/ganglia-monitor-core Rename RC scripts and us...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e5e756cea5a5
branches: trunk
changeset: 533345:e5e756cea5a5
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun Sep 16 10:29:52 2007 +0000
description:
Rename RC scripts and use common infrastructure handling instead of doing
it manually.
diffstat:
parallel/ganglia-monitor-core/Makefile | 13 +-------
parallel/ganglia-monitor-core/files/gmetad.in | 45 ---------------------------
parallel/ganglia-monitor-core/files/gmetad.sh | 45 +++++++++++++++++++++++++++
parallel/ganglia-monitor-core/files/gmond.in | 42 -------------------------
parallel/ganglia-monitor-core/files/gmond.sh | 42 +++++++++++++++++++++++++
5 files changed, 88 insertions(+), 99 deletions(-)
diffs (231 lines):
diff -r 9374d8784f78 -r e5e756cea5a5 parallel/ganglia-monitor-core/Makefile
--- a/parallel/ganglia-monitor-core/Makefile Sun Sep 16 09:41:50 2007 +0000
+++ b/parallel/ganglia-monitor-core/Makefile Sun Sep 16 10:29:52 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2007/06/08 12:25:05 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2007/09/16 10:29:52 joerg Exp $
#
DISTNAME= ganglia-3.0.1
@@ -26,8 +26,6 @@
gmond/cmdline.c gmond/g25_config.h \
ganglia.html
-PATCH_RCS= gmond gmetad
-
EGDIR= ${PREFIX}/share/examples/ganglia
CONF_FILES= ${EGDIR}/gmond.conf ${PKG_SYSCONFDIR}/gmond.conf
CONF_FILES+= ${EGDIR}/gmetad.conf ${PKG_SYSCONFDIR}/gmetad.conf
@@ -47,12 +45,6 @@
${WRKSRC}/${pfile} > ${WRKSRC}/${pfile}.tmp && \
${MV} ${WRKSRC}/${pfile}.tmp ${WRKSRC}/${pfile}
.endfor
-.for pfile in ${PATCH_RCS}
- ${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
- -e 's|@PREFIX@|${PREFIX}|g' \
- -e 's|@RCD_SCRIPTS_SHELL@|${RCD_SCRIPTS_SHELL}|g' \
- ${FILESDIR}/${pfile}.in > ${WRKSRC}/${pfile}.sh
-.endfor
post-install:
${INSTALL_MAN} ${WRKSRC}/mans/gmetad.1 ${PREFIX}/${PKGMANDIR}/man1/
@@ -62,9 +54,6 @@
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/gmetad/gmetad.conf ${EGDIR}/
${PREFIX}/sbin/gmond -t > ${EGDIR}/gmond.conf
- ${INSTALL_DATA_DIR} ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
- ${INSTALL_DATA} ${WRKSRC}/gmond.sh ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/gmond
- ${INSTALL_DATA} ${WRKSRC}/gmetad.sh ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/gmetad
BUILDLINK_DEPENDS.apr+= apr>=0.9.7.2.0.55nb3
diff -r 9374d8784f78 -r e5e756cea5a5 parallel/ganglia-monitor-core/files/gmetad.in
--- a/parallel/ganglia-monitor-core/files/gmetad.in Sun Sep 16 09:41:50 2007 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: gmetad.in,v 1.1.1.1 2005/02/07 14:33:22 jschauma Exp $
-#
-# PROVIDE: gmetad
-# REQUIRE: DAEMON
-# KEYWORD: shutdown
-#
-# You will need to set some variables in /etc/rc.conf to start gmetad:
-#
-# gmetad=YES
-
-if [ -f /etc/rc.subr ]
-then
- . /etc/rc.subr
-fi
-
-name="gmetad"
-rcvar=$name
-command="@PREFIX@/sbin/gmetad"
-required_files="@PKG_SYSCONFDIR@/gmetad.conf"
-start_cmd="gmetad_start"
-stop_cmd="gmetad_stop"
-restart_cmd="gmetad_stop ; gmetad_start"
-
-gmetad_start ()
-{
- # gmetad/process_xml.c 1060 re-releases a lock, claiming it's
- # ``required under certain errors''
- export PTHREAD_DIAGASSERT=A
- ${command}
-}
-
-gmetad_stop()
-{
- pkill ${name} 2>/dev/null
-}
-
-if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
-then
- load_rc_config $name
- run_rc_command "$1"
-else
- eval ${start_cmd}
-fi
diff -r 9374d8784f78 -r e5e756cea5a5 parallel/ganglia-monitor-core/files/gmetad.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/files/gmetad.sh Sun Sep 16 10:29:52 2007 +0000
@@ -0,0 +1,45 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: gmetad.sh,v 1.1 2007/09/16 10:29:53 joerg Exp $
+#
+# PROVIDE: gmetad
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start gmetad:
+#
+# gmetad=YES
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="gmetad"
+rcvar=$name
+command="@PREFIX@/sbin/gmetad"
+required_files="@PKG_SYSCONFDIR@/gmetad.conf"
+start_cmd="gmetad_start"
+stop_cmd="gmetad_stop"
+restart_cmd="gmetad_stop ; gmetad_start"
+
+gmetad_start ()
+{
+ # gmetad/process_xml.c 1060 re-releases a lock, claiming it's
+ # ``required under certain errors''
+ export PTHREAD_DIAGASSERT=A
+ ${command}
+}
+
+gmetad_stop()
+{
+ pkill ${name} 2>/dev/null
+}
+
+if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ eval ${start_cmd}
+fi
diff -r 9374d8784f78 -r e5e756cea5a5 parallel/ganglia-monitor-core/files/gmond.in
--- a/parallel/ganglia-monitor-core/files/gmond.in Sun Sep 16 09:41:50 2007 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: gmond.in,v 1.1.1.1 2005/02/07 14:33:22 jschauma Exp $
-#
-# PROVIDE: gmond
-# REQUIRE: DAEMON
-# KEYWORD: shutdown
-#
-# You will need to set some variables in /etc/rc.conf to start gmond:
-#
-# gmond=YES
-
-if [ -f /etc/rc.subr ]
-then
- . /etc/rc.subr
-fi
-
-name="gmond"
-rcvar=$name
-command="@PREFIX@/sbin/gmond"
-required_files="@PKG_SYSCONFDIR@/gmond.conf"
-start_cmd="gmond_start"
-stop_cmd="gmond_stop"
-restart_cmd="gmond_stop ; gmond_start"
-
-gmond_start ()
-{
- ${command}
-}
-
-gmond_stop()
-{
- pkill ${name} 2>/dev/null
-}
-
-if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
-then
- load_rc_config $name
- run_rc_command "$1"
-else
- eval ${start_cmd}
-fi
diff -r 9374d8784f78 -r e5e756cea5a5 parallel/ganglia-monitor-core/files/gmond.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/parallel/ganglia-monitor-core/files/gmond.sh Sun Sep 16 10:29:52 2007 +0000
@@ -0,0 +1,42 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: gmond.sh,v 1.1 2007/09/16 10:29:53 joerg Exp $
+#
+# PROVIDE: gmond
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start gmond:
+#
+# gmond=YES
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="gmond"
+rcvar=$name
+command="@PREFIX@/sbin/gmond"
+required_files="@PKG_SYSCONFDIR@/gmond.conf"
+start_cmd="gmond_start"
+stop_cmd="gmond_stop"
+restart_cmd="gmond_stop ; gmond_start"
+
+gmond_start ()
+{
+ ${command}
+}
+
+gmond_stop()
+{
+ pkill ${name} 2>/dev/null
+}
+
+if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ eval ${start_cmd}
+fi
Home |
Main Index |
Thread Index |
Old Index