You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
(886) |
Apr
(141) |
May
(30) |
Jun
(86) |
Jul
(23) |
Aug
(33) |
Sep
|
Oct
(21) |
Nov
(30) |
Dec
(811) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(184) |
Feb
(137) |
Mar
(519) |
Apr
(1298) |
May
(180) |
Jun
(71) |
Jul
(35) |
Aug
(90) |
Sep
(48) |
Oct
(86) |
Nov
(159) |
Dec
(55) |
| 2009 |
Jan
(57) |
Feb
(60) |
Mar
(53) |
Apr
(43) |
May
(32) |
Jun
(89) |
Jul
(83) |
Aug
(47) |
Sep
(74) |
Oct
(88) |
Nov
(72) |
Dec
(56) |
| 2010 |
Jan
(33) |
Feb
(20) |
Mar
(17) |
Apr
|
May
(3) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(66) |
Oct
(16) |
Nov
(6) |
Dec
(11) |
| 2011 |
Jan
(6) |
Feb
|
Mar
(49) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(3) |
Aug
(2) |
Sep
(1) |
Oct
(62) |
Nov
(4) |
Dec
(1) |
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(81) |
Sep
(4) |
Oct
(3) |
Nov
(1) |
Dec
(3) |
| 2013 |
Jan
(8) |
Feb
(1) |
Mar
(3) |
Apr
|
May
(33) |
Jun
(8) |
Jul
|
Aug
|
Sep
(76) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
(17) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
|
2
|
3
(23) |
4
(9) |
|
5
|
6
|
7
|
8
(1) |
9
|
10
|
11
|
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
|
26
|
27
|
28
|
29
|
30
|
31
|
|
|
From: <gr...@pr...> - 2007-08-08 11:31:13
|
confirm a2eb047d9347d36111a7d1b841f79fa88af65c37 |
|
From: Matt <mat...@us...> - 2007-08-04 15:56:14
|
Update of /cvsroot/openqrm/plugins/bacula/etc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10915/plugins/bacula/etc Modified Files: httpd.conf.bacula Log Message: minor fixes to preconfiguration of the apache Index: httpd.conf.bacula =================================================================== RCS file: /cvsroot/openqrm/plugins/bacula/etc/httpd.conf.bacula,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** httpd.conf.bacula 4 Aug 2007 15:27:41 -0000 1.1 --- httpd.conf.bacula 4 Aug 2007 15:56:15 -0000 1.2 *************** *** 1054,1058 **** # static content ! Alias /systemdesigner "$QRM_SERVER_BASE_DIR/qrm/plugins/bacula/apache/html" <Directory "$QRM_SERVER_BASE_DIR/qrm/plugins/bacula/apache/html"> Options Indexes +Includes +FollowSymLinks +MultiViews --- 1054,1058 ---- # static content ! Alias /bweb "$QRM_SERVER_BASE_DIR/qrm/plugins/bacula/apache/html" <Directory "$QRM_SERVER_BASE_DIR/qrm/plugins/bacula/apache/html"> Options Indexes +Includes +FollowSymLinks +MultiViews |
|
From: Matt <mat...@us...> - 2007-08-04 15:56:14
|
Update of /cvsroot/openqrm/plugins/bacula In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10915/plugins/bacula Modified Files: Makefile Log Message: minor fixes to preconfiguration of the apache Index: Makefile =================================================================== RCS file: /cvsroot/openqrm/plugins/bacula/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile 4 Aug 2007 15:27:41 -0000 1.2 --- Makefile 4 Aug 2007 15:56:15 -0000 1.3 *************** *** 41,45 **** endif ! INSTALL_FILES := apache, etc/events.properties, etc/*.xml, -m 0700 etc/init.d, include, -m 0700 bin, -m 0700 sbin, doc INSTALL_FILES_DEST := $(OUTDIR)/qrm/plugins/bacula INC_NAME := ../../build/Makefile.inc --- 41,45 ---- endif ! INSTALL_FILES := apache, etc/events.properties, etc/*.xml, etc/httpd.conf.bacula, -m 0700 etc/init.d, include, -m 0700 bin, -m 0700 sbin, doc INSTALL_FILES_DEST := $(OUTDIR)/qrm/plugins/bacula INC_NAME := ../../build/Makefile.inc |
|
From: Matt <mat...@us...> - 2007-08-04 15:27:40
|
Update of /cvsroot/openqrm/plugins/bacula/bin In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31905/plugins/bacula/bin Added Files: apachectl Log Message: added dependencies to the apache plugin + pre-configure the apache plugin for bweb --- NEW FILE: apachectl --- #!/bin/sh # # Copyright 2000-2005 The Apache Software Foundation or its licensors, as # applicable. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # Apache control script designed to allow an easy command line interface # to controlling Apache. Written by Marc Slemko, 1997/08/23 # # The exit codes returned are: # XXX this doc is no longer correct now that the interesting # XXX functions are handled by httpd # 0 - operation completed successfully # 1 - # 2 - usage error # 3 - httpd could not be started # 4 - httpd could not be stopped # 5 - httpd could not be started during a restart # 6 - httpd could not be restarted during a restart # 7 - httpd could not be restarted during a graceful restart # 8 - configuration syntax error # # When multiple arguments are given, only the error from the _last_ # one is reported. Run "apachectl help" for usage info # ARGV="$@" if [ "$QRM_SERVER_BASE_DIR" = "" ] then QRM_SERVER_BASE_DIR=`readlink /etc/init.d/qrm-server | sed -e "s#/qrm/etc/init.d/qrm-server##g"` fi # # |||||||||||||||||||| START CONFIGURATION SECTION |||||||||||||||||||| # -------------------- -------------------- # # the path to your httpd binary, including options if necessary HTTPD="$QRM_SERVER_BASE_DIR/qrm/plugins/apache/bin/httpd -f $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/httpd.conf" # # pick up any necessary environment variables if test -f $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/envvars; then . $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/envvars fi # # a command that outputs a formatted text version of the HTML at the # url given on the command line. Designed for lynx, however other # programs may work. LYNX="lynx -dump" # # the URL to your server's mod_status status page. If you do not # have one, then status and fullstatus will not work. STATUSURL="http://localhost:88/server-status" # # Set this variable to a command that increases the maximum # number of file descriptors allowed per child process. This is # critical for configurations that use many file descriptors, # such as mass vhosting, or a multithreaded server. ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" # -------------------- -------------------- # |||||||||||||||||||| END CONFIGURATION SECTION |||||||||||||||||||| # Set the maximum number of file descriptors allowed per child process. if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then $ULIMIT_MAX_FILES fi ERROR=0 if [ "x$ARGV" = "x" ] ; then ARGV="-h" fi case $ARGV in start|stop|restart|graceful) $HTTPD -k $ARGV ERROR=$? ;; startssl|sslstart|start-SSL) $HTTPD -k start -DSSL ERROR=$? ;; configtest) $HTTPD -t ERROR=$? ;; status) $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' ;; fullstatus) $LYNX $STATUSURL ;; *) $HTTPD $ARGV ERROR=$? esac exit $ERROR |
|
From: Matt <mat...@us...> - 2007-08-04 15:27:40
|
Update of /cvsroot/openqrm/plugins/bacula/include In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31905/plugins/bacula/include Modified Files: bacula-functions bacula-info.xml Log Message: added dependencies to the apache plugin + pre-configure the apache plugin for bweb Index: bacula-info.xml =================================================================== RCS file: /cvsroot/openqrm/plugins/bacula/include/bacula-info.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bacula-info.xml 3 Aug 2007 11:35:10 -0000 1.1 --- bacula-info.xml 4 Aug 2007 15:27:41 -0000 1.2 *************** *** 35,37 **** <description>Provides Backup/Restore via Bacula in openQRM</description> </module> ! </package> --- 35,49 ---- <description>Provides Backup/Restore via Bacula in openQRM</description> </module> ! <relation> ! <module>qrm-core</module> ! <version>=3.1.4</version> ! <require>true</require> ! <install>before</install> ! </relation> ! <relation> ! <module>apache</module> ! <version>=2.0.55</version> ! <require>true</require> ! <install>before</install> ! </relation> ! </package> Index: bacula-functions =================================================================== RCS file: /cvsroot/openqrm/plugins/bacula/include/bacula-functions,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bacula-functions 3 Aug 2007 11:35:11 -0000 1.1 --- bacula-functions 4 Aug 2007 15:27:41 -0000 1.2 *************** *** 36,39 **** --- 36,41 ---- BACULA_DB_SOCKET="/tmp/mysql.sock" + BWEB_USER=nobody + BWEB_GROUP=nobody ################ common bacula functions *************** *** 80,84 **** # create the socket file for bacula if [ "$QRM_DATABASE_SOCK" != "$BACULA_DB_SOCKET" ]; then ! echo "Linking $QRM_DATABASE_SOCK to $BACULA_DB_SOCKET" ln -sf $QRM_DATABASE_SOCK $BACULA_DB_SOCKET fi --- 82,86 ---- # create the socket file for bacula if [ "$QRM_DATABASE_SOCK" != "$BACULA_DB_SOCKET" ]; then ! bacula_log bacula_check_mysql_sock "Linking $QRM_DATABASE_SOCK to $BACULA_DB_SOCKET" ln -sf $QRM_DATABASE_SOCK $BACULA_DB_SOCKET fi *************** *** 107,111 **** --- 109,123 ---- # create link to the jar file /bin/ln -sf $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/include/bacula-plugin-1.0.jar ${QRM_SERVER_BASE_DIR}/qrm/java/webapp/WEB-INF/lib/bacula-plugin-1.0.jar + + # Create apache config file for bweb + /bin/sed -e "s%\$QRM_SERVER_BASE_DIR%${QRM_SERVER_BASE_DIR}%g" ${QRM_SERVER_BASE_DIR}/qrm/plugins/bacula/etc/httpd.conf.bacula >${QRM_SERVER_BASE_DIR}/qrm/plugins/bacula/etc/httpd.conf + # create the links to populate the apache dir + cd ${QRM_SERVER_BASE_DIR}/qrm/plugins/apache + for ADIR in `ls | grep -v logs`; do + ln -sf ${QRM_SERVER_BASE_DIR}/qrm/plugins/apache/$ADIR ${QRM_SERVER_BASE_DIR}/qrm/plugins/bacula/apache/$ADIR + done + mkdir -p ${QRM_SERVER_BASE_DIR}/qrm/plugins/bacula/apache/logs + chown -R $BWEB_USER:$BWEB_GROUP ${QRM_SERVER_BASE_DIR}/qrm/plugins/bacula/apache/logs } *************** *** 131,141 **** --- 143,166 ---- function bacula_start() { + bacula_log bacula_start "Starting Bacula-server" bacula_check_mysql_sock $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/bacula start + # start bweb + bacula_log bacula_start "Starting apache web-server for bweb" + ${QRM_SERVER_BASE_DIR}/qrm/plugins/bacula/bin/apachectl start + + } function bacula_stop() { + # stopping bweb + bacula_log bacula_stop "Stopping apache web-server for bweb" + ${QRM_SERVER_BASE_DIR}/qrm/plugins/bacula/bin/apachectl stop + kill `ps ax | grep bacula | grep httpd | grep -v grep | awk {' print $1 '}` 2>/dev/null + + bacula_log bacula_stop "Stopping Bacula-server" + bacula_check_mysql_sock $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/bacula stop } |
|
From: Matt <mat...@us...> - 2007-08-04 15:27:40
|
Update of /cvsroot/openqrm/plugins/bacula In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31905/plugins/bacula Modified Files: Makefile Log Message: added dependencies to the apache plugin + pre-configure the apache plugin for bweb Index: Makefile =================================================================== RCS file: /cvsroot/openqrm/plugins/bacula/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile 3 Aug 2007 11:35:10 -0000 1.1 --- Makefile 4 Aug 2007 15:27:41 -0000 1.2 *************** *** 41,45 **** endif ! INSTALL_FILES := etc/events.properties, etc/*.xml, -m 0700 etc/init.d, include, -m 0700 sbin, doc INSTALL_FILES_DEST := $(OUTDIR)/qrm/plugins/bacula INC_NAME := ../../build/Makefile.inc --- 41,45 ---- endif ! INSTALL_FILES := apache, etc/events.properties, etc/*.xml, -m 0700 etc/init.d, include, -m 0700 bin, -m 0700 sbin, doc INSTALL_FILES_DEST := $(OUTDIR)/qrm/plugins/bacula INC_NAME := ../../build/Makefile.inc |
|
From: Matt <mat...@us...> - 2007-08-04 15:27:40
|
Update of /cvsroot/openqrm/plugins/bacula/etc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31905/plugins/bacula/etc Added Files: httpd.conf.bacula envvars Log Message: added dependencies to the apache plugin + pre-configure the apache plugin for bweb --- NEW FILE: envvars --- # Copyright 2001-2005 The Apache Software Foundation or its licensors, as # applicable. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # envvars-std - default environment variables for apachectl # # This file is generated from envvars-std.in # if [ "$QRM_SERVER_BASE_DIR" = "" ] then QRM_SERVER_BASE_DIR=`readlink /etc/init.d/qrm-server | sed -e "s#/qrm/etc/init.d/qrm-server##g"` fi LD_LIBRARY_PATH="${QRM_SERVER_BASE_DIR}/qrm/plugins/apache/lib:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH # --- NEW FILE: httpd.conf.bacula --- # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. [...1027 lines suppressed...] ScriptAlias /bacula-cgi-bin/ "$QRM_SERVER_BASE_DIR/qrm/plugins/bacula/apache/cgi-bin/" <Directory "$QRM_SERVER_BASE_DIR/qrm/plugins/bacula/apache/cgi-bin/"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> # static content Alias /systemdesigner "$QRM_SERVER_BASE_DIR/qrm/plugins/bacula/apache/html" <Directory "$QRM_SERVER_BASE_DIR/qrm/plugins/bacula/apache/html"> Options Indexes +Includes +FollowSymLinks +MultiViews AllowOverride AuthConfig AddType text/html .shtml AddOutputFilter INCLUDES .shtml Order allow,deny Allow from all </Directory> DirectoryIndex index.html index.shtml |
|
From: Matt <mat...@us...> - 2007-08-04 15:27:40
|
Update of /cvsroot/openqrm/plugins/bacula/apache In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31905/plugins/bacula/apache Added Files: README.apache Log Message: added dependencies to the apache plugin + pre-configure the apache plugin for bweb --- NEW FILE: README.apache --- # This is the Root for the bweb apache server |
|
From: Matt <mat...@us...> - 2007-08-04 15:26:31
|
Update of /cvsroot/openqrm/plugins/bacula/bin In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31503/plugins/bacula/bin Log Message: Directory /cvsroot/openqrm/plugins/bacula/bin added to the repository |
|
From: Matt <mat...@us...> - 2007-08-04 15:26:27
|
Update of /cvsroot/openqrm/plugins/bacula/apache In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31492/plugins/bacula/apache Log Message: Directory /cvsroot/openqrm/plugins/bacula/apache added to the repository |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:14
|
Update of /cvsroot/openqrm/plugins/bacula In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27495/plugins/bacula Added Files: project.properties Makefile project.xml maven.xml Log Message: initial stage of the bacula plugin -> server is started by a server-service -> client is started via a boot-service --- NEW FILE: maven.xml --- <!-- The contents of this file are subject to the Qlusters Public License Version 1.1 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.openqrm.org/content/view/33/69/. Software distributed under the License is distributed on an AS IS basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is openQRM. The Initial Developer of the Original Code is Qlusters Corporation. Portions created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights Reserved. Contributor(s): Description: Comments: --> <project default="jar:jar" xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:util="jelly:util" xmlns:maven="jelly:maven"> <goal name="set-java-compile-classpth"> <ant:path id="clpath"> <ant:pathelement path="${project.dependencies.classes.dir}"/> </ant:path> <maven:addPath id="maven.dependency.classpath" refid="clpath"/> </goal> <preGoal name="java:compile"> <attainGoal name="set-java-compile-classpth"/> </preGoal> <postGoal name="jar:jar"> <attainGoal name="deploy:jar"/> </postGoal> <goal name="deploy:jar" description="Copy the jar and xmls deploy folder"> <ant:copy todir="${plugin.deploy.dir}"> <ant:fileset dir="${maven.build.dir}" includes="${pom.artifactId}-${pom.currentVersion}.jar"/> </ant:copy> </goal> </project> --- NEW FILE: project.properties --- # ------------------------------------------------------------------- # Copyright 2001-2004 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ------------------------------------------------------------------- maven.xdoc.date=left ## maven.xdoc.version=${pom.currentVersion} project.repository=${maven.repo.local} project.resources.source.dir=main/resources qrm.deploy.dir=${basedir}/../deploy/ project.dependencies.dir= project.dependencies.classes.dir=${project.dependencies.dir}/classes project.dependencies.lib.dir=${project.dependencies.dir}/lib project.java.source.dir=main/code maven.repo.remote=http://ny.qlusters.com/qrm_pkgs/java/repository,http://www.ibiblio.org/maven maven.repo.remote.enabled=true maven.multiproject.type=jar maven.compile.source=1.5 maven.compile.target=1.5 maven.compile.debug=true maven.jar.final.name=bacula-plugin maven.jar.index=true maven.src.dir=. plugin.deploy.dir=${qrm.deploy.dir} #maven.dependency.classpath=${basedir}/../target/open-nemo/WEB-INF/classes/ #maven.compile.src.set=${basedir}/../target/open-nemo/WEB-INF/classes/ --- NEW FILE: Makefile --- ################################################################################ # # # The contents of this file are subject to the Qlusters Public License # Version 1.1 (the License); you may not use this file except in compliance # with the License. # You may obtain a copy of the License at # http://www.openqrm.org/content/view/33/69/. # # Software distributed under the License is distributed on an AS IS basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for # the specific language governing rights and limitations under the License. # # The Original Code is openQRM. # # The Initial Developer of the Original Code is Qlusters Corporation. Portions # created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights # Reserved. # # Contributor(s): # # Description: # # Comments: ################################################################################ # # openQrm bacula Makefile # export PACKAGE_PREFIX = openqrm export PACKAGE_GROUP = plugin export PACKAGE_NAME = bacula export PACKAGE_F_NAME = $(PACKAGE_PREFIX)-$(PACKAGE_GROUP)-$(PACKAGE_NAME) INC_NAME := ../../build/Makefile.inc include $(INC_NAME) ifdef PACKAGE_TYPE OUTDIR := ../../../pkg_stage/$(PACKAGE_F_NAME)/opt else OUTDIR := ../../../out endif INSTALL_FILES := etc/events.properties, etc/*.xml, -m 0700 etc/init.d, include, -m 0700 sbin, doc INSTALL_FILES_DEST := $(OUTDIR)/qrm/plugins/bacula INC_NAME := ../../build/Makefile.inc include $(INC_NAME) RPM_INC_NAME := ../../build/Makefile.rpm.inc include $(RPM_INC_NAME) PACKAGE_CONFIG_FILE_BACULA=$(SOURCE_ROOT)/plugins/bacula/build/bacula.conf PACKAGE_BUILD_DISTRIBUTION=$(shell $(MAKE_HELPER) qrm_get_build_distro) ARCH="$(shell uname -m 2>/dev/null)" if [ -z "$ARCH" ] && [ -x /usr/bin/dpkg ]; \ then ARCH=$(shell /usr/bin/dpkg --print-installation-architecture); \ elif [ -z "$ARCH" ]; \ then echo "WARNING: Cannot find Architecture, assuming i386"; ARCH="i386"; \ fi all: check @echo "making the bacula plugin" $(SOURCE_ROOT)/make_helper build_package $(PACKAGE_CONFIG_FILE_BACULA) install: @echo "installing and packaging bacula for Qrm" /bin/rm -rf $(OUTDIR)/qrm/plugins/bacula/client mkdir -p $(OUTDIR)/qrm/plugins/bacula/client /bin/cp -aRv $(QRM_CACHE_DIR)/bacula/installation/* $(OUTDIR)/qrm/plugins/bacula/ # creating the client package tar -C $(OUTDIR)/qrm --exclude CVS --exclude Makefile -czf $(OUTDIR)/qrm/plugins/bacula/client/bacula-client.tgz \ plugins/bacula/etc/bacula-ctl-fd \ plugins/bacula/etc/bacula-fd.conf \ plugins/bacula/etc/btraceback.dbx \ plugins/bacula/etc/btraceback.gdb \ plugins/bacula/etc/init.d \ plugins/bacula/sbin/bacula-fd \ plugins/bacula/sbin/bcopy \ plugins/bacula/sbin/bextract \ plugins/bacula/sbin/bls \ plugins/bacula/sbin/bregex \ plugins/bacula/sbin/bscan \ plugins/bacula/sbin/bsmtp \ plugins/bacula/sbin/btape \ plugins/bacula/sbin/btraceback \ plugins/bacula/sbin/bwild \ plugins/bacula/var \ plugins/bacula/include/bacula-functions # creating the plugin jar make java java: ../../build/maven-helper.sh install -c $(QRM_CACHE_DIR)/java -t $(QRM_ROOT_DIR) -d $(INSTALL_FILES_DEST)/include -m bacula -w $(TOMCAT_DIR) -- $(MAVEN_OPTS) clean: check @echo "cleaning up bacula" /bin/rm -rf $(OUTDIR)/qrm/plugins/bacula realclean: clean @echo "making realclean for the bacula plugin" /bin/rm -rf $(QRM_CACHE_DIR)/src/bacula* \ $(QRM_CACHE_DIR)/bacula \ $(QRM_ROOT_DIR)/build/bacula configure: check: @if [ -z $(QRM_CACHE_DIR) ]; then echo "ERROR: QRM_CACHE_DIR not set!"; exit 1; fi @if [ -z $(QRM_ROOT_DIR) ]; then echo "ERROR: QRM_ROOT_DIR not set!"; exit 1; fi --- NEW FILE: project.xml --- <?xml version="1.0" encoding="UTF-8"?> <!-- /* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --> <project> <!-- the version of maven's project object model --> <pomVersion>3</pomVersion> <!-- a unique name for this project --> <id>bacula-plugin</id> <!-- a short but descriptive name for the project --> <name>qrm plugins</name> <!-- The version of the project under development, e.g. 1.1, 1.2, 2.0-SNAPSHOT --> <currentVersion>1.0</currentVersion> <!-- details about the organization that 'owns' the project --> <organization> <name>Apache Software Foundation</name> <url>http://www.apache.org/</url> <logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo> </organization> <!-- the year the project started --> <inceptionYear>2002</inceptionYear> <package>com.qlusters</package> <logo></logo> <description>A collection of example projects showing how to use maven in different situations</description> <!-- a short description of what the project does --> <shortDescription>How to use maven in different situations</shortDescription> <!-- the project home page --> <url>http://maven.apache.org/reference/plugins/examples/</url> <issueTrackingUrl>http://nagoya.apache.org/scarab/servlet/scarab/</issueTrackingUrl> <siteAddress>jakarta.apache.org</siteAddress> <siteDirectory>/www/maven.apache.org/reference/plugins/examples/</siteDirectory> <distributionDirectory>/www/maven.apache.org/builds/</distributionDirectory> <!-- the version control repository and http url for online access the connection element has the form: scm:<system>:<system specific connection string> --> <repository> <connection>scm:cvs:pserver:an...@cv...:/home/cvspublic:maven-plugins/examples</connection> <url>http://cvs.apache.org/viewcvs/maven-plugins/examples/</url> </repository> <!-- any mailing lists for the project --> <mailingLists/> <!-- who the developers are for the project --> <developers/> <!-- jar files the project is dependent on --> <dependencies> <!-- XDoclet dependencies <dependency> <groupId>xdoclet</groupId> <artifactId>xjavadoc</artifactId> <version>2.1-j5-v4</version> <url>http://xdoclet.sourceforge.net</url> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet</artifactId> <version>1.2.3</version> <url>http://xdoclet.sourceforge.net</url> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-xdoclet-module</artifactId> <version>1.2.3</version> <url>http://xdoclet.sourceforge.net</url> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-ejb-module</artifactId> <version>1.2.3</version> <url>http://xdoclet.sourceforge.net</url> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-web-module</artifactId> <version>1.2.3</version> <url>http://xdoclet.sourceforge.net</url> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-jmx-module</artifactId> <version>1.2.3</version> <url>http://xdoclet.sourceforge.net</url> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-jboss-module</artifactId> <version>1.2</version> <url>http://xdoclet.sourceforge.net</url> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-apache-module</artifactId> <version>1.2</version> <url>http://xdoclet.sourceforge.net</url> </dependency> <dependency> <groupId>xdoclet</groupId> <artifactId>xdoclet-hibernate-module</artifactId> <version>1.2.2</version> </dependency> --> <!-- compile time dependencies --> <!-- <dependency> <groupId>jspapi</groupId> <artifactId>jsp-api</artifactId> <version>2.0-20040521</version> <type>jar</type> </dependency> <dependency> <groupId>servletapi</groupId> <artifactId>servlet-api</artifactId> <version>2.4-20040521</version> <type>jar</type> </dependency> <dependency> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> <version>1.0.b2</version> <type>jar</type> </dependency> <dependency> <groupId>ant</groupId> <artifactId>ant</artifactId> <version>1.6.4</version> <type>jar</type> </dependency> --> <!-- Included in the war dependencies --> <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.8</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.0.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>displaytag</groupId> <artifactId>displaytag</artifactId> <version>1.0</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.0.6</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>jfreechart</groupId> <artifactId>jfreechart</artifactId> <version>0.9.8</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>jfree</groupId> <artifactId>jcommon</artifactId> <version>0.9.6</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts</artifactId> <version>1.2.4</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> --> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.1</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <!-- <dependency> <groupId>commons-el</groupId> <artifactId>commons-el</artifactId> <version>1.0</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.1</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> --> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.6</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <!-- <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>1.5</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.0</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.4</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>commons-validator</groupId> <artifactId>commons-validator</artifactId> <version>1.1.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>commons-resources</groupId> <artifactId>commons-resources</artifactId> <version>0.1-dev</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>commons-cli</groupId> <artifactId>commons-cli</artifactId> <version>1.0</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> --> <dependency> <groupId>commons-configuration</groupId> <artifactId>commons-configuration</artifactId> <version>1.1</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <!-- <dependency> <groupId>javax</groupId> <artifactId>jta-spec</artifactId> <version>1.0.1</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>hibernate</groupId> <artifactId>hibernate</artifactId> <version>2.1.6</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>enhydra</groupId> <artifactId>plankton</artifactId> <version>1.2.6</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> --> <dependency> <groupId>jpf</groupId> <artifactId>jpf</artifactId> <version>0.6</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>jpf</groupId> <artifactId>jpf-tools</artifactId> <version>0.6</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>jpf</groupId> <artifactId>jxp</artifactId> <version>1.2.0</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>jsr223</groupId> <artifactId>script</artifactId> <version>1.0.0</version> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <!-- <dependency> <groupId>jakarta</groupId> <artifactId>jakarta-oro</artifactId> <version>2.0.8</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-el</artifactId> <version>1.2.4</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>ognl</groupId> <artifactId>ognl</artifactId> <version>2.6.7</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring-aop</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring-beans</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring-context</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring-core</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring-dao</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring-hibernate</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>springframework</groupId> <artifactId>spring-support</artifactId> <version>1.2.3</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId> <version>1.6</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>cglib</groupId> <artifactId>cglib-full</artifactId> <version>2.0.2</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>odmg</groupId> <artifactId>odmg</artifactId> <version>3.0</version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> --> <!--dependency> <groupId></groupId> <artifactId></artifactId> <version></version> <type>jar</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency--> <!-- dependencies for run-time, but outside of the war --> <!-- <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.0</version> <type>jar</type> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>2.0</version> <type>jar</type> </dependency> <dependency> <groupId>commons-pool</groupId> <artifactId>commons-pool</artifactId> <version>1.0</version> <type>jar</type> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>3.1.6</version> <type>jar</type> </dependency> --> <!-- TLDs --> <!-- <dependency> <groupId>taglibs</groupId> <artifactId>c</artifactId> <version>1.0.1</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>c-rt</artifactId> <version>1.0.1</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>fmt</artifactId> <version>1.0.1</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>fmt-rt</artifactId> <version>1.0.1</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>sql</artifactId> <version>1.0.1</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>sql-rt</artifactId> <version>1.0.1</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>x</artifactId> <version>1.0.1</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>x-rt</artifactId> <version>1.0.1</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-html</artifactId> <version>1.2</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-html-el</artifactId> <version>1.2</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-bean</artifactId> <version>1.2</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-bean-el</artifactId> <version>1.2</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-logic</artifactId> <version>1.2</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-logic-el</artifactId> <version>1.2</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-tiles</artifactId> <version>1.2</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts-tiles-el</artifactId> <version>1.2</version> <type>tld</type> <properties> <war.bundle>true</war.bundle> </properties> </dependency>--> </dependencies> <!-- build information for the project --> <build> <sourceDirectory>main/code</sourceDirectory> <unitTestSourceDirectory>test</unitTestSourceDirectory> <unitTest> <includes> <include>**/*Test.java</include> </includes> <excludes> <exclude>**/NaughtyTest.java</exclude> </excludes> </unitTest> <resources> <resource> <directory>main/resources/jar</directory> </resource> <resource> <directory>conf</directory> <includes> <include>*.properties</include> </includes> </resource> </resources> </build> </project> |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:14
|
Update of /cvsroot/openqrm/plugins/bacula/sbin In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27495/plugins/bacula/sbin Added Files: qrm-bacula-manager Log Message: initial stage of the bacula plugin -> server is started by a server-service -> client is started via a boot-service --- NEW FILE: qrm-bacula-manager --- #!/bin/bash ################################################################################ # # # The contents of this file are subject to the Qlusters Public License # Version 1.1 (the License); you may not use this file except in compliance # with the License. # You may obtain a copy of the License at # http://www.openqrm.org/content/view/33/69/. # # Software distributed under the License is distributed on an AS IS basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for # the specific language governing rights and limitations under the License. # # The Original Code is openQRM. # # The Initial Developer of the Original Code is Qlusters Corporation. Portions # created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights # Reserved. # # Contributor(s): # # Description: # # Comments: ################################################################################ # # This script will manage bacula assignment # It is intended to be called on the qrm-server in case of assign/de-assign # by an event-listener. # COMMAND=$1 RESOURCE_ID=$2 RESOURCE_IP=$3 function usage() { echo "Usage $0 <backup> [resource-id] [resource-ip]" } if [ "$RESOURCE_IP" == "" ] || [ "$RESOURCE_ID" == "" ]; then qerror "Parameters ip/id missing. Exiting" usage exit fi BASE_DIR=$(dirname $0)/../../../../ QRM_SERVER_BASE_DIR=$(pushd $BASE_DIR > /dev/null && echo $PWD && popd > /dev/null) # memory loaded functions . $QRM_SERVER_BASE_DIR/qrm/include/qrm-functions . $QRM_SERVER_BASE_DIR/qrm/include/qrm-server-functions if ! qrm_get_server_config 1>/dev/null ; then qerror "Can't get server parameters" exit 1 fi function bacula_backup() { : } # main case "$COMMAND" in backup) bacula_backup ;; *) usage ;; esac exit 0 |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:13
|
Update of /cvsroot/openqrm/plugins/bacula/main/code/java/com/qlusters/qrm/plugins/bacula In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27495/plugins/bacula/main/code/java/com/qlusters/qrm/plugins/bacula Added Files: BaculaManager.java Log Message: initial stage of the bacula plugin -> server is started by a server-service -> client is started via a boot-service --- NEW FILE: BaculaManager.java --- /******************************************************************************* * Filename: ./src/plugins/bacula/main/code/java/com/qlusters/qrm/plugins/bacula/baculaProfileManager.java * * The contents of this file are subject to the Qlusters Public License * Version 1.1 (the License); you may not use this file except in compliance * with the License. * You may obtain a copy of the License at * http://www.openqrm.org/content/view/33/69/. * * Software distributed under the License is distributed on an AS IS basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for * the specific language governing rights and limitations under the License. * * The Original Code is openQRM. * * The Initial Developer of the Original Code is Qlusters Corporation. Portions * created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights * Reserved. * * Contributor(s): Matt Rechenburg * * Description: This class manages the bacula installation profiles * * Comments: ******************************************************************************/ package com.qlusters.qrm.plugins.bacula; import java.util.Map; import java.util.*; import java.io.*; import com.qlusters.qrm.server.logic.controller.commands.*; import com.qlusters.qrm.server.logic.controller.*; import com.qlusters.qrm.server.logic.resources.ComputeResourcesFinder; import com.qlusters.qrm.server.api.objects.ComputeResourceData; import com.qlusters.qrm.server.api.exceptions.resources.ComputeResourceNotFoundException; import com.qlusters.qrm.server.api.exceptions.resources.ComputeResourceOperationNotPermittedException; import com.qlusters.qrm.utils.Prefs; import com.qlusters.qrm.utils.NetUtils; import com.qlusters.qrm.exceptions.InvalidIpException; /** * @author matt * */ public class BaculaManager extends ScriptCommand { final static String baculaCommandScript = System.getenv("QRM_SERVER_BASE_DIR") + "/qrm/plugins/bacula/sbin/qrm-bacula-manager"; // test method public String backup(String profile) { String cmd = baculaCommandScript; cmd=cmd + " backup "; cmd=cmd + profile; String[] cmd_array = {cmd}; setCmd(cmd_array); CommandsExecutor.execute(this, ExecutionMode.IMMEDIATELY); ScriptOutput out = getOutput(); String stdout = out.getOutString(); System.out.println("OUT: " + stdout); System.out.println("ERR:" + out.getErrorString()); return stdout; } } |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:13
|
Update of /cvsroot/openqrm/plugins/bacula/doc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27495/plugins/bacula/doc Added Files: README.txt Changelog Log Message: initial stage of the bacula plugin -> server is started by a server-service -> client is started via a boot-service --- NEW FILE: README.txt --- ################################################################################ # # # The contents of this file are subject to the Qlusters Public License # Version 1.1 (the License); you may not use this file except in compliance # with the License. # You may obtain a copy of the License at # http://www.openqrm.org/content/view/33/69/. # # Software distributed under the License is distributed on an AS IS basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for # the specific language governing rights and limitations under the License. # # The Original Code is openQRM. # # The Initial Developer of the Original Code is Qlusters Corporation. Portions # created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights # Reserved. # # Contributor(s): Matt Rechenburg # # Description: Bacula-plugin documentation # # Comments: ################################################################################ # Bacula plug-in documentation General information FAQs Requirements Set up Usage Bacula limitations URLs General information The Bacula plug-in provides backup+restore functionality for openQRM. Detailed explanation FAQ Q) Why ? A) Beacause ... Requirements - The system started as Bacula-host must have the following components: Set up To enable the Bacula plug-in run : cd [your-base-dir]/qrm ./qrm-installer -i -m bacula --defaults [ no additional configuration need ] Usage To use the Bacula plug-in please refer to the steps below: 1) Bacula limitations/Known issues I) Currently the Bacula plugin sets a static path during compilation -> /opt/qrm/plugin/bacula II) The compilation currently is configured to build against the mysql-libs/headers in /usr/local/mysql. To re-configure this for your system please edit ../src/plugins/bacula/build/bacula.conf. Urls Bacula: http://www.bacula.org/ --- NEW FILE: Changelog --- ################################################################################ # # # The contents of this file are subject to the Qlusters Public License # Version 1.1 (the License); you may not use this file except in compliance # with the License. # You may obtain a copy of the License at # http://www.openqrm.org/content/view/33/69/. # # Software distributed under the License is distributed on an AS IS basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for # the specific language governing rights and limitations under the License. # # The Original Code is openQRM. # # The Initial Developer of the Original Code is Qlusters Corporation. Portions # created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights # Reserved. # # Contributor(s): Matt Rechenburg # # Description: Bacula-plugin documentation # # Comments: ################################################################################ # # This is the Changelog for the openQRM Bacula-plugin # Bacula-plugin 0.1 for openQRM 3.1.4 - initial release |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:12
|
Update of /cvsroot/openqrm/plugins/bacula/etc/init.d In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27495/plugins/bacula/etc/init.d Added Files: bacula-client Log Message: initial stage of the bacula plugin -> server is started by a server-service -> client is started via a boot-service --- NEW FILE: bacula-client --- #!/bin/bash ################################################################################ # # # The contents of this file are subject to the Qlusters Public License # Version 1.1 (the License); you may not use this file except in compliance # with the License. # You may obtain a copy of the License at # http://www.openqrm.org/content/view/33/69/. # # Software distributed under the License is distributed on an AS IS basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for # the specific language governing rights and limitations under the License. # # The Original Code is openQRM. # # The Initial Developer of the Original Code is Qlusters Corporation. Portions # created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights # Reserved. # # Contributor(s): # # Description: # # Comments: ################################################################################ # init script for the bacula plugin # chkconfig: 2345 97 18 # description: openQRM is the next generation Linux Data Center management. \ # Please see www.openQRM.org for more details. export `eval cat /proc/cmdline` . /var/qrm/conf/qrm.conf.$id . $QRM_NODES_BASE_DIR/qrm/include/qrm-functions . $QRM_NODES_BASE_DIR/qrm/include/qrm-nodes-functions . $QRM_NODES_BASE_DIR/qrm/plugins/bacula/include/bacula-functions QRM_CLI=$QRM_NODES_BASE_DIR/qrm/bin/qrm-cli BACFDCFG=$QRM_NODES_BASE_DIR/qrm/plugins/bacula/etc function bacula_client_start() { echo "starting openQRM bacula-client" [ -x ${BACFDCFG}/bacula-ctl-fd ] && ${BACFDCFG}/bacula-ctl-fd start } function bacula_client_stop() { echo "stopping openQRM bacula-client" [ -x ${BACFDCFG}/bacula-ctl-fd ] && ${BACFDCFG}/bacula-ctl-fd stop } function bacula_client_status() { [ -x ${BACFDCFG}/bacula-ctl-fd ] && ${BACFDCFG}/bacula-ctl-fd status } # main case "$1" in start) bacula_client_start ;; stop) bacula_client_stop ;; restart) bacula_client_stop bacula_client_start ;; status) bacula_client_status ;; *) echo "use start|stop|restart|status" ;; esac |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:12
|
Update of /cvsroot/openqrm/plugins/bacula/etc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27495/plugins/bacula/etc Added Files: bacula.xml events.properties bacula.xsd bacula-plugin.xml Log Message: initial stage of the bacula plugin -> server is started by a server-service -> client is started via a boot-service --- NEW FILE: bacula.xml --- <?xml version = '1.0'?> <!-- The contents of this file are subject to the Qlusters Public License Version 1.1 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.openqrm.org/content/view/33/69/. Software distributed under the License is distributed on an AS IS basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is openQRM. The Initial Developer of the Original Code is Qlusters Corporation. Portions created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights Reserved. Contributor(s): Description: Comments: --> <plugin> <properties> <name>bacula</name> <version>0.1</version> <description>Provides Backup/Restore via Bacula in openQRM</description> <schema_version>1.0</schema_version> </properties> <config/> </plugin> --- NEW FILE: bacula-plugin.xml --- <?xml version="1.0" ?> <!-- The contents of this file are subject to the Qlusters Public License Version 1.1 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.openqrm.org/content/view/33/69/. Software distributed under the License is distributed on an AS IS basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is openQRM. The Initial Developer of the Original Code is Qlusters Corporation. Portions created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights Reserved. Contributor(s): Description: Comments: --> <!DOCTYPE plugin PUBLIC "-//JPF//Java Plug-in Manifest 0.2" "http://jpf.sourceforge.net/plugin_0_2.dtd"> <plugin id="com.qlusters.qrm.plugins.bacula-plugin" version="0.0.1" > <requires> <import plugin-id="com.qlusters.qrm.plugins.core"/> </requires> <extension plugin-id="com.qlusters.qrm.plugins.core" point-id="BootService" id="bacula"> <parameter id="name" value="bacula"/> <parameter id="runlevel" value="35"/> <parameter id="package" value="http://$QRM_SERVER_IP_ADDRESS/unsecure/bacula/bacula-client.tgz"/> <parameter id="init" value="plugins/bacula/etc/init.d/bacula-client"/> </extension> </plugin> --- NEW FILE: events.properties --- ################################################################################ # Copyright (C) Qlusters Corporation 2006. All Rights Reserved. ################################################################################ Resource.Action.Start.Failed.Bacula$level=Alert Resource.Action.Start.Failed.Bacula$message=Failed to start backup on ${resource.name}. --- NEW FILE: bacula.xsd --- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- The contents of this file are subject to the Qlusters Public License Version 1.1 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.openqrm.org/content/view/33/69/. Software distributed under the License is distributed on an AS IS basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is openQRM. The Initial Developer of the Original Code is Qlusters Corporation. Portions created by Qlusters Corporation are Copyright (C) 2006. All Rights Reserved. Contributor(s): Description: Comments: --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="help"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="can be ISCSI or NFS."/> <xs:enumeration value="can be Linux or Numa"/> <xs:enumeration value="can be i686 Xeon Opteron or Any"/> <xs:enumeration value="exported path which will store the filesystem images."/> <xs:enumeration value="hostname(resolved by dns) or ip of the machine which we want to creat the filesystem from."/> <xs:enumeration value="kernel version e.g SOURCE_KERNEL_VERSION=2.4.21-27.ELsmp"/> <xs:enumeration value="logic name inside the DB for the storage server."/> <xs:enumeration value="storage server ip which will be mounted by the node."/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="plugin"> <xs:complexType> <xs:sequence> <xs:element name="properties"> <xs:complexType> <xs:sequence> <xs:element name="name"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="bacula"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="version"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="0.1"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="description"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="bacula integration"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="schema_version"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:enumeration value="1.0"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="config"> <xs:complexType> <xs:sequence> <xs:element name="SOURCE_SYSTEM"> <xs:complexType> <xs:sequence> <xs:element ref="value"/> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="STORAGE_SERVER"> <xs:complexType> <xs:sequence> <xs:element ref="value"/> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="STORAGE_FILESYSTEM_PATH"> <xs:complexType> <xs:sequence> <xs:element ref="value"/> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SOURCE_KERNEL_VERSION"> <xs:complexType> <xs:sequence> <xs:element ref="value"/> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="STORAGE_SERVER_NODE_ACCESS_IP"> <xs:complexType> <xs:sequence> <xs:element ref="value"/> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="STORAGE_TYPE"> <xs:complexType> <xs:sequence> <xs:element ref="value"/> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="BOOT_FLAGS"> <xs:complexType> <xs:sequence> <xs:element ref="value"/> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SYSTEM_ARCH"> <xs:complexType> <xs:sequence> <xs:element name="value"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="i686"/> <xs:enumeration value="i585"/> <xs:enumeration value="Xeon"/> <xs:enumeration value="Opteron"/> <xs:enumeration value="Any"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="DEFAULT_GATEWAY"> <xs:complexType> <xs:sequence> <xs:element ref="value"/> <xs:element ref="help"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="value" type="xs:string"/> </xs:schema> |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:12
|
Update of /cvsroot/openqrm/plugins/bacula/include In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27137/plugins/bacula/include Log Message: Directory /cvsroot/openqrm/plugins/bacula/include added to the repository |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:11
|
Update of /cvsroot/openqrm/plugins/bacula/main/code/java/com In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27137/plugins/bacula/main/code/java/com Log Message: Directory /cvsroot/openqrm/plugins/bacula/main/code/java/com added to the repository |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:11
|
Update of /cvsroot/openqrm/plugins/bacula/include In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27495/plugins/bacula/include Added Files: bacula-info.xml bacula-functions Log Message: initial stage of the bacula plugin -> server is started by a server-service -> client is started via a boot-service --- NEW FILE: bacula-info.xml --- <?xml version="1.0"?> <!-- The contents of this file are subject to the Qlusters Public License Version 1.1 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.openqrm.org/content/view/33/69/. Software distributed under the License is distributed on an AS IS basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is openQRM. The Initial Developer of the Original Code is Qlusters Corporation. Portions created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights Reserved. Contributor(s): Description: plugin configuration file for the Bacula-plugin Comments: --> <package> <module> <name>bacula</name> <version>0</version> <type>plugin</type> <release>1</release> <license>Qlusters Public License Version 1.1</license> <group>QRM/plugins</group> <arch>i386</arch> <summary>bacula plugin</summary> <description>Provides Backup/Restore via Bacula in openQRM</description> </module> </package> --- NEW FILE: bacula-functions --- #!/bin/bash ################################################################################ # # # The contents of this file are subject to the Qlusters Public License # Version 1.1 (the License); you may not use this file except in compliance # with the License. # You may obtain a copy of the License at # http://www.openqrm.org/content/view/33/69/. # # Software distributed under the License is distributed on an AS IS basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for # the specific language governing rights and limitations under the License. # # The Original Code is openQRM. # # The Initial Developer of the Original Code is Qlusters Corporation. Portions # created by Qlusters Corporation are Copyright (C) 2003-2006. All Rights # Reserved. # # Contributor(s): # # Description: # # Comments: ################################################################################ QRM_CLI=$QRM_SERVER_BASE_DIR/qrm/bin/qrm-cli # have the lockfile in tempfs by default BACULA_LOCK_FILE=/var/run/bacula/bacula-plugin.lock BACULA_LOCK_DELAY=5 BACULA_LOCK_RETRY=100 BACULA_LOCK_TIMEOUT=500 # this is the default for the bacula mysql client BACULA_DB_SOCKET="/tmp/mysql.sock" ################ common bacula functions # logs for bacula function bacula_log() { local COMPONENT=$1 shift local MESSAGE=$@ logger -i -t "Bacula plug-in" "$COMPONENT : $MESSAGE" } # locking function function bacula_lock() { local COMMAND=$1 local RET=1 if [ ! -d `dirname $BACULA_LOCK_FILE` ]; then mkdir -p `dirname $BACULA_LOCK_FILE` fi case "$COMMAND" in aquire) lockfile -s $BACULA_LOCK_DELAY -r $BACULA_LOCK_RETRY -l $BACULA_LOCK_TIMEOUT $BACULA_LOCK_FILE RET=$? bacula_log bacula_lock "Aquired the lock" return $RET ;; release) /bin/rm -f $BACULA_LOCK_FILE RET=$? bacula_log bacula_lock "Released the lock" return $RET ;; *) bacula_log bacula_lock "No such command. Try 'aquire' or 'release'" return 1 ;; esac } function bacula_check_mysql_sock() { # create the socket file for bacula if [ "$QRM_DATABASE_SOCK" != "$BACULA_DB_SOCKET" ]; then echo "Linking $QRM_DATABASE_SOCK to $BACULA_DB_SOCKET" ln -sf $QRM_DATABASE_SOCK $BACULA_DB_SOCKET fi } ################# plugin install bacula functions function bacula_install() { echo "Installing Bacula-plugin" bacula_check_mysql_sock # make sure the old db is dropped $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/drop_bacula_tables 1>/dev/null 2>&1 $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/drop_bacula_database 1>/dev/null 2>&1 # create the db + tables $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/create_bacula_database $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/grant_bacula_privileges $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/make_bacula_tables # put the client package in place mkdir -p $QRM_SERVER_BASE_DIR/qrm/usr/tomcat/webapps/ROOT/unsecure/bacula /bin/cp -f $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/client/bacula-client.tgz $QRM_SERVER_BASE_DIR/qrm/usr/tomcat/webapps/ROOT/unsecure/bacula/ # create link to the jar file /bin/ln -sf $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/include/bacula-plugin-1.0.jar ${QRM_SERVER_BASE_DIR}/qrm/java/webapp/WEB-INF/lib/bacula-plugin-1.0.jar } function bacula_uninstall() { echo "Un-installing Bacula-plugin" # stop bacula_stop # remove db $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/drop_bacula_tables 1>/dev/null 2>&1 $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/drop_bacula_database 1>/dev/null 2>&1 # remove client dir /bin/rm -rf $QRM_SERVER_BASE_DIR/qrm/usr/tomcat/webapps/ROOT/unsecure/bacula # remove link to jar /bin/rm -f ${QRM_SERVER_BASE_DIR}/qrm/java/webapp/WEB-INF/lib/bacula-plugin-1.0.jar } function bacula_start() { bacula_check_mysql_sock $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/bacula start } function bacula_stop() { $QRM_SERVER_BASE_DIR/qrm/plugins/bacula/etc/bacula stop } function create_failure_event() { $QRM_CLI \ event add -g \ -k QRM.Plugin.Error.Requirements \ -t pluginName=bacula \ -t details="$1" } function bacula_run_once() { # register the components # boot-services for the bacula clients $QRM_CLI \ boot associate \ -k bacula \ -t image RET=$? case "$RET" in 0) ;; *) echo "ERROR: The boot-service for the bacula-plugin could not be associated. The error code is $RET" ;; esac return 0 } ################ functions for the Bacula-host |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:11
|
Update of /cvsroot/openqrm/plugins/bacula/build In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27495/plugins/bacula/build Added Files: bacula.conf Log Message: initial stage of the bacula plugin -> server is started by a server-service -> client is started via a boot-service --- NEW FILE: bacula.conf --- ################################################################################ # # # The contents of this file are subject to the Qlusters Public License # Version 1.1 (the License); you may not use this file except in compliance # with the License. # You may obtain a copy of the License at # http://www.openqrm.org/content/view/33/69/. # # Software distributed under the License is distributed on an AS IS basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for # the specific language governing rights and limitations under the License. # # The Original Code is openQRM. # # The Initial Developer of the Original Code is Qlusters Corporation. Portions # created by Qlusters Corporation are Copyright (C) 2003-2005. All Rights # Reserved. # # Contributor(s): # # Description: # # Comments: ################################################################################ #conf PACKAGE_NAME="bacula" PACKAGE_VERSION="2.0.3" PACKAGE_MODE="source" # source, binary, userctl BINS="src/filed/bacula-fd" FILE="bacula-$PACKAGE_VERSION.tar.gz" # build # !!!!!!! currently we compile with a static openQRM-basedir set to /opt # !!!!!!! and mysql-dir set to /usr/local/myslq QRM_CONFIGURE_OPTIONS="--with-mysql=/usr/local/mysql --prefix=/opt/qrm/plugins/bacula" QRM_POST_MAKE_CMD="make install && /bin/mv /opt/qrm/plugins/bacula $QRM_CACHE_DIR/bacula/installation" # urls SOURCE="http://downloads.sourceforge.net/bacula/$FILE" BINARY_REDHAT_73_i686="" BINARY_REDHAT_9_i686="" BINARY_REDHAT_AS3_i686="" BINARY_REDHAT_AS3_i686="" BINARY_FEDORA_CORE3_i686="" BINARY_FEDORA_CORE4_i686="" BINARY_SUSE_91_i686="" BINARY_SUSE_92_i686="" |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:08
|
Update of /cvsroot/openqrm/plugins/bacula/main/code In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27137/plugins/bacula/main/code Log Message: Directory /cvsroot/openqrm/plugins/bacula/main/code added to the repository |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:08
|
Update of /cvsroot/openqrm/plugins/bacula/etc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27137/plugins/bacula/etc Log Message: Directory /cvsroot/openqrm/plugins/bacula/etc added to the repository |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:08
|
Update of /cvsroot/openqrm/plugins/bacula/build In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27137/plugins/bacula/build Log Message: Directory /cvsroot/openqrm/plugins/bacula/build added to the repository |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:08
|
Update of /cvsroot/openqrm/plugins/bacula/main In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27137/plugins/bacula/main Log Message: Directory /cvsroot/openqrm/plugins/bacula/main added to the repository |
|
From: Matt <mat...@us...> - 2007-08-03 11:35:08
|
Update of /cvsroot/openqrm/plugins/bacula/main/code/java In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27137/plugins/bacula/main/code/java Log Message: Directory /cvsroot/openqrm/plugins/bacula/main/code/java added to the repository |