diff --git a/rgmanager/src/resources/ASEHAagent.sh b/rgmanager/src/resources/ASEHAagent.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/Makefile.am b/rgmanager/src/resources/Makefile.am index 0e211a2ef..497239554 100644 --- a/rgmanager/src/resources/Makefile.am +++ b/rgmanager/src/resources/Makefile.am @@ -1,115 +1,117 @@ # # Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # MAINTAINERCLEANFILES = Makefile.in SUBDIRS = utils TARGET = fs.sh oracledb.sh RESOURCES = service.sh ip.sh nfsclient.sh nfsexport.sh \ script.sh netfs.sh clusterfs.sh smb.sh \ apache.sh openldap.sh samba.sh mysql.sh \ postgres-8.sh tomcat-5.sh lvm.sh \ vm.sh SAPInstance SAPDatabase named.sh \ ASEHAagent.sh drbd.sh nfsserver.sh \ tomcat-6.sh orainstance.sh oralistener.sh METADATA = apache.metadata openldap.metadata samba.metadata \ mysql.metadata postgres-8.metadata \ tomcat-5.metadata named.metadata lvm.metadata \ drbd.metadata tomcat-6.metadata \ orainstance.metadata oralistener.metadata HELPERS = ocf-shellfuncs svclib_nfslock \ lvm_by_lv.sh lvm_by_vg.sh DTD = ra-api-1-modified.dtd XSL = ra2man.xsl ra2ref.xsl ra2rng.xsl RESRNG = resources.rng.head resources.rng.mid resources.rng.tail EXTRA_DIST = $(TARGET:=.in) \ $(RESOURCES) \ $(METADATA) \ $(HELPERS) \ $(DTD) \ $(XSL) \ $(RESRNG) rasdir = ${CLUSTERDATA} ras_SCRIPTS = $(TARGET) \ $(RESOURCES) \ $(HELPERS) ras_DATA = $(METADATA) rngdir = ${CLUSTERDATA}/relaxng rng_DATA = $(DTD) $(XSL) $(RESRNG) -$(TARGET): +$(TARGET): cat $@.in | sed \ -e 's#@''LOGDIR@#${LOGDIR}#g' \ - > $@ + > $@.out + chmod +x $@.out + mv $@.out $@ clean-local: rm -f $(TARGET) resources.rng ras-validation: $(RESOURCES) $(TARGET) $(DTD) @echo Validating resource agent meta-data @for f in $(RESOURCES); do \ echo " $(abs_srcdir)/$$f "; \ bash $(abs_srcdir)/$$f meta-data | xmllint --dtdvalid \ $(abs_srcdir)/$(DTD) --noout -; \ if [ $$? -ne 0 ]; then exit 1; fi \ done @for f in $(TARGET); do \ echo " $(abs_builddir)/$$f "; \ bash $(abs_builddir)/$$f meta-data | xmllint --dtdvalid \ $(abs_srcdir)/$(DTD) --noout -; \ if [ $$? -ne 0 ]; then exit 1; fi \ done # # Schema maintenance. Run 'make resources.rng' and paste it in to # config/tools/xml/cluster.rng.in where it says 'autogenerated'. # # resources.rng.* should never be distributed by themselves. # resources.rng: $(RESOURCES) $(TARGET) utils/config-utils.sh resources.rng: $(XSL) $(RESRNG) rm -f resources.rng cat resources.rng.head >> resources.rng @echo Generating per-resource RelaxNG information... @for f in $(RESOURCES) $(TARGET); do \ echo " ./$$f"; \ bash ./$$f meta-data | xsltproc ra2rng.xsl - >> resources.rng; \ done cat resources.rng.mid >> resources.rng @echo Generating per-resource RelaxNG reference information... @for f in $(RESOURCES) $(TARGET); do \ echo " ./$$f"; \ bash ./$$f meta-data | xsltproc ra2ref.xsl - >> resources.rng; \ done cat resources.rng.tail >> resources.rng utils/config-utils.sh: make -C utils config-utils.sh diff --git a/rgmanager/src/resources/drbd.sh b/rgmanager/src/resources/drbd.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/lvm.sh b/rgmanager/src/resources/lvm.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/lvm_by_lv.sh b/rgmanager/src/resources/lvm_by_lv.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/lvm_by_vg.sh b/rgmanager/src/resources/lvm_by_vg.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/named.sh b/rgmanager/src/resources/named.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/nfsexport.sh b/rgmanager/src/resources/nfsexport.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/openldap.sh b/rgmanager/src/resources/openldap.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/orainstance.sh b/rgmanager/src/resources/orainstance.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/oralistener.sh b/rgmanager/src/resources/oralistener.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/postgres-8.sh b/rgmanager/src/resources/postgres-8.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/samba.sh b/rgmanager/src/resources/samba.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/script.sh b/rgmanager/src/resources/script.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/service.sh b/rgmanager/src/resources/service.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/smb.sh b/rgmanager/src/resources/smb.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/tomcat-5.sh b/rgmanager/src/resources/tomcat-5.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/tomcat-6.sh b/rgmanager/src/resources/tomcat-6.sh old mode 100644 new mode 100755 diff --git a/rgmanager/src/resources/vm.sh b/rgmanager/src/resources/vm.sh old mode 100644 new mode 100755