aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Eric Stanley <estanley@nagios.com> 2012-01-20 06:49:49 -0600
committerGravatar Eric Stanley <estanley@nagios.com> 2012-01-20 06:49:49 -0600
commit355ad150eb4ba18d1e863c34c85e60a20f7c710d (patch)
tree2cdb807fafb9b6e8e4fa45abf4a5a3a59682dc66
parentd287ca27be8216b9e0082405aee34eb50eaeef54 (diff)
downloadmonitoring-plugins-355ad150eb4ba18d1e863c34c85e60a20f7c710d.tar.gz
Added pst3 to Solaris package.
-rw-r--r--Makefile.am1
-rwxr-xr-xpkg/solaris/solpkg5
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 8e2de783..ce6ae6ab 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,6 +45,7 @@ solpkg:
if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
$(MAKE) all
$(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install
+ $(INSTALL) plugins-root/pst3 $(BUILDDIR)$(libexecdir)
$(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
$(INSTALL) pkg/solaris/preinstall $(BUILDDIR)
cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
diff --git a/pkg/solaris/solpkg b/pkg/solaris/solpkg
index 6307bcd7..a21176e4 100755
--- a/pkg/solaris/solpkg
+++ b/pkg/solaris/solpkg
@@ -34,6 +34,11 @@ while (<PREPROTO>) {
or $thisline =~ " pkginfo "
or $thisline =~ " preinstall ") {
# Don't do anything as they aren't important
+ } elsif ($thisline =~ "pst3") {
+ # Needs to be installed SUID root
+ ($dir, $none, $file, $mode, $user, $group) = split / /,$thisline;
+ print PROTO "$dir $none $file 4755 root bin\n";
+
} elsif ($thisline =~ "^[fd] ") {
# Change the ownership of files and directories
($dir, $none, $file, $mode, $user, $group) = split / /,$thisline;