debian/0000755000000000000000000000000012241137431007164 5ustar debian/control0000644000000000000000000000326412240667226010605 0ustar Source: globus-gatekeeper Priority: optional Maintainer: Mattias Ellert Build-Depends: debhelper (>= 5), autotools-dev, grid-packaging-tools (>= 3.4), globus-core (>= 8.16), libglobus-common-dev (>= 14.10), libglobus-gssapi-gsi-dev (>= 10.10), libglobus-gss-assist-dev (>= 9), libssl-dev Standards-Version: 3.9.4 Section: net Vcs-Browser: http://svn.nordugrid.org/trac/packaging/browser/debian/globus-gatekeeper Vcs-Svn: http://svn.nordugrid.org/repos/packaging/debian/globus-gatekeeper Homepage: http://www.globus.org/ Package: globus-gatekeeper Section: net Architecture: any Multi-Arch: foreign Depends: ${shlibs:Depends}, ${misc:Depends} Description: Globus Toolkit - Globus Gatekeeper 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-gatekeeper package contains: Globus Gatekeeper Package: globus-gatekeeper-dbg Section: debug Priority: extra Architecture: any Multi-Arch: foreign Depends: globus-gatekeeper (= ${binary:Version}), ${misc:Depends} Description: Globus Toolkit - Globus Gatekeeper 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-gatekeeper-dbg package contains: Globus Gatekeeper Debug Symbols debian/rules0000755000000000000000000000647112240164236010256 0ustar #!/usr/bin/make -f # -*- makefile -*- name = globus-gatekeeper _name = globus_gatekeeper 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/$(name) 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) \ --with-docdir=$(_docdir) \ --with-initscript-config-path=/etc/default/globus-gatekeeper \ --with-lockfile-path='${localstatedir}/lock/globus-gatekeeper' # 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: 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 -f globus_gatekeeper_config.h.in 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 start-up script rm -rf $(INSTALLDIR)/etc/init.d sed '/init\.d/d' -i $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_pgm.filelist echo >> $(INSTALLDIR)/etc/default/$(name) echo RUN=no >> $(INSTALLDIR)/etc/default/$(name) # Remove installed license file rm -f $(INSTALLDIR)$(_docdir)/GLOBUS_LICENSE sed /GLOBUS_LICENSE/d \ -i $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_doc.filelist mkdir -p $(INSTALLDIR)/etc/grid-services mkdir -p $(INSTALLDIR)/etc/grid-services/available # Generate package filelists cat $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_pgm.filelist \ $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_data.filelist \ $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_doc.filelist \ | sed -e s!^!debian/tmp$(_prefix)! -e s!$(_prefix)/etc!/etc! \ > debian/$(name).install echo debian/tmp/etc/logrotate.d/$(name) >> debian/$(name).install echo debian/tmp/etc/grid-services >> debian/$(name).install binary: binary-arch binary-indep binary-arch: install dh_testdir dh_testroot dh_installdocs debian/README dh_installchangelogs dh_install --fail-missing dh_installman dh_installinit dh_link dh_strip --dbg-package=$(name)-dbg dh_compress dh_fixperms dh_perl dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary-indep: .PHONY: binary binary-arch binary-indep build build-arch build-indep clean configure install debian/README0000644000000000000000000000145111705715431010053 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/copyright0000644000000000000000000000117712240163375011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: globus_gatekeeper Upstream-Contact: http://www.globus.org/ Source: http://www.globus.org/ftppub/gt5/5.2/5.2.5/packages/src/globus_gatekeeper-9.15.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/README.Debian0000644000000000000000000000560211710567131011234 0ustar How to set up a gatekeeper with a GRAM job manager ================================================== The following commands should be executed as root unless otherwise specified. Enabling a service configuration -------------------------------- The gatekeeper service needs to have a GRAM job manager configured that runs the tasks that the gatekeeper accepts. In order to configure a job manager first install configuration package corresponding to your local resource management system (LRMS). For a small test setup without an LRMS use a "fork" service. The following configuration packages exists to choose from: - globus-gram-job-manager-condor - globus-gram-job-manager-fork-setup-poll - globus-gram-job-manager-fork-setup-seg - globus-gram-job-manager-pbs-setup-poll - globus-gram-job-manager-pbs-setup-seg - globus-gram-job-manager-sge-setup-poll - globus-gram-job-manager-sge-setup-seg For many LRMSs you have a choice between a setup the keeps track of the state of the submitted jobs by polling the LRMS's queuing system, or a setup that uses the Globus Scheduler Event Generator service. After installing one of the packages above, enable the service you want to use by running globus-gatekeeper-admin -e [-n ] where is the type of service you want to run, and the optional is an name under which the service will be available. The list of available service types depends on what configuration packages you have installed and can be found by listing the /etc/grid-services/available directory. If the name option is omitted the name will be the same as the type. You can run more than one service in the same gatekeeper as long they have different names. If you want to have a defult service configured this service should have the name "jobmanager". If you use one of the setups that uses the Globus Scheduler Event Generator services you must also activate this service. globus-scheduler-event-generator-admin -e Where is the LRMS type for which events should be tracked. The list of available LRMS types depends on what configuration packages you have installed and can be found by listing the /etc/globus/scheduler-event-generator/available/ directory. Starting the service -------------------- Before starting the service make sure you have a host certificate and key installed in the right locations and with the right permissions. - /etc/grid-security/hostcert.pem - /etc/grid-security/hostkey.pem When the configuration is completed enable the service by changing RUN=no to RUN=yes in /etc/default/globus-gatekeeper. To start the service, run /etc/init.d/globus-gatekeeper start Testing the service ------------------- Athentication test against the new gatekeeper - as a non-root user with a valid user proxy, run globusrun -a -r where is the service's contact string. See "man globusrun" for details. debian/compat0000644000000000000000000000000211677272373010403 0ustar 5 debian/globus-gatekeeper.init0000644000000000000000000001317312003237663013467 0ustar #!/bin/bash # globus-gatekeeper # # chkconfig: 2345 20 80 # description: Authorize and execute a grid service ### BEGIN INIT INFO # Provides: globus-gatekeeper # Required-Start: $remote_fs $network $time # Required-Stop: $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Globus Gatekeeper # Description: The Globus Gatekeeper service authenticates network # connections using an SSL-based protocol and then # starts service instances on the remote user's behalf. # It is part of the Globus Toolkit(tm) ### END INIT INFO # Copyright 1999-2010 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. . /lib/lsb/init-functions progname=globus-gatekeeper prog=/usr/sbin/${progname} if [ -r /etc/default/globus-gatekeeper ] ; then . /etc/default/globus-gatekeeper fi if [ "x$RUN" != "xyes" ] ; then log_warning_msg "globus-gatekeeper disabled, please adjust the configuration to your needs " log_warning_msg "and then set RUN to 'yes' in /etc/default/globus-gatekeeper to enable it." log_warning_msg "See /usr/share/doc/globus-gatekeeper/README.Debian for details." exit 0 fi test -f ${prog} || exit 0 lockfile=/var/lock/${progname} GLOBUS_GATEKEEPER_PIDFILE="${GLOBUS_GATEKEEPER_PIDFILE:-/var/run/${progname}.pid}" GLOBUS_GATEKEEPER_PORT="${GLOBUS_GATEKEEPER_PORT:-2119}" start() { status > /dev/null rc=$? if [ $rc -eq 0 ]; then echo "$progname is already running" return 0 fi cert="${GLOBUS_GATEKEEPER_CERT_FILE:-/etc/grid-security/hostcert.pem}" if [ ! -f $cert ]; then echo "Error: Gatekeeper's certificate file ($cert) is missing." echo "Failed to start globus-gatekeeper" exit 6 fi key="${GLOBUS_GATEKEEPER_KEY_FILE:-/etc/grid-security/hostkey.pem}" if [ ! -f $key ]; then echo "Error: Gatekeeper's private key file is ($key) is missing." echo "Failed to start globus-gatekeeper" exit 6 fi if [ "${GLOBUS_GATEKEEPER_KERBEROS_ENABLED:-false}" = "true" ]; then kflag="-k" else kflag="" fi ${GLOBUS_GATEKEEPER_NICE_LEVEL:+nice -n "${GLOBUS_GATEKEEPER_NICE_LEVEL}"} \ ${prog} \ -pidfile "${GLOBUS_GATEKEEPER_PIDFILE}" \ ${GLOBUS_GATEKEEPER_LOG_FACILITY:+-lf "$GLOBUS_GATEKEEPER_LOG_FACILITY"} \ ${GLOBUS_GATEKEEPER_PORT:+-p "${GLOBUS_GATEKEEPER_PORT}"} \ ${GLOBUS_GATEKEEPER_LOG:+-l "${GLOBUS_GATEKEEPER_LOG}"} \ ${GLOBUS_GATEKEEPER_GRID_SERVICES:+-grid_services "${GLOBUS_GATEKEEPER_GRID_SERVICES}"} \ ${GLOBUS_GATEKEEPER_GRIDMAP:+-gridmap "${GLOBUS_GATEKEEPER_GRIDMAP}"} \ ${GLOBUS_GATEKEEPER_CERT_DIR:+-x509_cert_dir "${GLOBUS_GATEKEEPER_CERT_DIR}"} \ ${GLOBUS_GATEKEEPER_CERT_FILE:+-x509_user_cert "${GLOBUS_GATEKEEPER_CERT_FILE}"} \ ${GLOBUS_GATEKEEPER_KEY_FILE:+-x509_user_key "${GLOBUS_GATEKEEPER_KEY_FILE}"} \ $kflag \ ${GLOBUS_GATEKEEPER_KMAP:+-globuskmap "${GLOBUS_GATEKEEPER_KMAP}"} \ > /dev/null rc=$? if [ "$rc" = 0 ]; then echo "Started globus-gatekeeper" touch "$lockfile" else echo "Failed to start globus-gatekeeper" fi return $rc; } stop() { if test -f "${GLOBUS_GATEKEEPER_PIDFILE}"; then read pid < "${GLOBUS_GATEKEEPER_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 echo "Failed to stop globus-gatekeeper" return 1 else echo "Stopped globus-gatekeeper" fi fi fi rm -f "${GLOBUS_GATEKEEPER_PIDFILE}" rm -f "$lockfile" else echo "$progname is not running" return 0 fi } restart() { stop start } status() { if test -f "${GLOBUS_GATEKEEPER_PIDFILE}"; then read pid <"${GLOBUS_GATEKEEPER_PIDFILE}" 2>/dev/null if [ "$pid" -gt 0 ] 2> /dev/null; then if ps -p "$pid" > /dev/null; then echo "globus-gatekeeper is running (pid=$pid)" return 0 else echo "Stale PID file for globus-gatekeeper" return 1 fi fi elif test -f "${lockfile}"; then echo "Stale lock file for globus-gatekeeper" return 2 else echo "globus-gatekeeper is not running" 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/changelog0000644000000000000000000000646012240164553011050 0ustar globus-gatekeeper (9.15-1) unstable; urgency=low * Update to Globus Toolkit 5.2.5 * Drop patch globus-gatekeeper-ac.patch (fixed upstream) * Implement Multi-Arch support -- Mattias Ellert Mon, 11 Nov 2013 15:18:33 +0100 globus-gatekeeper (9.14-2) unstable; urgency=low * Add arm64 to the list of 64 bit architectures * Don't use AM_CONFIG_HEADER (automake 1.13) -- Mattias Ellert Mon, 27 May 2013 07:16:05 +0200 globus-gatekeeper (9.14-1) unstable; urgency=low * Update to Globus Toolkit 5.2.2 * Drop patch globus-gatekeeper-porting.patch (fixed upstream) -- Mattias Ellert Mon, 23 Jul 2012 13:19:57 +0200 globus-gatekeeper (9.11-1) unstable; urgency=low * Update to Globus Toolkit 5.2.1 * Drop patch globus-gatekeeper-deps.patch (fixed upstream) -- Mattias Ellert Sun, 29 Apr 2012 21:22:47 +0200 globus-gatekeeper (9.6-4) unstable; urgency=low * Fix start-up script -- Mattias Ellert Thu, 02 Feb 2012 20:27:51 +0100 globus-gatekeeper (9.6-3) unstable; urgency=low * debian/rules cleanup -- Mattias Ellert Tue, 24 Jan 2012 23:07:41 +0100 globus-gatekeeper (9.6-2) unstable; urgency=low * Portability fixes * Fix broken links in README file -- Mattias Ellert Thu, 19 Jan 2012 05:51:09 +0100 globus-gatekeeper (9.6-1) unstable; urgency=low * Update to Globus Toolkit 5.2.0 * Drop patch globus-gatekeeper.patch (fixed upstream) -- Mattias Ellert Fri, 30 Dec 2011 09:23:23 +0100 globus-gatekeeper (5.7-5) unstable; urgency=low * Fix typo in start-up script -- Mattias Ellert Fri, 29 Apr 2011 15:22:28 +0200 globus-gatekeeper (5.7-4) unstable; urgency=low * Add README file -- Mattias Ellert Wed, 27 Apr 2011 07:41:38 +0200 globus-gatekeeper (5.7-3) unstable; urgency=low * Add start-up script and README file -- Mattias Ellert Tue, 19 Apr 2011 22:03:47 +0200 globus-gatekeeper (5.7-2) unstable; urgency=low * Fix typos in setup patch -- Mattias Ellert Mon, 28 Feb 2011 14:09:53 +0100 globus-gatekeeper (5.7-1) unstable; urgency=low * Update to Globus Toolkit 5.0.3 -- Mattias Ellert Sat, 26 Feb 2011 17:21:26 +0100 globus-gatekeeper (5.5-2) unstable; urgency=low * Converting to package format 3.0 (quilt) -- Mattias Ellert Fri, 04 Jun 2010 04:43:29 +0200 globus-gatekeeper (5.5-1) unstable; urgency=low * Update to Globus Toolkit 5.0.1 -- Mattias Ellert Thu, 15 Apr 2010 18:20:48 +0200 globus-gatekeeper (5.3-1) unstable; urgency=low * Update to Globus Toolkit 5.0.0 * Add debug package -- Mattias Ellert Wed, 27 Jan 2010 22:54:36 +0100 globus-gatekeeper (5.0-2) unstable; urgency=low * Fix misspelled Depends (Closes: #540274). -- Mattias Ellert Sat, 29 Aug 2009 01:21:19 +0200 globus-gatekeeper (5.0-1) UNRELEASED; urgency=low * Initial release. -- Mattias Ellert Fri, 07 Aug 2009 14:13:01 +0200 debian/source/0000755000000000000000000000000011677272373010505 5ustar debian/source/format0000644000000000000000000000001411677272373011713 0ustar 3.0 (quilt)