debian/0000755000000000000000000000000012263762331007173 5ustar debian/control0000644000000000000000000001202212263727451010577 0ustar Source: globus-scheduler-event-generator Priority: optional Maintainer: Mattias Ellert Build-Depends: debhelper (>= 5), autotools-dev, grid-packaging-tools (>= 3.4), globus-core (>= 8.16), libglobus-xio-dev (>= 3.6), libglobus-xio-gsi-driver-dev (>= 2.4), libglobus-common-dev (>= 14.10), libglobus-gram-protocol-dev (>= 11.3-4~), libltdl-dev, doxygen-latex, texlive-fonts-recommended, graphviz, ghostscript Standards-Version: 3.9.5 Section: net Vcs-Browser: http://svn.nordugrid.org/trac/packaging/browser/debian/globus-scheduler-event-generator Vcs-Svn: http://svn.nordugrid.org/repos/packaging/debian/globus-scheduler-event-generator Homepage: http://www.globus.org/ Package: libglobus-scheduler-event-generator0 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, libglobus-xio-gsi-driver0 (>= 2) Description: Globus Toolkit - Scheduler Event Generator The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. . The libglobus-scheduler-event-generator0 package contains: Scheduler Event Generator Package: globus-scheduler-event-generator-progs Section: net Architecture: any Multi-Arch: foreign Depends: ${shlibs:Depends}, ${misc:Depends}, libglobus-xio-gsi-driver0 (>= 2) Description: Globus Toolkit - Scheduler Event Generator Programs The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. . The globus-scheduler-event-generator-progs package contains: Scheduler Event Generator Programs Package: libglobus-scheduler-event-generator-dev Section: libdevel Architecture: any Multi-Arch: same Depends: libglobus-scheduler-event-generator0 (= ${binary:Version}), ${misc:Depends}, libglobus-xio-dev (>= 3), libglobus-xio-gsi-driver-dev (>= 2), globus-core (>= 8), libglobus-common-dev (>= 14), libglobus-gram-protocol-dev (>= 11), libltdl-dev Recommends: libglobus-scheduler-event-generator-doc (= ${source:Version}) Description: Globus Toolkit - Scheduler Event Generator Development Files The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. . The libglobus-scheduler-event-generator-dev package contains: Scheduler Event Generator Development Files Package: libglobus-scheduler-event-generator-doc Section: doc Architecture: all Multi-Arch: foreign Depends: libglobus-scheduler-event-generator-dev (>= ${source:Version}), ${misc:Depends}, ${js:Depends} Description: Globus Toolkit - Scheduler Event Generator Documentation Files The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. . The libglobus-scheduler-event-generator-doc package contains: Scheduler Event Generator Documentation Files Package: libglobus-scheduler-event-generator-dbg Section: debug Priority: extra Architecture: any Multi-Arch: same Replaces: globus-scheduler-event-generator-dbg (<< 4.7-3~) Breaks: globus-scheduler-event-generator-dbg (<< 4.7-3~) Depends: libglobus-scheduler-event-generator0 (= ${binary:Version}), ${misc:Depends} Description: Globus Toolkit - Scheduler Event Generator Debug Symbols The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. . The libglobus-scheduler-event-generator-dbg package contains: Scheduler Event Generator Debug Symbols Package: globus-scheduler-event-generator-dbg Section: debug Priority: extra Architecture: any Multi-Arch: foreign Depends: globus-scheduler-event-generator-progs (= ${binary:Version}), ${misc:Depends} Description: Globus Toolkit - Scheduler Event Generator Debug Symbols The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. . The globus-scheduler-event-generator-dbg package contains: Scheduler Event Generator Debug Symbols debian/rules0000755000000000000000000001104312263541064010250 0ustar #!/usr/bin/make -f # -*- makefile -*- name = globus-scheduler-event-generator _name = globus_scheduler_event_generator soname = 0 INSTALLDIR = $(CURDIR)/debian/tmp GLOBUSPACKAGEDIR = $(INSTALLDIR)$(_datadir)/globus/packages _prefix = /usr _bindir = $(_prefix)/bin _sbindir = $(_prefix)/sbin _libdir = $(_prefix)/lib/$(DEB_HOST_MULTIARCH) _datadir = $(_prefix)/share _mandir = $(_datadir)/man _docdir = $(_datadir)/doc/lib$(name)-dev DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) ifeq ($(DEB_HOST_ARCH_BITS), 64) flavor = gcc64-$(DEB_HOST_MULTIARCH) else flavor = gcc32-$(DEB_HOST_MULTIARCH) endif configure: configure-stamp configure-stamp: dh_testdir dh_autotools-dev_updateconfig /usr/share/globus/globus-bootstrap.sh ./configure \ --disable-static \ --with-flavor=$(flavor) \ --enable-doxygen \ --with-docdir=$(_docdir) \ --with-initscript-config-path=/etc/default/$(name) \ --with-lockfile-path='$${localstatedir}/lock/$(name)' # Reduce overlinking sed 's!CC -shared !CC \\$${wl}--as-needed -shared !g' -i libtool touch $@ build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) touch $@ clean: dh_testdir dh_testroot if [ -r Makefile ] ; then $(MAKE) distclean ; fi dh_autotools-dev_restoreconfig # Remove autogenerated files rm -f aclocal.m4 rm -f compile rm -f configure rm -f install-sh rm -f ltmain.sh rm -f missing rm -f mkinstalldirs rm -f doxygen/Doxyfile* rm -f doxygen/Makefile.am rm -f pkgdata/Makefile.am rm -f pkgdata/*.filelist rm -f pkgdata/*.gpt rm -f pkgdata/$(name).pc rm -f pkgdata/pkg_data_src.pc.in rm -f gptdata.sh rm -f globus_automake* rm -rf autom4te.cache rm -rf doxygen/doc rm -f config/config.log find . -name Makefile.in -exec rm {} ';' rm -f build-stamp configure-stamp dh_clean debian/*.install install: build-stamp dh_testdir dh_testroot dh_prep $(MAKE) install DESTDIR=$(INSTALLDIR) # Remove libtool archives (.la files) find $(INSTALLDIR)$(_libdir) -name 'lib*.la' -exec rm -v '{}' \; sed '/lib.*\.la$$/d' \ -i $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_dev.filelist # Remove start-up scripts rm -rf $(INSTALLDIR)/etc/init.d sed '/init\.d/d' -i $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_pgm.filelist # Fix logfile location sed 's!${localstatedir}/lib/globus/!${localstatedir}/log/globus/!' \ -i $(INSTALLDIR)/etc/default/$(name) # Remove installed license file rm -f $(INSTALLDIR)$(_docdir)/GLOBUS_LICENSE sed /GLOBUS_LICENSE/d \ -i $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_doc.filelist # Use system jquery script if [ -r $(INSTALLDIR)$(_docdir)/html/jquery.js ] ; then \ rm $(INSTALLDIR)$(_docdir)/html/jquery.js ; \ ln -s /usr/share/javascript/jquery/jquery.js \ $(INSTALLDIR)$(_docdir)/html/jquery.js ; \ echo js:Depends=libjs-jquery >> debian/lib$(name)-doc.substvars ; \ else \ echo js:Depends= >> debian/lib$(name)-doc.substvars ; \ fi # Generate package filelists cat $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_rtl.filelist \ | sed s!^!debian/tmp$(_prefix)! > debian/lib$(name)$(soname).install cat $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_pgm.filelist \ $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_data.filelist \ | sed -e s!^!debian/tmp$(_prefix)! -e s!$(_prefix)/etc!/etc! \ > debian/$(name)-progs.install cat $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_dev.filelist \ | sed s!^!debian/tmp$(_prefix)! > debian/lib$(name)-dev.install cat $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_doc.filelist \ | sed s!^!debian/tmp$(_prefix)! > debian/lib$(name)-doc.install binary: binary-arch binary-indep binary-arch: install dh_testdir dh_testroot dh_installdocs -a debian/README dh_installchangelogs -a dh_install -a --fail-missing dh_installman -a dh_installinit -a --name=globus-scheduler-event-generator dh_link -a dh_strip -a -X/bin/ -X/sbin/ --dbg-package=lib$(name)-dbg dh_strip -a -X/lib/ --dbg-package=$(name)-dbg dh_compress -a dh_fixperms -a dh_perl -a dh_makeshlibs -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary-indep: install dh_testdir dh_testroot dh_installdocs -p lib$(name)-doc --link-doc=lib$(name)-dev dh_installdocs -i dh_installchangelogs -i dh_install -i --fail-missing dh_installman -i dh_link -i dh_compress -i -X .tag dh_fixperms -i dh_perl -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i .PHONY: binary binary-arch binary-indep build build-arch build-indep clean configure install debian/README0000644000000000000000000000145111705715432010054 0ustar This package is part of the GRAM5 component of the Globus Toolkit. For more information visit: http://www.globus.org/toolkit/docs/latest-stable/gram5/ Admin Guide: http://www.globus.org/toolkit/docs/latest-stable/gram5/admin/ User's Guide: http://www.globus.org/toolkit/docs/latest-stable/gram5/user/ Developer's Guide: http://www.globus.org/toolkit/docs/latest-stable/gram5/developer/ Release Notes: http://www.globus.org/toolkit/docs/latest-stable/gram5/rn/ Public Interface Guide: http://www.globus.org/toolkit/docs/latest-stable/gram5/pi/ Quality Profile: http://www.globus.org/toolkit/docs/latest-stable/gram5/qp/ Migrating Guide: http://www.globus.org/toolkit/docs/latest-stable/gram5/mig/ Globus debian packaging is supported by the Initiative for Globus in Europe: http://www.ige-project.eu/ debian/globus-scheduler-event-generator-progs.globus-scheduler-event-generator.init0000644000000000000000000001424112263252347026136 0ustar #! /bin/sh # # globus-scheduler-event-generator - Globus Scheduler Event Generator # # chkconfig: 2345 20 80 # description: Parse LRM events into a common log format \ # for the GRAM job manager to use ### BEGIN INIT INFO # Provides: globus-scheduler-event-generator # Required-Start: $remote_fs $time # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Globus Scheduler Event Generator # Description: The Globus Scheduler Event Generator service # process state from local resource managers (such as # torque or SGE) into a form that the globus-job-manager # process can easily parse. # It is part of the Globus Toolkit(tm) ### END INIT INFO # Copyright 1999-2011 University of Chicago # # 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. # sbindir=/usr/sbin localstatedir=/var sysconfdir=/etc progname=globus-scheduler-event-generator prog=${sbindir}/${progname} test -f /etc/default/${progname} && . /etc/default/${progname} test -f ${prog} || exit 0 lockfile=/var/lock/${progname} GLOBUS_SEG_LRM_DIR="${GLOBUS_SEG_LRM_DIR:-/etc/globus/scheduler-event-generator}" full=1 if [ -n "$2" ]; then full=0 fi for lrm in "${GLOBUS_SEG_LRM_DIR}"/*; do if [ -n "$2" -a "$(basename "$lrm")" != "$2" ]; then continue fi if [ -f "$lrm" ]; then lrms="${lrms:+$lrms }$(basename $lrm)" fi done GLOBUS_SEG_PIDFMT="${GLOBUS_SEG_PIDFMT:-/var/run/${progname}-%s.pid}" GLOBUS_SEG_LOGFMT="${GLOBUS_SEG_LOGFMT:-/var/log/globus/globus-seg-%s}" start() { allrc=0 started="" failed="" for lrm in $lrms; do pidfile="$(printf "$GLOBUS_SEG_PIDFMT" "$lrm")" logdir="$(printf "$GLOBUS_SEG_LOGFMT" "$lrm")" status $lrm > /dev/null rc=$? if [ $rc -eq 0 ]; then continue fi if [ ! -d "$logdir" ]; then (umask 022; mkdir "$logdir") fi ${GLOBUS_SEG_NICE_LEVEL:+nice -n "${GLOBUS_SEG_NICE_LEVEL}"} \ "${prog}" \ -s "$lrm" \ -p "$pidfile" \ -d "$logdir" \ -b > /dev/null rc=$? if [ $rc = 0 ]; then started="${started:+${started}, }$lrm" else failed="${failed:+${failed}, }$lrm" allrc=$rc fi done if [ "$allrc" -eq 0 -a "$lrms" != "" ]; then echo "Started ${progname}${started:+ for ($started)}" touch "$lockfile" elif [ "$allrc" -eq 0 ]; then echo "$progname: no LRMS installed" elif [ "$started" = "" ]; then echo "Failed to start ${progname} for ($failed)" else echo "Some problems starting ${progname} for ($failed), but ($started) were ok" touch "$lockfile" fi return $allrc } stop() { allrc=0 stopped="" failed="" for lrm in $lrms; do pidfile="$(printf "$GLOBUS_SEG_PIDFMT" "$lrm")" logdir="$(printf "$GLOBUS_SEG_LOGFMT" "$lrm")" if [ -f "$pidfile" ]; then read pid < "${pidfile}" 2> /dev/null if [ "$pid" -gt 0 ] 2>/dev/null; then if kill -0 "${pid}" 2> /dev/null; then kill -TERM "${pid}" if sleep 1 && kill -0 "${pid}" 2>/dev/null && \ sleep 3 && kill -0 "${pid}" 2>/dev/null; then kill -KILL "${pid}" fi if kill -0 "${pid}" 2> /dev/null; then failed="${failed:+$failed, }$lrm" allrc=1 continue fi fi fi stopped="${stopped:+${stopped}, }$lrm" rm -f "${pidfile}" fi done if [ "$allrc" -eq 0 ]; then echo "Stopped ${progname}${stopped:+ for ($stopped)}" if [ "$full" -eq 1 ]; then rm -f "$lockfile" fi elif [ "$stopped" = "" ]; then echo "Failed to stop ${progname} for $failed" else echo "Some problems stopping ${progname} for $failed, but $stopped were ok" fi return $allrc } restart() { stop start } status() { _lrms="$1" running=0 stale=0 nopidfile=0 if [ "$_lrms" = "" ]; then _lrms="$lrms" fi for lrm in $_lrms; do pidfile="$(printf "$GLOBUS_SEG_PIDFMT" "$lrm")" if [ -f "$pidfile" ]; then read pid < "$pidfile" 2>/dev/null if [ "$pid" -gt 0 ] 2>/dev/null; then if ps -p "$pid" > /dev/null; then echo "$progname ($lrm) is running (pid=$pid)" running=1 else echo "Stale PID file for $progname ($lrm)" stale=1 fi fi else echo "$progname ($lrm) is not running" fi done if [ "$stale" -ne 0 ]; then return 1 fi if [ "$running" -eq 0 -a "$stale" -eq 0 -a "${lrms}" != "" -a -f "${lockfile}" ]; then echo "Stale lock file for $progname" return 2 fi if [ "$running" -eq 1 ]; then return 0 else echo "$progname not running, no LRMs installed" return 3 fi } case "$1" in start) start ;; stop) stop ;; restart) restart ;; reload) exit 0 ;; force-reload) restart ;; status) status ;; condrestart|try-restart) status || exit 0 restart ;; *) echo "Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}" exit 2 ;; esac debian/copyright0000644000000000000000000000123412240160133011111 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: globus_scheduler_event_generator Upstream-Contact: http://www.globus.org/ Source: http://www.globus.org/ftppub/gt5/5.2/5.2.3/packages/src/globus_scheduler_event_generator-4.7.tar.gz Files: * Copyright: 1999-2013 University of Chicago License: Apache-2.0 Files: debian/* Copyright: 2008-2013 Mattias Ellert 2010-2013 Initiative for Globus in Europe (IGE), http://www.ige-project.eu/ License: Apache-2.0 License: Apache-2.0 On Debian systems the full text of the Apache license version 2 can be found in /usr/share/common-licenses/Apache-2.0. debian/libglobus-scheduler-event-generator-doc.doc-base0000644000000000000000000000055411677260434020407 0ustar Document: globus-scheduler-event-generator Title: Debian globus-scheduler-event-generator Manual Author: Globus Alliance Abstract: The Globus toolkit, Scheduler Event Generator Section: Programming Format: HTML Index: /usr/share/doc/libglobus-scheduler-event-generator-dev/html/index.html Files: /usr/share/doc/libglobus-scheduler-event-generator-dev/html/*.html debian/compat0000644000000000000000000000000211677260434010376 0ustar 5 debian/changelog0000644000000000000000000000507712263541223011051 0ustar globus-scheduler-event-generator (4.7-4) unstable; urgency=medium * source default file from init script (Closes: #733999) * Fix logfile location -- Mattias Ellert Wed, 08 Jan 2014 14:45:11 +0100 globus-scheduler-event-generator (4.7-3) unstable; urgency=low * Implement Multi-Arch support * Split dbg package for Multi-Arch -- Mattias Ellert Mon, 11 Nov 2013 14:51:07 +0100 globus-scheduler-event-generator (4.7-2) unstable; urgency=low * Add arm64 to the list of 64 bit architectures -- Mattias Ellert Sun, 26 May 2013 23:34:48 +0200 globus-scheduler-event-generator (4.7-1) unstable; urgency=low * Update to Globus Toolkit 5.2.3 -- Mattias Ellert Sun, 16 Dec 2012 19:13:27 +0100 globus-scheduler-event-generator (4.6-1) unstable; urgency=low * Update to Globus Toolkit 5.2.1 -- Mattias Ellert Sun, 29 Apr 2012 21:07:33 +0200 globus-scheduler-event-generator (4.4-2) unstable; urgency=low * Fix broken links in README file -- Mattias Ellert Tue, 24 Jan 2012 23:03:20 +0100 globus-scheduler-event-generator (4.4-1) unstable; urgency=low * Update to Globus Toolkit 5.2.0 * Drop patch globus-scheduler-event-generator.patch (fixed upstream) * Make doc package architecture independent -- Mattias Ellert Fri, 30 Dec 2011 07:58:36 +0100 globus-scheduler-event-generator (2.1-5) unstable; urgency=low * Use system jquery script -- Mattias Ellert Tue, 07 Jun 2011 06:25:21 +0200 globus-scheduler-event-generator (2.1-4) unstable; urgency=low * Add README file * Use new doxygen-latex build dependency (Closes: #616248) -- Mattias Ellert Wed, 27 Apr 2011 07:28:58 +0200 globus-scheduler-event-generator (2.1-3) unstable; urgency=low * Converting to package format 3.0 (quilt) * Add new build dependency on texlive-font-utils due to changes in texlive packaging (epstopdf moved there) (Closes: #583047) -- Mattias Ellert Fri, 04 Jun 2010 04:43:30 +0200 globus-scheduler-event-generator (2.1-2) unstable; urgency=low * Update to Globus Toolkit 5.0.0 * Add debug package -- Mattias Ellert Wed, 27 Jan 2010 22:27:14 +0100 globus-scheduler-event-generator (2.1-1) unstable; urgency=low * Initial release (Closes: #540273). -- Mattias Ellert Wed, 29 Jul 2009 19:06:11 +0200 debian/source/0000755000000000000000000000000011677260434010500 5ustar debian/source/format0000644000000000000000000000001411677260434011706 0ustar 3.0 (quilt) debian/libglobus-scheduler-event-generator0.shlibs0000644000000000000000000000012211677260434017522 0ustar libglobus_scheduler_event_generator 0 libglobus-scheduler-event-generator0 (>= 4)