mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add Pandora FMS 4.0.1 - a Flexible Monitoring System.
WMI client 1.3.16 - a WMI (Windows Management Instrumentation) client which is needed for Pandora FMS. Submitted by: KIKUCHI Koichiro <koichiro@rworks.jp> Junichi Satoh <junichi@junichi.org> WWW; http://pandorafms.org/ Feature safe: yes
This commit is contained in:
parent
9a915cc5a2
commit
c679424d17
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=295185
33 changed files with 3754 additions and 0 deletions
1
GIDs
1
GIDs
|
@ -229,4 +229,5 @@ openerpd:*:951:
|
|||
bitten-slave:*:952:
|
||||
_neubot:*:953:
|
||||
hadoop:*:955:
|
||||
pandora:*:956:
|
||||
nobody:*:65534:
|
||||
|
|
1
UIDs
1
UIDs
|
@ -232,4 +232,5 @@ bitten-slave:*:952:952:daemon:0:0:Bitten slave user:/var/lib/bitten-slave:/usr/s
|
|||
_neubot:*:953:953::0:0:neubot daemon:/nonexistent:/usr/sbin/nologin
|
||||
oops:*:954:65534::0:0:oops user:/nonexistent:/usr/sbin/nologin
|
||||
hadoop:*:955:955::0:0:hadoop user:/nonexistent:/usr/sbin/nologin
|
||||
pandora:*:956:956::0:0:Pandora FMS user:/usr/local/etc/pandora/home:/usr/sbin/nologin
|
||||
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
|
||||
|
|
|
@ -232,6 +232,9 @@
|
|||
SUBDIR += packit
|
||||
SUBDIR += pads
|
||||
SUBDIR += pancho
|
||||
SUBDIR += pandorafms_agent
|
||||
SUBDIR += pandorafms_console
|
||||
SUBDIR += pandorafms_server
|
||||
SUBDIR += pftabled
|
||||
SUBDIR += php4-snmp
|
||||
SUBDIR += php5-snmp
|
||||
|
@ -296,6 +299,7 @@
|
|||
SUBDIR += whatmask
|
||||
SUBDIR += wide-dhcp
|
||||
SUBDIR += wifimgr
|
||||
SUBDIR += wmi-client
|
||||
SUBDIR += xymon-client
|
||||
SUBDIR += xymon-server
|
||||
SUBDIR += yabm
|
||||
|
|
90
net-mgmt/pandorafms_agent/Makefile
Normal file
90
net-mgmt/pandorafms_agent/Makefile
Normal file
|
@ -0,0 +1,90 @@
|
|||
# New ports collection makefile for: pandorafms_agent
|
||||
# Date created: 2011-11-22
|
||||
# Whom: KIKUCHI Koichiro <koichiro@rworks.jp>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pandora_agent
|
||||
PORTVERSION= ${PANDORA_VERSION}
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= koichiro@rworks.jp
|
||||
COMMENT= Pandora FMS agent, Perl version
|
||||
|
||||
LICENSE= ${PANDORA_LICENSE}
|
||||
LICENSE_FILE= ${PANDORA_LICENSE_FILE}
|
||||
|
||||
OPTIONS= TENTACLE_SERVER "Install tentalce_server" on
|
||||
|
||||
USE_PERL5= 5.8+
|
||||
SUB_LIST+= PERL="${PERL}"
|
||||
|
||||
MAN1= pandora_agent.1 tentacle_client.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
.include "${.CURDIR}/../pandorafms_server/bsd.pandora.mk"
|
||||
|
||||
PORTDOCS+= README
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_TENTACLE_SERVER)
|
||||
CONFLICTS= pandora_server-4*
|
||||
PLIST_SUB+= TENTACLE_SERVER=""
|
||||
.else
|
||||
PLIST_SUB+= TENTACLE_SERVER="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if !defined(WITH_TENTACLE_SERVER)
|
||||
@${REINPLACE_CMD} \
|
||||
-e '/TENTACLE_SERVER/s/^/#/' \
|
||||
${WRKSRC}/pandora_agent_installer
|
||||
.endif
|
||||
.if defined(NO_INSTALL_MANPAGES)
|
||||
@${REINPLACE_CMD} \
|
||||
-e '/PANDORA_MAN/s/^/#/' \
|
||||
${WRKSRC}/pandora_agent_installer
|
||||
.endif
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
-e 's|%%DATADIR%%|${DATADIR}|g' \
|
||||
-e 's|%%MAN1PREFIX%%|${MAN1PREFIX}|g' \
|
||||
-e 's|%%PANDORA_ETCDIR%%|${PANDORA_ETCDIR}|g' \
|
||||
-e 's|%%PANDORA_HOMEDIR%%|${PANDORA_HOMEDIR}|g' \
|
||||
${WRKSRC}/pandora_agent_installer
|
||||
@${REINPLACE_CMD} -i "" \
|
||||
-e 's,/bin/bash,/bin/sh,' \
|
||||
-e 's,md5sum,md5 -r,' \
|
||||
${WRKSRC}/plugins/files_indir
|
||||
@${REINPLACE_CMD} -i "" \
|
||||
-e 's,/usr/bin/perl,${PERL},g' \
|
||||
`${GREP} -lr /usr/bin/perl ${WRKSRC} | ${GREP} -v pandora_agent_installer`
|
||||
@${REINPLACE_CMD} -i "" \
|
||||
-e 's,/usr/local,${PREFIX},g' \
|
||||
${WRKSRC}/plugins/pandora_update
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's,`ifconfig ,`/sbin/ifconfig ,g' \
|
||||
-e 's,tentacle_client ,${PREFIX}/bin/tentacle_client ,g' \
|
||||
${WRKSRC}/pandora_agent
|
||||
|
||||
do-install:
|
||||
@cd ${WRKSRC} && ${SH} pandora_agent_installer --force-install
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for x in ${PORTDOCS}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${x} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@if [ ! -e ${ETCDIR}/pandora_agent.conf ]; then \
|
||||
cd ${ETCDIR} && ${CP} -p pandora_agent.conf.sample pandora_agent.conf; \
|
||||
fi
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
net-mgmt/pandorafms_agent/distinfo
Normal file
2
net-mgmt/pandorafms_agent/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (pandora/pandorafms_agent_unix-4.0.1.tar.gz) = 0bae97d97f0fe628c7cd601d5d0304057a45b49a1277d63d9f30ae957173ed56
|
||||
SIZE (pandora/pandorafms_agent_unix-4.0.1.tar.gz) = 65952
|
34
net-mgmt/pandorafms_agent/files/pandora_agent.in
Normal file
34
net-mgmt/pandorafms_agent/files/pandora_agent.in
Normal file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
|
||||
# PROVIDE: pandora_agent
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Add the following line to /etc/rc.conf to enable `pandora_agent':
|
||||
#
|
||||
# pandora_agent_enable="YES"
|
||||
#
|
||||
|
||||
. "/etc/rc.subr"
|
||||
|
||||
name="pandora_agent"
|
||||
rcvar=`set_rcvar`
|
||||
load_rc_config "$name"
|
||||
|
||||
# set defaults
|
||||
: ${pandora_agent_enable:=NO}
|
||||
|
||||
pidfile="/var/run/$name.pid"
|
||||
|
||||
required_files="%%ETCDIR%%/pandora_agent.conf"
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-cf -p ${pidfile} %%PREFIX%%/bin/pandora_agent %%ETCDIR%%"
|
||||
procname="%%PERL%%"
|
||||
stop_postcmd=stop_postcmd
|
||||
|
||||
stop_postcmd() {
|
||||
rm -f $pidfile
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
105
net-mgmt/pandorafms_agent/files/patch-pandora_agent_installer
Normal file
105
net-mgmt/pandorafms_agent/files/patch-pandora_agent_installer
Normal file
|
@ -0,0 +1,105 @@
|
|||
--- pandora_agent_installer.orig 2011-12-07 16:18:47.219413617 +0900
|
||||
+++ pandora_agent_installer 2011-12-07 16:31:35.483681456 +0900
|
||||
@@ -180,13 +159,13 @@ install () {
|
||||
|
||||
if [ "$OS_NAME" = "FreeBSD" ]
|
||||
then
|
||||
- PANDORA_HOME=/usr/local/share/pandora_agent
|
||||
- PANDORA_BIN=/usr/local/bin/pandora_agent
|
||||
- PANDORA_EXEC_BIN=/usr/local/bin/pandora_agent_exec
|
||||
- PANDORA_CFG=/usr/local/etc/pandora
|
||||
- TENTACLE=/usr/local/bin/tentacle_client
|
||||
- TENTACLE_SERVER=/usr/local/bin/tentacle_server
|
||||
- PANDORA_MAN=/usr/local/man
|
||||
+ PANDORA_HOME=%%DATADIR%%
|
||||
+ PANDORA_BIN=%%PREFIX%%/bin/pandora_agent
|
||||
+ PANDORA_EXEC_BIN=%%PREFIX%%/bin/pandora_agent_exec
|
||||
+ PANDORA_CFG=%%PANDORA_ETCDIR%%
|
||||
+ TENTACLE=%%PREFIX%%/bin/tentacle_client
|
||||
+ TENTACLE_SERVER=%%PREFIX%%/bin/tentacle_server
|
||||
+ PANDORA_MAN=%%MAN1PREFIX%%/man
|
||||
fi
|
||||
|
||||
echo "Detecting Unix distribution: $OS_NAME version $OS_VERSION"
|
||||
@@ -302,15 +281,6 @@ install () {
|
||||
PANDORA_USER="root"
|
||||
fi
|
||||
|
||||
- # Create logfile
|
||||
- if [ ! -z "`touch $PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG`" ]
|
||||
- then
|
||||
- echo "Seems to be a problem generating logfile ($PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG) please check it";
|
||||
- else
|
||||
- echo "Created logfile at $PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG..."
|
||||
- fi
|
||||
- echo "$LOG_TIMESTAMP Pandora FMS installer has created this file at startup" > $PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG
|
||||
-
|
||||
# Copying agent and securing it
|
||||
echo "Copying Pandora FMS Agent to $PANDORA_BASE$PANDORA_BIN..."
|
||||
cp pandora_agent $PANDORA_BASE$PANDORA_BIN
|
||||
@@ -326,22 +296,23 @@ install () {
|
||||
chown $PANDORA_USER:0 $PANDORA_BASE$PANDORA_EXEC_BIN
|
||||
fi
|
||||
|
||||
- echo "Copying Pandora FMS Agent configuration file to $PANDORA_BASE$PANDORA_CFG/pandora_agent.conf..."
|
||||
- if [ -f $PANDORA_BASE/$PANDORA_CFG/pandora_agent.conf ]
|
||||
- then
|
||||
- cp $PANDORA_BASE/$PANDORA_CFG/pandora_agent.conf $PANDORA_BASE/$PANDORA_CFG/pandora_agent.conf.$OLDFILENAMETMP
|
||||
- echo "Backing up old configuration file to $PANDORA_BASE/$PANDORA_CFG/pandora_agent.conf.$OLDFILENAMETMP"
|
||||
- fi
|
||||
-
|
||||
echo "Copying Pandora FMS Agent plugins to $PANDORA_BASE$PANDORA_HOME/plugins..."
|
||||
cp -r plugins $PANDORA_BASE$PANDORA_HOME
|
||||
chmod -R 700 $PANDORA_BASE$PANDORA_HOME/plugins
|
||||
- ln -s $PANDORA_BASE$PANDORA_HOME/plugins $PANDORA_BASE$PANDORA_CFG
|
||||
+ mkdir -p $PANDORA_BASE$PANDORA_CFG/plugins
|
||||
+ for _p in `find $PANDORA_BASE$PANDORA_HOME/plugins -mindepth 1 -maxdepth 1 -type f ! -name "*.bak"`
|
||||
+ do
|
||||
+ ln -s $_p $PANDORA_BASE$PANDORA_CFG/plugins/ || exit 1
|
||||
+ done
|
||||
|
||||
echo "Copying Pandora FMS Agent collections to $PANDORA_BASE$PANDORA_HOME/collections..."
|
||||
cp -r collections $PANDORA_BASE$PANDORA_HOME
|
||||
chmod -R 700 $PANDORA_BASE$PANDORA_HOME/collections
|
||||
- ln -s $PANDORA_BASE$PANDORA_HOME/collections $PANDORA_BASE$PANDORA_CFG
|
||||
+ mkdir -p $PANDORA_BASE$PANDORA_CFG/collections
|
||||
+ for _p in `find $PANDORA_BASE$PANDORA_HOME/collections -mindepth 1 -maxdepth 1 -type f ! -name "*.bak"`
|
||||
+ do
|
||||
+ ln -s $_p $PANDORA_BASE$PANDORA_CFG/collections/ || exit 1
|
||||
+ done
|
||||
|
||||
echo "Copying tentacle server to $PANDORA_BASE$TENTACLE_SERVER"
|
||||
cp tentacle_server $PANDORA_BASE$TENTACLE_SERVER
|
||||
@@ -386,7 +357,7 @@ install () {
|
||||
|
||||
echo "Copying default agent configuration to $PANDORA_BASE$PANDORA_CFG/pandora_agent.conf"
|
||||
|
||||
- cp $OS_NAME/pandora_agent.conf $PANDORA_BASE$PANDORA_CFG/pandora_agent.conf
|
||||
+ cp $OS_NAME/pandora_agent.conf $PANDORA_BASE$PANDORA_CFG/pandora_agent.conf.sample
|
||||
chmod 600 $PANDORA_BASE$PANDORA_CFG/pandora_agent.conf
|
||||
chown $PANDORA_USER $PANDORA_BASE$PANDORA_CFG/pandora_agent.conf
|
||||
chmod 711 $PANDORA_BASE$PANDORA_LOG_DIR
|
||||
@@ -445,14 +416,6 @@ install () {
|
||||
chown root:0 $PANDORA_STARTUP
|
||||
fi
|
||||
|
||||
- if [ "$OS_NAME" = "FreeBSD" ]
|
||||
- then
|
||||
- PANDORA_STARTUP=/usr/local/etc/rc.d/pandora_agent
|
||||
- cp FreeBSD/pandora_agent $PANDORA_STARTUP
|
||||
- chmod 555 $PANDORA_STARTUP
|
||||
- chown root:wheel $PANDORA_STARTUP
|
||||
- fi
|
||||
-
|
||||
echo "Done."
|
||||
echo " "
|
||||
echo "You have your startup script ready at $PANDORA_STARTUP"
|
||||
@@ -466,7 +423,7 @@ install () {
|
||||
echo "Tentacle is the default transfer mode since 2.0 version."
|
||||
echo " "
|
||||
echo "If you want to use SSH, firstly you need to copy your public SSH keys "
|
||||
- echo " ($HOME/.ssh/id_dsa) under /home/pandora/.ssh/authorized_keys "
|
||||
+ echo " ($HOME/.ssh/id_dsa) under %%PANDORA_HOMEDIR%%/.ssh/authorized_keys "
|
||||
echo "on your Pandora FMS Server host"
|
||||
echo " "
|
||||
echo "You also need to setup your $PANDORA_BASE$PANDORA_CFG/pandora_agent.conf config file"
|
14
net-mgmt/pandorafms_agent/files/pkg-message.in
Normal file
14
net-mgmt/pandorafms_agent/files/pkg-message.in
Normal file
|
@ -0,0 +1,14 @@
|
|||
**********************************************************************
|
||||
|
||||
Pandora FMS agent has been installed
|
||||
|
||||
To setup Pandora FMS agent, you may have to edit
|
||||
%%ETCDIR%%/pandora_agent.conf
|
||||
to suit your needs.
|
||||
|
||||
To start Pandora FMS agent at boot time, put following
|
||||
line in your /etc/rc.conf or /etc/rc.conf.local:
|
||||
|
||||
pandora_agent_enable="YES"
|
||||
|
||||
**********************************************************************
|
5
net-mgmt/pandorafms_agent/pkg-descr
Normal file
5
net-mgmt/pandorafms_agent/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
This is the PERL 5.8 version of Pandora FMS agent. This includes all the
|
||||
advanced features included in 3.0 version, and will be the default agent
|
||||
in future versions.
|
||||
|
||||
WWW: http://www.pandorafms.org/
|
28
net-mgmt/pandorafms_agent/pkg-plist
Normal file
28
net-mgmt/pandorafms_agent/pkg-plist
Normal file
|
@ -0,0 +1,28 @@
|
|||
@comment $FreeBSD$
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/pandora_agent.conf.sample %D/%%ETCDIR%%/pandora_agent.conf;then rm -f %D/%%ETCDIR%%/pandora_agent.conf; fi
|
||||
%%ETCDIR%%/pandora_agent.conf.sample
|
||||
@exec [ -e %D/%F ] || cp -p %D/%F %B/pandora_agent.conf
|
||||
bin/pandora_agent
|
||||
@exec mkdir -p %D/%%ETCDIR%%/collections
|
||||
%%ETCDIR%%/plugins/files_indir
|
||||
%%ETCDIR%%/plugins/grep_log
|
||||
%%ETCDIR%%/plugins/inventory
|
||||
%%ETCDIR%%/plugins/nagios_plugin_wrapper
|
||||
%%ETCDIR%%/plugins/pandora_df
|
||||
%%ETCDIR%%/plugins/pandora_update
|
||||
bin/pandora_agent_exec
|
||||
bin/tentacle_client
|
||||
%%TENTACLE_SERVER%%bin/tentacle_server
|
||||
@exec mkdir -p %D/%%DATADIR%%/collections
|
||||
%%DATADIR%%/plugins/files_indir
|
||||
%%DATADIR%%/plugins/grep_log
|
||||
%%DATADIR%%/plugins/inventory
|
||||
%%DATADIR%%/plugins/nagios_plugin_wrapper
|
||||
%%DATADIR%%/plugins/pandora_df
|
||||
%%DATADIR%%/plugins/pandora_update
|
||||
@dirrmtry %%DATADIR%%/collections
|
||||
@dirrmtry %%DATADIR%%/plugins
|
||||
@dirrmtry %%DATADIR%%
|
||||
@dirrmtry %%ETCDIR%%/collections
|
||||
@dirrmtry %%ETCDIR%%/plugins
|
||||
@dirrmtry %%ETCDIR%%
|
26
net-mgmt/pandorafms_agent/plist
Normal file
26
net-mgmt/pandorafms_agent/plist
Normal file
|
@ -0,0 +1,26 @@
|
|||
/usr/local/share/licenses/pandora_agent-4.0/catalog.mk
|
||||
/usr/local/share/licenses/pandora_agent-4.0/LICENSE
|
||||
/usr/local/share/licenses/pandora_agent-4.0/GPLv2
|
||||
/usr/local/man/man1/tentacle_client.1.gz
|
||||
/usr/local/man/man1/pandora_agent.1.gz
|
||||
/usr/local/etc/pandora/plugins/files_indir
|
||||
/usr/local/etc/pandora/plugins/grep_log
|
||||
/usr/local/etc/pandora/plugins/inventory
|
||||
/usr/local/etc/pandora/plugins/nagios_plugin_wrapper
|
||||
/usr/local/etc/pandora/plugins/pandora_df
|
||||
/usr/local/etc/pandora/plugins/pandora_update
|
||||
/usr/local/etc/pandora/pandora_agent.conf.sample
|
||||
/usr/local/bin/pandora_agent
|
||||
/usr/local/bin/pandora_agent_exec
|
||||
/usr/local/bin/tentacle_client
|
||||
/usr/local/bin/tentacle_server
|
||||
/usr/local/share/pandora_agent/plugins/files_indir
|
||||
/usr/local/share/pandora_agent/plugins/grep_log
|
||||
/usr/local/share/pandora_agent/plugins/inventory
|
||||
/usr/local/share/pandora_agent/plugins/nagios_plugin_wrapper
|
||||
/usr/local/share/pandora_agent/plugins/pandora_df
|
||||
/usr/local/share/pandora_agent/plugins/pandora_update
|
||||
/usr/local/etc/rc.d/pandora_agent
|
||||
/usr/local/share/doc/pandora_agent/AUTHORS
|
||||
/usr/local/share/doc/pandora_agent/ChangeLog
|
||||
/usr/local/share/doc/pandora_agent/README
|
74
net-mgmt/pandorafms_console/Makefile
Normal file
74
net-mgmt/pandorafms_console/Makefile
Normal file
|
@ -0,0 +1,74 @@
|
|||
# New ports collection makefile for: pandorafms_console
|
||||
# Date created: 2011-11-21
|
||||
# Whom: KIKUCHI Koichiro <koichiro@rworks.jp>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pandora_console
|
||||
PORTVERSION= ${PANDORA_VERSION}
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= koichiro@rworks.jp
|
||||
COMMENT= Pandora FMS console
|
||||
|
||||
LICENSE= ${PANDORA_LICENSE}
|
||||
LICENSE_FILE= ${PANDORA_LICENSE_FILE}
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/bin/twopi:${PORTSDIR}/graphics/graphviz
|
||||
|
||||
OPTIONS= PGSQL "Use PostgreSQL backend (experimental)" off
|
||||
|
||||
USE_APACHE= 20+
|
||||
USE_PHP= curl gd gettext json ldap mbstring mysql snmp session \
|
||||
xml zip zlib
|
||||
WANT_PHP_WEB= yes
|
||||
|
||||
SUB_FILES+= pandora_console.conf
|
||||
SUB_LIST+= APACHEETCDIR=${PREFIX}/${APACHEETCDIR}
|
||||
|
||||
.include "${.CURDIR}/../pandorafms_server/bsd.pandora.mk"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
USE_PHP+= pgsql
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} \
|
||||
-e "s|%%WWWDIR%%|${WWWDIR}|g" \
|
||||
${WRKSRC}/pandora_console_install
|
||||
@${REINPLACE_CMD} \
|
||||
-e "s|/usr/bin|${LOCALBASE}/bin|g" \
|
||||
${WRKSRC}/pandoradb.data*.sql
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|/bin/bash|/bin/sh|g' \
|
||||
${WRKSRC}/extras/check_other_languages.sh \
|
||||
${WRKSRC}/include/languages/extract_newlines.sh
|
||||
|
||||
do-install:
|
||||
@cd ${WRKSRC} && ${SH} pandora_console_install --force-install
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for x in ${PORTDOCS}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${x} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@cd ${WWWDIR} \
|
||||
&& ${RM} -rf pandora_console_install* \
|
||||
pandora_console_upgrade *.spec \
|
||||
extras/check_other_languages.sh.bak \
|
||||
include/languages/extract_newlines.sh.bak \
|
||||
*.sql.bak COPYING ${PORTDOCS} DEBIAN/
|
||||
@if [ -e ${WWWDIR}/include/config.php ]; then \
|
||||
${MV} ${WWWDIR}/install.php ${WWWDIR}/install.done; \
|
||||
fi;
|
||||
@${MKDIR} ${PREFIX}/${APACHEETCDIR}/Includes
|
||||
@${INSTALL_DATA} ${WRKDIR}/pandora_console.conf \
|
||||
${PREFIX}/${APACHEETCDIR}/Includes/pandora_console.conf
|
||||
@${LN} -sf ${_LICENSE_DIR}/${LICENSE} ${WWWDIR}/COPYING
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
net-mgmt/pandorafms_console/distinfo
Normal file
2
net-mgmt/pandorafms_console/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (pandora/pandorafms_console-4.0.1.tar.gz) = 56489b41f33cad8494a29b91ed64a76ae38ef62a4603c883c381d974abe9fe11
|
||||
SIZE (pandora/pandorafms_console-4.0.1.tar.gz) = 22981470
|
|
@ -0,0 +1,7 @@
|
|||
Alias /pandora_console %%WWWDIR%%
|
||||
|
||||
<Location /pandora_console>
|
||||
DirectoryIndex index.php
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Location>
|
|
@ -0,0 +1,25 @@
|
|||
--- pandora_console_install.orig 2011-12-07 15:59:15.733503848 +0900
|
||||
+++ pandora_console_install 2011-12-07 15:59:23.907761669 +0900
|
||||
@@ -115,12 +115,7 @@ install () {
|
||||
else
|
||||
if [ "$DISTRO" = "FreeBSD" ]
|
||||
then
|
||||
- if [ -d /usr/local/www/apache22 ]
|
||||
- then
|
||||
- PANDORA_HOME=/usr/local/www/apache22/data/pandora_console
|
||||
- else
|
||||
- PANDORA_HOME=/usr/local/www/data/pandora_console
|
||||
- fi
|
||||
+ PANDORA_HOME=%%WWWDIR%%
|
||||
PANDORA_CONF=$PANDORA_HOME/include/config.php
|
||||
else
|
||||
PANDORA_HOME=/srv/www/htdocs/pandora
|
||||
@@ -160,7 +155,7 @@ install () {
|
||||
echo "Creating 'pandora' user"
|
||||
if [ "$DISTRO" = "FreeBSD" ]
|
||||
then
|
||||
- echo "pandora:41121:::::Pandora FMS:/home/pandora:/usr/sbin/nologin:" | adduser -f - -w no 2> /dev/null
|
||||
+ :
|
||||
else
|
||||
useradd pandora
|
||||
mkdir /home/pandora 2> /dev/null
|
9
net-mgmt/pandorafms_console/pkg-descr
Normal file
9
net-mgmt/pandorafms_console/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
|||
Pandora FMS Console is a web application to manage Pandora FMS.
|
||||
Console allows to see graphical reports, state of every agent,
|
||||
also to access to the information sent by the agent, to see every
|
||||
monitored parameter and to see its evolution throughout the time, to
|
||||
form the different nodes, groups and users of the system. It is the
|
||||
part that interacts with the final user, and that will allows you to
|
||||
administer the system.
|
||||
|
||||
WWW: http://www.pandorafms.org/
|
2597
net-mgmt/pandorafms_console/pkg-plist
Normal file
2597
net-mgmt/pandorafms_console/pkg-plist
Normal file
File diff suppressed because it is too large
Load diff
148
net-mgmt/pandorafms_server/Makefile
Normal file
148
net-mgmt/pandorafms_server/Makefile
Normal file
|
@ -0,0 +1,148 @@
|
|||
# New ports collection makefile for: pandorafms_server
|
||||
# Date created: 2011-11-22
|
||||
# Whom: KIKUCHI Koichiro <koichiro@rworks.jp>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pandora_server
|
||||
PORTVERSION= ${PANDORA_VERSION}
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= koichiro@rworks.jp
|
||||
COMMENT= Pandora FMS server
|
||||
|
||||
LICENSE= ${PANDORA_LICENSE}
|
||||
LICENSE_FILE= ${PANDORA_LICENSE_FILE}
|
||||
|
||||
BUILD_DEPENDS= p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
|
||||
p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
|
||||
p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 \
|
||||
p5-NetAddr-IP>=0:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \
|
||||
${SITE_PERL}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/net-snmp \
|
||||
p5-Socket6>=0:${PORTSDIR}/net/p5-Socket6 \
|
||||
p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \
|
||||
p5-XML-Twig>=0:${PORTSDIR}/textproc/p5-XML-Twig
|
||||
RUN_DEPENDS= p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
|
||||
p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
|
||||
p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 \
|
||||
p5-NetAddr-IP>=0:${PORTSDIR}/net-mgmt/p5-NetAddr-IP \
|
||||
${SITE_PERL}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/net-snmp \
|
||||
p5-Socket6>=0:${PORTSDIR}/net/p5-Socket6 \
|
||||
p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple \
|
||||
p5-XML-Twig>=0:${PORTSDIR}/textproc/p5-XML-Twig \
|
||||
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
|
||||
p5-DBD-mysql>=4:${PORTSDIR}/databases/p5-DBD-mysql \
|
||||
${LOCALBASE}/bin/wmic:${PORTSDIR}/net-mgmt/wmi-client \
|
||||
${LOCALBASE}/bin/nmap:${PORTSDIR}/security/nmap \
|
||||
p5-Storable>=0:${PORTSDIR}/devel/p5-Storable
|
||||
|
||||
OPTIONS= TENTACLE "Install tentacle_server" on \
|
||||
XPROBE "Install xprobe" on \
|
||||
PGSQL "Use PostgreSQL backend (experimental)" off \
|
||||
ORACLE "Use Oracle backend (experimental)" off \
|
||||
EXTRAS "Extra dependencies for util scripts" on
|
||||
|
||||
USE_PERL5= 5.8+
|
||||
PERL_CONFIGURE= yes
|
||||
SUB_LIST+= PERL="${PERL}"
|
||||
|
||||
MAN1= pandora_server.1
|
||||
MAN3= PandoraFMS::Core.3 \
|
||||
PandoraFMS::GIS.3 \
|
||||
PandoraFMS::GeoIP.3 \
|
||||
PandoraFMS::NmapParser.3 \
|
||||
PandoraFMS::Sendmail.3 \
|
||||
PandoraFMS::Tools.3 \
|
||||
PandoraFMS::Traceroute::PurePerl.3 \
|
||||
PandoraFMS::Traceroute.3
|
||||
|
||||
SUB_FILES= pkg-message 199.clean-pandoradb
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
.include "${.CURDIR}/bsd.pandora.mk"
|
||||
|
||||
PORTDOCS+= README
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITHOUT_TENTACLE)
|
||||
PLIST_SUB+= TENTACLE="@comment "
|
||||
.else
|
||||
PLIST_SUB+= TENTACLE=""
|
||||
USE_RC_SUBR+= tentacle_server
|
||||
MAN1+= tentacle_server.1
|
||||
.endif
|
||||
.if defined(WITH_XPROBE)
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/xprobe2:${PORTSDIR}/net/xprobe
|
||||
.endif
|
||||
.if defined(WITH_PGSQL)
|
||||
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
|
||||
.endif
|
||||
.if defined(WITH_ORACLE)
|
||||
RUN_DEPENDS+= p5-DBD-Oracle>=0:${PORTSDIR}/databases/p5-DBD-Oracle
|
||||
.endif
|
||||
.if defined(WITH_EXTRAS)
|
||||
# plugin/bgp_pluin.pl
|
||||
RUN_DEPENDS+= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
|
||||
# plugin/multicast.pl
|
||||
RUN_DEPENDS+= p5-IO-Socket-Multicast>=0:${PORTSDIR}/net/p5-IO-Socket-Multicast
|
||||
# plugin/openvpn_pandoraplugin.pl
|
||||
RUN_DEPENDS+= p5-Net-Telnet>=0:${PORTSDIR}/net/p5-Net-Telnet
|
||||
# plugin/integria_plugin/integria_plugin.sh, plugin/webcheck_plugin.sh,
|
||||
# plugin/babel_plugin/babel_plugin.sh, plugin/create_integria_incident.sh
|
||||
RUN_DEPENDS+= ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
|
||||
# plugin/ipmi-plugin.pl, recon_scripts/ipmi-recon.pl
|
||||
RUN_DEPENDS+= ${LOCALBASE}/sbin/ipmi-sensors:${PORTSDIR}/sysutils/freeipmi
|
||||
.endif
|
||||
|
||||
.if exists(${PERL})
|
||||
PERL_THREADS!= ${PERL} -V::usethreads
|
||||
. if ${PERL_THREADS}!="'define';"
|
||||
IGNORE= needs a threaded Perl, build with WITH_THREADS=yes flag and try again
|
||||
. endif
|
||||
.else
|
||||
IGNORE= needs an existing installation of Perl built with WITH_THREADS=yes
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if defined(NO_INSTALL_MANPAGES)
|
||||
@${REINPLACE_CMD} -e \
|
||||
-e '/%%MAN/s/^/#/ \
|
||||
${WRKSRC}/pandora_server_installer
|
||||
.endif
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
-e 's|%%DATADIR%%|${DATADIR}|g' \
|
||||
-e 's|%%MAN1PREFIX%%|${MAN1PREFIX}|g' \
|
||||
-e 's|%%PANDORA_ETCDIR%%|${PANDORA_ETCDIR}|g' \
|
||||
-e 's|%%PANDORA_LOGDIR%%|${PANDORA_LOGDIR}|g' \
|
||||
-e 's|%%PANDORA_SPOOLDIR%%|${PANDORA_SPOOLDIR}|g' \
|
||||
${WRKSRC}/pandora_server_installer
|
||||
@${REINPLACE_CMD} -i "" \
|
||||
-e 's,/usr/bin/perl,${PERL},g' \
|
||||
`${GREP} -rl /usr/bin/perl ${WRKSRC} | ${GREP} -v pandora_server_installer`
|
||||
|
||||
post-install:
|
||||
.if defined(WITH_TENTACLE)
|
||||
@cd ${WRKSRC} && ${SH} pandora_server_installer --install
|
||||
.else
|
||||
@cd ${WRKSRC} && ${SH} pandora_server_installer --install --no-tentacle
|
||||
.endif
|
||||
@${RM} -f ${PREFIX}/lib/perl5/${PERL_VERSION}/${PERL_ARCH}/perllocal.pod
|
||||
.if !defined(NOPORTDOC)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for x in ${PORTDOCS}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${x} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@if [ ! -e ${ETCDIR}/pandora_server.conf ]; then \
|
||||
${CP} -p ${ETCDIR}/pandora_server.conf.sample \
|
||||
${ETCDIR}/pandora_server.conf; \
|
||||
fi
|
||||
@${FIND} ${DATADIR} -type l -name PandoraFMS -delete
|
||||
@${MKDIR} ${PREFIX}/etc/periodic/daily
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/199.clean-pandoradb ${PREFIX}/etc/periodic/daily/
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
60
net-mgmt/pandorafms_server/bsd.pandora.mk
Normal file
60
net-mgmt/pandorafms_server/bsd.pandora.mk
Normal file
|
@ -0,0 +1,60 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PANDORA_VERSION= 4.0.1
|
||||
PANDORA_LICENSE= GPLv2
|
||||
PANDORA_LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
PANDORA_SPOOLDIR?= /var/spool/pandora
|
||||
PANDORA_LOGDIR?= /var/log/pandora
|
||||
PANDORA_ETCDIR?= ${PREFIX}/etc/pandora
|
||||
PANDORA_HOMEDIR?= ${PANDORA_ETCDIR}/home
|
||||
|
||||
MASTER_SITES?= SF/pandora/Pandora%20FMS%20${PANDORA_VERSION}/Tarball
|
||||
.if ${PORTNAME} == "pandora_agent"
|
||||
DISTNAME= pandorafms_agent_unix-${PORTVERSION}
|
||||
.else
|
||||
DISTNAME= ${PORTNAME:S/pandora_/pandorafms_/}-${PORTVERSION}
|
||||
.endif
|
||||
DIST_SUBDIR= pandora
|
||||
|
||||
NO_BUILD?= yes
|
||||
|
||||
USERS= pandora
|
||||
GROUPS= pandora
|
||||
|
||||
ETCDIR?= ${PANDORA_ETCDIR}
|
||||
SPOOLDIR?= ${PANDORA_SPOOLDIR}
|
||||
LOGDIR?= ${PANDORA_LOGDIR}
|
||||
|
||||
PLIST_SUB+= SPOOLDIR="${PANDORA_SPOOLDIR}" LOGDIR="${PANDORA_LOGDIR}" \
|
||||
USE_SPOOL_IN=${USE_SPOOL_IN} USE_SPOOL_OUT=${USE_SPOOL_OUT} \
|
||||
USE_LOGDIR=${USE_LOGDIR}
|
||||
PLIST= ${WRKDIR}/PLIST
|
||||
|
||||
PORTDOCS?= AUTHORS ChangeLog
|
||||
|
||||
.if ${PORTNAME} == "pandora_server"
|
||||
USE_LOGDIR= ""
|
||||
USE_SPOOL_IN= ""
|
||||
USE_SPOOL_OUT= "@comment "
|
||||
.elif ${PORTNAME} == "pandora_console"
|
||||
USE_LOGDIR= "@comment "
|
||||
USE_SPOOL_IN= ""
|
||||
USE_SPOOL_OUT= "@comment "
|
||||
.elif ${PORTNAME} == "pandora_agent"
|
||||
USE_LOGDIR= ""
|
||||
USE_SPOOL_IN= "@comment "
|
||||
USE_SPOOL_OUT= ""
|
||||
.endif
|
||||
|
||||
.if ${PORTNAME} == "pandora_agent"
|
||||
post-extract:
|
||||
@${MV} ${WRKDIR}/unix ${WRKSRC}
|
||||
.else
|
||||
post-extract:
|
||||
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
@${CAT} ${PKGDIR}/../pandorafms_server/pkg-plist.spool > ${PLIST}
|
||||
@${CAT} ${PKGDIR}/pkg-plist >> ${PLIST}
|
2
net-mgmt/pandorafms_server/distinfo
Normal file
2
net-mgmt/pandorafms_server/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (pandora/pandorafms_server-4.0.1.tar.gz) = f877d1a6dfc3fd181e55e8243aa335573a703d05c1ba248786cf0d93256e8d83
|
||||
SIZE (pandora/pandorafms_server-4.0.1.tar.gz) = 283237
|
28
net-mgmt/pandorafms_server/files/199.clean-pandoradb.in
Normal file
28
net-mgmt/pandorafms_server/files/199.clean-pandoradb.in
Normal file
|
@ -0,0 +1,28 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Run the Pandora FMS database maintenace script.
|
||||
#
|
||||
|
||||
# If there is a global system configuration file, suck it in.
|
||||
#
|
||||
if [ -r /etc/defaults/periodic.conf ]; then
|
||||
. /etc/defaults/periodic.conf
|
||||
source_periodic_confs
|
||||
fi
|
||||
|
||||
rc=0
|
||||
|
||||
case "$daily_clean_pandoradb_enable" in
|
||||
[Nn][Oo])
|
||||
;;
|
||||
*)
|
||||
echo ""
|
||||
echo "Running Pandora FMS DB maintenace script:"
|
||||
|
||||
%%PERL%% %%DATADIR%%/util/pandora_db.pl %%ETCDIR%%/pandora_server.conf || rc=3
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $rc
|
29
net-mgmt/pandorafms_server/files/pandora_server.in
Normal file
29
net-mgmt/pandorafms_server/files/pandora_server.in
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
# PROVIDE: pandora_server
|
||||
# REQUIRE: LOGIN mysql
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Add the following line to /etc/rc.conf to enable `pandora_server':
|
||||
#
|
||||
# pandora_server_enable="YES"
|
||||
#
|
||||
|
||||
. "/etc/rc.subr"
|
||||
|
||||
name="pandora_server"
|
||||
rcvar=`set_rcvar`
|
||||
load_rc_config $name
|
||||
|
||||
# set defaults
|
||||
: ${pandora_server_enable:=NO}
|
||||
|
||||
pidfile=/var/run/$name.pid
|
||||
|
||||
required_files="%%ETCDIR%%/pandora_server.conf"
|
||||
|
||||
command="%%PREFIX%%/bin/${name}"
|
||||
command_args="-D -P ${pidfile} %%ETCDIR%%/pandora_server.conf"
|
||||
procname="%%PERL%%"
|
||||
|
||||
run_rc_command "$1"
|
149
net-mgmt/pandorafms_server/files/patch-pandora_server_installer
Normal file
149
net-mgmt/pandorafms_server/files/patch-pandora_server_installer
Normal file
|
@ -0,0 +1,149 @@
|
|||
--- pandora_server_installer.orig 2011-09-24 00:16:47.000000000 +0900
|
||||
+++ pandora_server_installer 2011-12-07 13:57:23.238651664 +0900
|
||||
@@ -83,7 +83,6 @@ get_distro () {
|
||||
|
||||
install () {
|
||||
|
||||
- perl Makefile.PL > output 2>&1 #&& sleep 2 && cat output | grep "found" | wc -l
|
||||
DEPENDENCIAS=`cat output | grep "found" | wc -l`
|
||||
if [ $DEPENDENCIAS -gt 0 ]
|
||||
then
|
||||
@@ -143,10 +142,10 @@ perl-TimeDate perl-XML-Simple perl-XML-T
|
||||
elif [ "$DISTRO" = "FreeBSD" ]
|
||||
then
|
||||
echo "FreeBSD detected"
|
||||
- PANDORA_SPOOL=/var/spool/pandora
|
||||
- PANDORA_HOME=/usr/local/share/pandora_server
|
||||
- PANDORA_CFG_DIR=/usr/local/etc/pandora
|
||||
- PANDORA_LOG=/var/log/pandora
|
||||
+ PANDORA_SPOOL=%%PANDORA_SPOOLDIR%%
|
||||
+ PANDORA_HOME=%%DATADIR%%
|
||||
+ PANDORA_CFG_DIR=%%PANDORA_ETCDIR%%
|
||||
+ PANDORA_LOG=%%PANDORA_LOGDIR%%
|
||||
PANDORA_SERVER=/usr/local/etc/rc.d/pandora_server
|
||||
TENTACLE_SERVER=/usr/local/etc/rc.d/tentacle_server
|
||||
PANDORA_CFG_FILE=/usr/local/etc/pandora/pandora_server.conf
|
||||
@@ -159,7 +158,7 @@ perl-TimeDate perl-XML-Simple perl-XML-T
|
||||
echo "Checking binaries at /usr/local/bin -> /usr/bin"
|
||||
if [ ! -e "/usr/bin/pandora_server" ]
|
||||
then
|
||||
- if [ ! -e "/usr/local/bin/pandora_server" ]
|
||||
+ if [ ! -e "%%PREFIX%%/bin/pandora_server" ]
|
||||
then
|
||||
echo "ERROR compiling Pandora FMS Server from sources. Aborting"
|
||||
exit 1
|
||||
@@ -182,7 +181,7 @@ perl-TimeDate perl-XML-Simple perl-XML-T
|
||||
if [ "$AREYOUSURE" = "y" ]; then
|
||||
if [ "$DISTRO" = "FreeBSD" ]
|
||||
then
|
||||
- echo "pandora:41121:::::Pandora FMS:/home/pandora:/usr/sbin/nologin:" | adduser -f - -w no 2> /dev/null
|
||||
+ :
|
||||
else
|
||||
useradd pandora
|
||||
mkdir /home/pandora 2> /dev/null
|
||||
@@ -238,16 +237,10 @@ perl-TimeDate perl-XML-Simple perl-XML-T
|
||||
|
||||
echo "Creating setup directory in $PANDORA_CFG_DIR"
|
||||
mkdir $PANDORA_CFG_DIR 2> /dev/null
|
||||
- if [ -e $PANDORA_CFG_FILE ]
|
||||
- then
|
||||
- OLDFILENAMETMP=`date +"%Y-%m-%d"`
|
||||
- echo "Old installation detected, backing up pandora_server.conf.$ODFILENAMETMP"
|
||||
- mv $PANDORA_CFG_FILE $PANDORA_CFG_FILE.$OLDFILENAMETMP
|
||||
- fi
|
||||
if [ "$DISTRO" = "FreeBSD" ]
|
||||
then
|
||||
echo cp FreeBSD/pandora_server.conf $PANDORA_CFG_DIR
|
||||
- cp FreeBSD/pandora_server.conf $PANDORA_CFG_DIR
|
||||
+ cp FreeBSD/pandora_server.conf $PANDORA_CFG_DIR/pandora_server.conf.sample
|
||||
else
|
||||
echo cp conf/pandora_server.conf $PANDORA_CFG_DIR
|
||||
cp conf/pandora_server.conf $PANDORA_CFG_DIR
|
||||
@@ -257,7 +250,7 @@ perl-TimeDate perl-XML-Simple perl-XML-T
|
||||
echo "Installing Pandora Server manual"
|
||||
if [ "$DISTRO" = "FreeBSD" ]
|
||||
then
|
||||
- cp man/man1/pandora_server.1.gz /usr/local/man/man1
|
||||
+ zcat man/man1/pandora_server.1.gz > %%MAN1PREFIX%%/man/man1/pandora_server.1
|
||||
else
|
||||
cp man/man1/pandora_server.1.gz /usr/share/man/man1
|
||||
fi
|
||||
@@ -288,22 +281,9 @@ perl-TimeDate perl-XML-Simple perl-XML-T
|
||||
ln -s $PANDORA_SERVER /etc/rc.d/rc$INITLV.d/S90pandora_server
|
||||
fi
|
||||
fi
|
||||
- else
|
||||
- if [ "$DISTRO" = "FreeBSD" ]
|
||||
- then
|
||||
- echo "Copying the daemon script into $PANDORA_SERVER"
|
||||
- cp FreeBSD/pandora_server $PANDORA_SERVER
|
||||
- chmod 555 $PANDORA_SERVER
|
||||
- fi
|
||||
fi
|
||||
|
||||
- if [ -d /etc/logrotate.d ]; then
|
||||
- echo "Creating logrotate.d entry for Pandora FMS log management"
|
||||
- cp util/pandora_logrotate /etc/logrotate.d/pandora
|
||||
- else
|
||||
echo "Please add a log rotation schedule manually to your log rotation daemon (if any)"
|
||||
- fi
|
||||
-
|
||||
if [ "$LINUX" = "YES" ]
|
||||
then
|
||||
if [ "$SECOPT" != "--no-tentacle" ]
|
||||
@@ -343,12 +323,10 @@ perl-TimeDate perl-XML-Simple perl-XML-T
|
||||
if [ "$DISTRO" = "FreeBSD" ]
|
||||
then
|
||||
echo "Installing tentacle server"
|
||||
- cp bin/tentacle_server /usr/local/bin
|
||||
- chown pandora /usr/local/bin/tentacle_server
|
||||
- cp FreeBSD/tentacle_server $TENTACLE_SERVER
|
||||
- chmod 555 $TENTACLE_SERVER
|
||||
+ cp bin/tentacle_server %%PREFIX%%/bin
|
||||
+ chown pandora %%PREFIX%%/bin/tentacle_server
|
||||
echo "Installing Tentacle Server manual"
|
||||
- cp man/man1/tentacle_server.1.gz /usr/local/man/man1
|
||||
+ zcat man/man1/tentacle_server.1.gz > %%MAN1PREFIX%%/man/man1/tentacle_server.1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -357,39 +335,11 @@ perl-TimeDate perl-XML-Simple perl-XML-T
|
||||
mkdir $PANDORA_HOME 2> /dev/null
|
||||
cp -R util $PANDORA_HOME
|
||||
|
||||
- if [ -d /etc/cron.daily ]
|
||||
- then
|
||||
- echo "Creating the Cron script to run daily Pandora DB tool"
|
||||
- echo "#!/bin/bash" > /etc/cron.daily/pandora_db
|
||||
- echo "perl /usr/share/pandora_server/util/pandora_db.pl /etc/pandora/pandora_server.conf" >> /etc/cron.daily/pandora_db
|
||||
- chmod +x /etc/cron.daily/pandora_db
|
||||
- else
|
||||
- if [ "$DISTRO" = "FreeBSD" ]
|
||||
- then
|
||||
- grep pandora_db.pl /etc/crontab > /dev/null 2>&1
|
||||
- if [ $? -ne 0 ]
|
||||
- then
|
||||
- echo "# Pandora FMS" >> /etc/crontab
|
||||
- echo "2 0 * * * root perl /usr/local/share/pandora_server/util/pandora_db.pl /usr/local/etc/pandora/pandora_server.conf" >> /etc/crontab
|
||||
- else
|
||||
- echo "The crontab for pandora_db.pl is already configured."
|
||||
- fi
|
||||
- else
|
||||
- echo "You're probably not using cron for automatic scheduling. You should schedule the following command to run frequently (daily) on your master server:"
|
||||
- echo " perl /usr/share/pandora_server/util/pandora_db.pl /etc/pandora/pandora_server.conf"
|
||||
- fi
|
||||
- fi
|
||||
echo
|
||||
echo "Now you have to edit your $PANDORA_CFG_FILE file to change the database password (default is pandora) with the one set in include/config.php of your Pandora FMS Console."
|
||||
echo "After setting password you can start your Pandora FMS Server!!"
|
||||
rm output
|
||||
|
||||
- if [ -d "/etc/logrotate.d" ]
|
||||
- then
|
||||
- echo "Managing Pandora FMS logs with logrotate (Distro independent)"
|
||||
- cp -aRf util/pandora_logrotate /etc/logrotate.d/pandora
|
||||
- fi
|
||||
-
|
||||
if [ "$DISTRO" = "FreeBSD" ]
|
||||
then
|
||||
echo " "
|
26
net-mgmt/pandorafms_server/files/pkg-message.in
Normal file
26
net-mgmt/pandorafms_server/files/pkg-message.in
Normal file
|
@ -0,0 +1,26 @@
|
|||
**********************************************************************
|
||||
|
||||
Pandora FMS server has been installed
|
||||
|
||||
In order to run the Pandora FMS server, you need to edit
|
||||
%%ETCDIR%%/pandora_server.conf
|
||||
at least to change the database password with the one set in
|
||||
include/config.php of your Pandora FMS Console and add the
|
||||
following line to /etc/rc.conf or /etc/rc.conf.local:
|
||||
|
||||
pandora_server_enable="YES"
|
||||
|
||||
If you intalled tentacle_server, you also need to add the
|
||||
following line to /etc/rc.conf or /etc/rc.conf.local:
|
||||
|
||||
tentacle_server_enable="YES"
|
||||
|
||||
|
||||
By default pandora_db.pl script will run daily to purge old data
|
||||
stored in the Pandora FMS database, and maintain the database
|
||||
compacted. If you don't want this behavior please set the following
|
||||
in your /etc/periodic.conf or /etc/periodic.conf.local:
|
||||
|
||||
daily_clean_pandoradb_enable="NO"
|
||||
|
||||
**********************************************************************
|
44
net-mgmt/pandorafms_server/files/tentacle_server.in
Normal file
44
net-mgmt/pandorafms_server/files/tentacle_server.in
Normal file
|
@ -0,0 +1,44 @@
|
|||
#!/bin/sh
|
||||
|
||||
# PROVIDE: tentacle_server
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Add the following line to /etc/rc.conf to enable `tentacle_server':
|
||||
#
|
||||
# tentacle_server_enable="YES"
|
||||
#
|
||||
|
||||
. "/etc/rc.subr"
|
||||
|
||||
name="tentacle_server"
|
||||
rcvar=`set_rcvar`
|
||||
load_rc_config $name
|
||||
|
||||
# set defaults
|
||||
: ${tentacle_server_enable:=NO}
|
||||
: ${tentacle_server_flags:="-a 0.0.0.0 -p 41121 -s /var/spool/pandora/data_in -i.*\.conf:conf\;.*\.md5:md5\;.*\.zip:collections"}
|
||||
: ${tentacle_server_user:=pandora}
|
||||
|
||||
pidfile=/var/run/$name.pid
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-cf -p ${pidfile} -u ${tentacle_server_user} %%PREFIX%%/bin/${name} ${tentacle_server_flags}"
|
||||
procname="%%PERL%%"
|
||||
start_cmd=start_cmd
|
||||
stop_postcmd=stop_postcmd
|
||||
|
||||
start_cmd() {
|
||||
check_startmsgs && echo "Starting ${name}."
|
||||
|
||||
touch $pidfile
|
||||
chown $tentacle_server_user $pidfile
|
||||
|
||||
$command $command_args
|
||||
}
|
||||
|
||||
stop_postcmd() {
|
||||
rm -f $pidfile
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
23
net-mgmt/pandorafms_server/pkg-descr
Normal file
23
net-mgmt/pandorafms_server/pkg-descr
Normal file
|
@ -0,0 +1,23 @@
|
|||
Pandora FMS is a monitoring Open Source software. It watches your systems and
|
||||
applications, and allows you to know the status of any element of those systems.
|
||||
|
||||
Pandora FMS could detect a network interface down, a defacement in your
|
||||
website, a memory leak in one of your server application, or the movement of
|
||||
any value of the NASDAQ new technology market. Pandora FMS could send out SMS
|
||||
message when your systems fails... or when Google's value drop below US348.60?
|
||||
|
||||
Pandora FMS runs on any operating system, with specific agents for each
|
||||
platform, gathering data and sending it to a server, it has specific agents for
|
||||
GNU/Linux, AIX, Solaris, HP-UX, BSD/IPSO, and Windows 2000, XP and 2003.
|
||||
|
||||
Pandora FMS can also monitor any kind of TCP/IP service, without the need to
|
||||
install agents, and monitor network systems such as load balancers, routers,
|
||||
switches, operating systems, applications, or simply printers if you need.
|
||||
Pandora FMS also supports SNMP for collecting data and for receiving traps.
|
||||
|
||||
A few examples of common resources monitored by Pandora FMS could be processor
|
||||
load, disk and memory usage, running processes, log files, environmental
|
||||
factors such as temperature, or application values like strings contained in
|
||||
web pages or any possible way to collect data in an automatic way.
|
||||
|
||||
WWW: http://www.pandorafms.org/
|
98
net-mgmt/pandorafms_server/pkg-plist
Normal file
98
net-mgmt/pandorafms_server/pkg-plist
Normal file
|
@ -0,0 +1,98 @@
|
|||
@comment $FreeBSD$
|
||||
bin/pandora_exec
|
||||
bin/pandora_server
|
||||
%%TENTACLE%%bin/tentacle_server
|
||||
@unexec if cmp -s %D/%%ETCDIR%%/pandora_server.conf.sample %D/%%ETCDIR%%/pandora_server.conf;then rm -f %D/%%ETCDIR%%/pandora_server.conf;fi
|
||||
%%ETCDIR%%/pandora_server.conf.sample
|
||||
@exec [ -e %D/%F ] || cp -p %D/%F %B/pandora_server.conf
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/PandoraFMS/.packlist
|
||||
%%SITE_PERL%%/PandoraFMS/Config.pm
|
||||
%%SITE_PERL%%/PandoraFMS/Core.pm
|
||||
%%SITE_PERL%%/PandoraFMS/DB.pm
|
||||
%%SITE_PERL%%/PandoraFMS/DataServer.pm
|
||||
%%SITE_PERL%%/PandoraFMS/GIS.pm
|
||||
%%SITE_PERL%%/PandoraFMS/GeoIP.pm
|
||||
%%SITE_PERL%%/PandoraFMS/NetworkServer.pm
|
||||
%%SITE_PERL%%/PandoraFMS/NmapParser.pm
|
||||
%%SITE_PERL%%/PandoraFMS/PluginServer.pm
|
||||
%%SITE_PERL%%/PandoraFMS/PredictionServer.pm
|
||||
%%SITE_PERL%%/PandoraFMS/ProducerConsumerServer.pm
|
||||
%%SITE_PERL%%/PandoraFMS/ReconServer.pm
|
||||
%%SITE_PERL%%/PandoraFMS/SNMPServer.pm
|
||||
%%SITE_PERL%%/PandoraFMS/Sendmail.pm
|
||||
%%SITE_PERL%%/PandoraFMS/Server.pm
|
||||
%%SITE_PERL%%/PandoraFMS/Tools.pm
|
||||
%%SITE_PERL%%/PandoraFMS/Traceroute.pm
|
||||
%%SITE_PERL%%/PandoraFMS/Traceroute/PurePerl.pm
|
||||
%%SITE_PERL%%/PandoraFMS/WMIServer.pm
|
||||
%%DATADIR%%/util/alert_multicast.pl
|
||||
%%DATADIR%%/util/change_remoteconfig.pl
|
||||
%%DATADIR%%/util/compaq_chassis_trap_manager.pl
|
||||
%%DATADIR%%/util/compaq_chassis_trap_manager2.pl
|
||||
%%DATADIR%%/util/esx_trap_manager.pl
|
||||
%%DATADIR%%/util/gis.README
|
||||
%%DATADIR%%/util/gpx2pandora_agent_data.pl
|
||||
%%DATADIR%%/util/n2p.README
|
||||
%%DATADIR%%/util/n2p.pl
|
||||
%%DATADIR%%/util/pandora2ast/GPL
|
||||
%%DATADIR%%/util/pandora2ast/README
|
||||
%%DATADIR%%/util/pandora2ast/channelcommands
|
||||
%%DATADIR%%/util/pandora2ast/extensions.conf.add
|
||||
%%DATADIR%%/util/pandora2ast/pandora2ast.pl
|
||||
%%DATADIR%%/util/pandora2ast/text2speech.php
|
||||
%%DATADIR%%/util/pandora_DBI_test.pl
|
||||
%%DATADIR%%/util/pandora_backup.sh
|
||||
%%DATADIR%%/util/pandora_count.sh
|
||||
%%DATADIR%%/util/pandora_db.pl
|
||||
%%DATADIR%%/util/pandora_dbstress.README
|
||||
%%DATADIR%%/util/pandora_dbstress.pl
|
||||
%%DATADIR%%/util/pandora_diagnostic.sh
|
||||
%%DATADIR%%/util/pandora_logrotate
|
||||
%%DATADIR%%/util/pandora_manage.pl
|
||||
%%DATADIR%%/util/pandora_recode_db.pl
|
||||
%%DATADIR%%/util/pandora_remote_agent.sh
|
||||
%%DATADIR%%/util/pandora_server
|
||||
%%DATADIR%%/util/pandora_snmp.README
|
||||
%%DATADIR%%/util/pandora_sync_db.pl
|
||||
%%DATADIR%%/util/pandora_xml_stress.README
|
||||
%%DATADIR%%/util/pandora_xml_stress.conf
|
||||
%%DATADIR%%/util/pandora_xml_stress.pl
|
||||
%%DATADIR%%/util/plugin/babel_plugin/README
|
||||
%%DATADIR%%/util/plugin/babel_plugin/babel_plugin.sh
|
||||
%%DATADIR%%/util/plugin/babel_plugin/plugin_definition.ini
|
||||
%%DATADIR%%/util/plugin/bgp_plugin.pl
|
||||
%%DATADIR%%/util/plugin/create_integria_incident.sh
|
||||
%%DATADIR%%/util/plugin/dns_plugin.sh
|
||||
%%DATADIR%%/util/plugin/integria_plugin/README
|
||||
%%DATADIR%%/util/plugin/integria_plugin/integria_plugin.sh
|
||||
%%DATADIR%%/util/plugin/integria_plugin/plugin_definition.ini
|
||||
%%DATADIR%%/util/plugin/ipmi-plugin.pl
|
||||
%%DATADIR%%/util/plugin/multicast.pl
|
||||
%%DATADIR%%/util/plugin/mysql_plugin.sh
|
||||
%%DATADIR%%/util/plugin/openvpn_pandoraplugin.pl
|
||||
%%DATADIR%%/util/plugin/pandora_inventory_change.README
|
||||
%%DATADIR%%/util/plugin/pandora_inventory_change.pl
|
||||
%%DATADIR%%/util/plugin/pandora_loadgen.pl
|
||||
%%DATADIR%%/util/plugin/pandora_server_status.pl
|
||||
%%DATADIR%%/util/plugin/snmp_process.pl
|
||||
%%DATADIR%%/util/plugin/ssh_pandoraplugin.sh
|
||||
%%DATADIR%%/util/plugin/udp_nmap_plugin.sh
|
||||
%%DATADIR%%/util/plugin/webcheck_plugin.sh
|
||||
%%DATADIR%%/util/recon_scripts/snmpdevices.pl
|
||||
%%DATADIR%%/util/recon_scripts/ipmi-recon.pl
|
||||
%%DATADIR%%/util/tentacle_serverd
|
||||
%%DATADIR%%/util/udp_client.pl
|
||||
%%DATADIR%%/util/windows.README
|
||||
etc/periodic/daily/199.clean-pandoradb
|
||||
@dirrm %%SITE_PERL%%/PandoraFMS/Traceroute
|
||||
@dirrm %%SITE_PERL%%/PandoraFMS
|
||||
@dirrm %%DATADIR%%/util/plugin/babel_plugin
|
||||
@dirrm %%DATADIR%%/util/plugin/integria_plugin
|
||||
@dirrm %%DATADIR%%/util/pandora2ast
|
||||
@dirrmtry %%DATADIR%%/util/plugin
|
||||
@dirrmtry %%DATADIR%%/util/recon_scripts
|
||||
@dirrmtry %%DATADIR%%/util
|
||||
@dirrmtry %%DATADIR%%
|
||||
@dirrmtry %%PREFIX%%/etc/periodic/daily
|
||||
@dirrmtry %%PREFIX%%/etc/periodic
|
||||
@dirrmtry %%ETCDIR%%
|
15
net-mgmt/pandorafms_server/pkg-plist.spool
Normal file
15
net-mgmt/pandorafms_server/pkg-plist.spool
Normal file
|
@ -0,0 +1,15 @@
|
|||
@comment $FreeBSD$
|
||||
%%USE_LOGDIR%%@exec if [ ! -d %%LOGDIR%% ];then mkdir %%LOGDIR%%; chown pandora:www %%LOGDIR%%;fi
|
||||
%%USE_LOGDIR%%@unexec rmdir %%LOGDIR%% 2>/dev/null || true
|
||||
@exec if [ ! -d %%SPOOLDIR%% ];then mkdir -pm 770 %%SPOOLDIR%%; chown pandora:www %%SPOOLDIR%%;fi
|
||||
%%USE_SPOOL_OUT%%@exec if [ ! -d %%SPOOLDIR%%/data_out ];then mkdir -pm 755 %%SPOOLDIR%%/data_out; chown pandora:daemon %%SPOOLDIR%%/data_out;fi
|
||||
%%USE_SPOOL_OUT%%@unexec rmdir %%SPOOLDIR%%/data_out 2>/dev/null || true
|
||||
%%USE_SPOOL_IN%%@exec if [ ! -d %%SPOOLDIR%%/data_in ];then mkdir -pm 770 %%SPOOLDIR%%/data_in; chown pandora:www %%SPOOLDIR%%/data_in;fi
|
||||
%%USE_SPOOL_IN%%@exec if [ ! -d %%SPOOLDIR%%/data_in/collections ];then mkdir %%SPOOLDIR%%/data_in/collections; chown pandora:www %%SPOOLDIR%%/data_in/collections;fi
|
||||
%%USE_SPOOL_IN%%@exec if [ ! -d %%SPOOLDIR%%/data_in/conf ];then mkdir %%SPOOLDIR%%/data_in/conf; chown pandora:www %%SPOOLDIR%%/data_in/conf;fi
|
||||
%%USE_SPOOL_IN%%@exec if [ ! -d %%SPOOLDIR%%/data_in/md5 ];then mkdir %%SPOOLDIR%%/data_in/md5; chown pandora:www %%SPOOLDIR%%/data_in/md5;fi
|
||||
%%USE_SPOOL_IN%%@unexec rmdir %%SPOOLDIR%%/data_in/collections 2>/dev/null || true
|
||||
%%USE_SPOOL_IN%%@unexec rmdir %%SPOOLDIR%%/data_in/conf 2>/dev/null || true
|
||||
%%USE_SPOOL_IN%%@unexec rmdir %%SPOOLDIR%%/data_in/md5 2>/dev/null || true
|
||||
%%USE_SPOOL_IN%%@unexec rmdir %%SPOOLDIR%%/data_in 2>/dev/null || true
|
||||
@unexec rmdir %%SPOOLDIR%% 2>/dev/null || true
|
39
net-mgmt/wmi-client/Makefile
Normal file
39
net-mgmt/wmi-client/Makefile
Normal file
|
@ -0,0 +1,39 @@
|
|||
# New ports collection makefile for: wmi
|
||||
# Date created: 2011-11-25
|
||||
# Whom: KIKUCHI Koichiro <koichiro@rworks.jp>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= wmi
|
||||
PORTVERSION= 1.3.16
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= http://dev.zenoss.org/svn/trunk/inst/externallibs/ \
|
||||
ftp://ftp.mk.bsdclub.org/pub/FreeBSD/distfiles/
|
||||
PKGNAMESUFFIX= -client
|
||||
|
||||
MAINTAINER= koichiro@rworks.jp
|
||||
COMMENT= DCOM/WMI client implementation
|
||||
|
||||
CONFLICTS= zenoss-3*
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_AUTOTOOLS= autoconf:env
|
||||
USE_PYTHON_BUILD= yes
|
||||
USE_GMAKE= yes
|
||||
USE_ICONV= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
#BUILD_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls
|
||||
#RUN_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls
|
||||
|
||||
MAKEFILE= GNUmakefile
|
||||
MAKE_ENV= ZENHOME="${PREFIX}" PY_LIBDIR="${PYTHONPREFIX_SITELIBDIR}"
|
||||
ALL_TARGET= build
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-configure:
|
||||
# do noting
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
net-mgmt/wmi-client/distinfo
Normal file
2
net-mgmt/wmi-client/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (wmi-1.3.16.tar.bz2) = 1001e0786485ba70ec5ae94b205b182f9cda50cb305d31d12c0ca2edd4c39aff
|
||||
SIZE (wmi-1.3.16.tar.bz2) = 3047783
|
29
net-mgmt/wmi-client/files/patch-GNUmakefile
Normal file
29
net-mgmt/wmi-client/files/patch-GNUmakefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- GNUmakefile.orig 2011-12-23 13:58:36.000000000 +0000
|
||||
+++ GNUmakefile 2012-04-13 04:10:44.000000000 +0000
|
||||
@@ -36,7 +36,7 @@
|
||||
# Install dir for libasync_wmi_lib.so.* and pysamba wrapper code.
|
||||
# e.g., Samba/source/bin/shared/libasync_wmi_lib.so.0.0.1 --> $(PY_LIBDIR)
|
||||
#
|
||||
-PY_LIBDIR = $(ZENHOME)/lib/python
|
||||
+PY_LIBDIR? = $(ZENHOME)/lib/python
|
||||
|
||||
#-------------------------------------------------------------------------#
|
||||
# A key deliverable of this build process is the libasync_wmi shared #
|
||||
@@ -70,7 +70,7 @@
|
||||
#-------------------------------------------------------------------------#
|
||||
# Comment out the next line to disable google-breakpad dependency.
|
||||
ifneq ($(shell uname), Darwin)
|
||||
-USE_BREAKPAD = 1
|
||||
+#USE_BREAKPAD = 1
|
||||
endif
|
||||
|
||||
ifneq ($(USE_BREAKPAD),)
|
||||
@@ -158,7 +158,7 @@
|
||||
$(SAMBA_SRCDIR)/Makefile: $(SAMBA_SRCDIR)/autogen.sh
|
||||
cd $(SAMBA_SRCDIR) ;\
|
||||
./autogen.sh ;\
|
||||
- CPPFLAGS="$(WMI_CPPFLAGS)" ./configure --without-readline --enable-debug
|
||||
+ CPPFLAGS="$(WMI_CPPFLAGS)" ./configure --without-readline --enable-debug --disable-gnutls
|
||||
|
||||
ifeq ($(USE_BREAKPAD),)
|
||||
pywmi-build: build-prereqs $(LIBRPC_CONFIG_MK) $(SAMBA_SRCDIR)/Makefile
|
6
net-mgmt/wmi-client/pkg-descr
Normal file
6
net-mgmt/wmi-client/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
This DCOM/WMI client implementation is based on Samba4 sources.
|
||||
It uses RPC/DCOM mechanism to interact with WMI services on
|
||||
Windows machines.
|
||||
|
||||
This package contains also winexe - program to remote execution
|
||||
Windows commands remotely.
|
32
net-mgmt/wmi-client/pkg-plist
Normal file
32
net-mgmt/wmi-client/pkg-plist
Normal file
|
@ -0,0 +1,32 @@
|
|||
@comment $FreeBSD$
|
||||
bin/winexe
|
||||
bin/wmic
|
||||
%%PYTHON_SITELIBDIR%%/libasync_wmi_lib.so.0
|
||||
%%PYTHON_SITELIBDIR%%/libasync_wmi_lib.so.0.0.2
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/talloc.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/test/watcher.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/test/connect.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/test/wmic.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/version.pyc
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/library.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/composite_context.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/version.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/ndr.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/rpc/Rpc.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/rpc/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/rpc/credentials.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/rpc/dcerpc.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/rpc/rpc_request.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/rpc/oxidresolver.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/wbem/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/wbem/Query.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/wbem/wbem.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/twisted/callback.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/twisted/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/pysamba/twisted/reactor.py
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/pysamba/wbem
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/pysamba/twisted
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/pysamba/test
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/pysamba/rpc
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/pysamba
|
Loading…
Add table
Reference in a new issue