pkgsrc-Bugs archive

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

Re: pkg/35334: cat not stopping use sysutils/munin-node rc.d file



The following reply was made to PR pkg/35334; it has been noted by GNATS.

From: ishit <ishit%oak.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/35334: cat not stopping use sysutils/munin-node rc.d file
Date: Fri, 29 Dec 2006 12:27:15 +0900

 At Fri, 29 Dec 2006 02:45:03 +0000 (UTC), OBATA Akio wrote:
 >  If you replace @PERL@ with @PERL5@ in 
 > sysutils/munin-node/files/munin-node.sh,
 >  dose it work?
 
    I think replace successfully and working perl.
 
 % diff -u /usr/pkg/share/examples/rc.d/munin-node 
/usr/pkgsrc/sysutils/munin-node/files/munin-node.sh
 --- /usr/pkg/share/examples/rc.d/munin-node     2006-12-29 08:54:20.000000000 
+0900
 +++ /usr/pkgsrc/sysutils/munin-node/files/munin-node.sh 2006-07-28 
00:04:15.000000000 +0900
 @@ -18,17 +18,17 @@
 
  name="munin_node"
  rcvar=$name
 -command=/usr/pkg/sbin/munin-node
 -command_interpreter=/usr/pkg/bin/perl
 -required_files=/usr/pkg/etc/munin/munin-node.conf
 +command=@PREFIX@/sbin/munin-node
 +command_interpreter=@PERL@
 +required_files=@PKG_SYSCONFDIR@/munin-node.conf
 
 -if [ ! -d /var/munin/plugin-state ]; then
 -       mkdir /var/munin/plugin-state
 -       chown munin:munin /var/munin/plugin-state
 +if [ ! -d @STATEDIR@ ]; then
 +       mkdir @STATEDIR@
 +       chown @MUNIN_USER@:@MUNIN_GROUP@ @STATEDIR@
  fi
 -if [ ! -d /var/run/munin ]; then
 -       mkdir /var/run/munin
 -       chown munin:munin /var/run/munin
 +if [ ! -d @MUNIN_RUN@ ]; then
 +       mkdir @MUNIN_RUN@
 +       chown @MUNIN_USER@:@MUNIN_GROUP@ @MUNIN_RUN@
  fi
 
  if [ -f /etc/rc.subr ]; then
 
 % ls -al /usr/pkg/bin/perl
 -rwxr-xr-x  2 root  wheel  20687 Aug 12  2005 /usr/pkg/bin/perl
 % /usr/pkg/bin/perl -v
 
 This is perl, v5.8.7 built for x86_64-netbsd-thread-multi
 
 Copyright 1987-2005, Larry Wall
 
 Perl may be copied only under the terms of either the Artistic License or the
 GNU General Public License, which may be found in the Perl 5 source kit.
 
 Complete documentation for Perl, including FAQ lists, should be found on
 this system using `man perl' or `perldoc perl'.  If you have access to the
 Internet, point your browser at http://www.perl.org/, the Perl Home Page.
 



Home | Main Index | Thread Index | Old Index