pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/mrtg



Module Name:    pkgsrc
Committed By:   jnemeth
Date:           Mon Aug 26 06:41:08 UTC 2019

Modified Files:
        pkgsrc/net/mrtg: Makefile
Added Files:
        pkgsrc/net/mrtg/files: mrtg.sh

Log Message:
Add an rc.d script.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 pkgsrc/net/mrtg/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/net/mrtg/files/mrtg.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/mrtg/Makefile
diff -u pkgsrc/net/mrtg/Makefile:1.129 pkgsrc/net/mrtg/Makefile:1.130
--- pkgsrc/net/mrtg/Makefile:1.129      Sun Aug 11 13:22:11 2019
+++ pkgsrc/net/mrtg/Makefile    Mon Aug 26 06:41:08 2019
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.129 2019/08/11 13:22:11 wiz Exp $
+# $NetBSD: Makefile,v 1.130 2019/08/26 06:41:08 jnemeth Exp $
 
 DISTNAME=      mrtg-2.17.7
-#PKGREVISION=  12
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    net
 MASTER_SITES=  https://oss.oetiker.ch/mrtg/pub/
 MASTER_SITES+= https://oss.oetiker.ch/mrtg/pub/old/
@@ -36,6 +35,8 @@ SUBST_MESSAGE.files=  Fixing default conf
 
 INSTALLATION_DIRS+=    ${EGDIR} libexec
 
+RCD_SCRIPTS=           mrtg
+
 post-extract:
        cp ${FILESDIR}/mrtg.conf.example ${WRKDIR}
        cp ${FILESDIR}/netstat2mrtg ${WRKDIR}

Added files:

Index: pkgsrc/net/mrtg/files/mrtg.sh
diff -u /dev/null pkgsrc/net/mrtg/files/mrtg.sh:1.1
--- /dev/null   Mon Aug 26 06:41:08 2019
+++ pkgsrc/net/mrtg/files/mrtg.sh       Mon Aug 26 06:41:08 2019
@@ -0,0 +1,28 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: mrtg.sh,v 1.1 2019/08/26 06:41:08 jnemeth Exp $
+#
+# PROVIDE: mrtg
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start Asterisk:
+#
+# mrtg=YES
+
+if [ -f /etc/rc.subr ]
+then
+       . /etc/rc.subr
+fi
+
+name="mrtg"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+command_interpreter="@PERL5@"
+pidfile=@PKG_SYSCONFDIR@/${name}.pid
+required_files="@PKG_SYSCONFDIR@/mrtg.conf"
+extra_commands="reload"
+mrtg_flags="--daemon $required_files"
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index