2010-09-17 Junichi Satoh <junichi@rworks.jp>
* unix/SunOS/make_solaris_package/README, unix/SunOS/make_solaris_package/copyright, unix/SunOS/make_solaris_package/make_solaris_package.sh, unix/SunOS/make_solaris_package/prototype: Added agent package builder for Solaris. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3249 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
07aa1226e0
commit
fb1eaccee6
|
@ -1,3 +1,11 @@
|
|||
2010-09-17 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* unix/SunOS/make_solaris_package/README,
|
||||
unix/SunOS/make_solaris_package/copyright,
|
||||
unix/SunOS/make_solaris_package/make_solaris_package.sh,
|
||||
unix/SunOS/make_solaris_package/prototype: Added agent package builder
|
||||
for Solaris.
|
||||
|
||||
2010-08-17 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* unix/pandora_agent_daemon, unix/tentacle_client: Added support for
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
2010-09-17 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* SunOS/make_solaris_package/README,
|
||||
SunOS/make_solaris_package/copyright,
|
||||
SunOS/make_solaris_package/make_solaris_package.sh,
|
||||
SunOS/make_solaris_package/prototype: Added agent package builder
|
||||
for Solaris.
|
||||
|
||||
2010-08-17 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* pandora_agent_daemon, tentacle_client: Added support for Solaris
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
This directory contains Pandora FMS agent package builder for Solaris.
|
||||
|
||||
To make the Solaris package, execute:
|
||||
|
||||
./make_solaris_package.sh
|
||||
|
||||
It works with x86/SPARC Solaris 9 or 10.
|
||||
|
||||
The package file, named "PandoraFMS-agent-X.X.X.pkg", will be created.
|
||||
You can install it to Solaris 9 or 10 like this:
|
||||
|
||||
pkgadd -d ./PandoraFMS-agent-X.X.X.pkg
|
|
@ -0,0 +1,2 @@
|
|||
Licensed under GPL license v2.
|
||||
Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
|
@ -0,0 +1,68 @@
|
|||
#!/bin/sh
|
||||
|
||||
# **********************************************************************
|
||||
# Pandora FMS Agent package builder for Solaris
|
||||
# (c) 2010 Junichi Satoh <junichi@rworks.jp>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation; version 2
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# **********************************************************************
|
||||
|
||||
AGENT_VERSION="3.2.0"
|
||||
|
||||
PKGFILE="PandoraFMS-agent-$AGENT_VERSION.pkg"
|
||||
|
||||
# make pkginfo file
|
||||
DATE=`date '+%Y%m%d%H'`
|
||||
echo "PKG=PandoraAgent" > pkginfo
|
||||
echo "NAME=Pandora FMS agent" >> pkginfo
|
||||
echo "ARCH=all" >> pkginfo
|
||||
echo "CATEGORY=application" >> pkginfo
|
||||
echo "VERSION=$AGENT_VERSION" >> pkginfo
|
||||
echo "VENDOR=http://pandorafms.org/" >> pkginfo
|
||||
echo "PSTAMP=$DATE" >> pkginfo
|
||||
echo "CLASSES=none" >> pkginfo
|
||||
echo "BASEDIR=/" >> pkginfo
|
||||
|
||||
# make work directory.
|
||||
mkdir -p /tmp/pandora/usr/bin
|
||||
mkdir -p /tmp/pandora/usr/man/man1
|
||||
mkdir -p /tmp/pandora/etc/pandora
|
||||
mkdir -p /tmp/pandora/etc/init.d
|
||||
mkdir -p /tmp/pandora/usr/share/pandora_agent/plugins
|
||||
|
||||
# copy executables
|
||||
cp ../../pandora_agent /tmp/pandora/usr/bin
|
||||
cp ../../tentacle_client /tmp/pandora/usr/bin
|
||||
cp ../../pandora_agent_daemon /tmp/pandora/etc/init.d
|
||||
cp ../../pandora_exec /tmp/pandora/usr/bin
|
||||
|
||||
# copy plugin files
|
||||
cp ../../plugins/* /tmp/pandora/usr/share/pandora_agent/plugins
|
||||
|
||||
# copy configuration file
|
||||
cp ../pandora_agent.conf /tmp/pandora/etc/pandora
|
||||
|
||||
# copy man pages
|
||||
cp ../../man/man1/pandora_agent.1.gz /tmp/pandora/usr/man/man1
|
||||
gunzip /tmp/pandora/usr/man/man1/pandora_agent.1.gz
|
||||
cp ../../man/man1/tentacle_client.1.gz /tmp/pandora/usr/man/man1
|
||||
gunzip /tmp/pandora/usr/man/man1/tentacle_client.1.gz
|
||||
|
||||
# make package.
|
||||
pkgmk -o -r /tmp/pandora -d /tmp/pandora
|
||||
CURRENT_DIR=`pwd`
|
||||
pkgtrans -s /tmp/pandora $CURRENT_DIR/$PKGFILE PandoraAgent
|
||||
|
||||
# delete work files
|
||||
rm -rf /tmp/pandora
|
||||
|
||||
echo ""
|
||||
echo "pkg file is created: $PKGFILE"
|
|
@ -0,0 +1,20 @@
|
|||
i pkginfo
|
||||
i copyright
|
||||
f none usr/bin/pandora_agent 0755 root root
|
||||
f none usr/bin/tentacle_client 0755 root root
|
||||
f none usr/bin/pandora_exec 0755 root root
|
||||
d none usr/share/pandora_agent 0755 root root
|
||||
d none usr/share/pandora_agent/plugins 0755 root root
|
||||
f none usr/share/pandora_agent/plugins/files_indir 0755 root root
|
||||
f none usr/share/pandora_agent/plugins/grep_log 0755 root root
|
||||
f none usr/share/pandora_agent/plugins/inventory 0755 root root
|
||||
f none usr/share/pandora_agent/plugins/pandora_df 0755 root root
|
||||
d none etc/pandora/ 0755 root root
|
||||
f none etc/pandora/pandora_agent.conf 0755 root root
|
||||
f none usr/man/man1/pandora_agent.1 0644 root root
|
||||
f none usr/man/man1/tentacle_client.1 0644 root root
|
||||
d none var/spool/pandora 0755 root root
|
||||
d none var/spool/pandora/data_out 0755 root root
|
||||
d none var/log/pandora 0755 root root
|
||||
f none etc/init.d/pandora_agent_daemon 0755 root root
|
||||
s none etc/rc2.d/S90pandora_agent_daemon=../init.d/pandora_agent_daemon
|
Loading…
Reference in New Issue