From 101511ac3766e4acbf846197dceae54ac385050a Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Aug 14 2016 11:38:00 +0000 Subject: Revert "Retire packages without systemd support, See FESCo ticket 1605" This reverts commit 2c65f30616b2724554af356c67cf6a581273cb42. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f6a3a77 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/*.tar.gz diff --git a/GLOBUS-GRAM5 b/GLOBUS-GRAM5 new file mode 100644 index 0000000..8dce6d2 --- /dev/null +++ b/GLOBUS-GRAM5 @@ -0,0 +1,28 @@ +This package is part of the GRAM5 component +of the Globus Toolkit. For more information visit: + +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/ + +Key Concepts: +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/key/ + +Admin Guide: +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/admin/ + +User's Guide: +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/user/ + +Developer's Guide: +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/developer/ + +Release Notes: +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/rn/ + +Public Interface Guide: +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/pi/ + +Quality Profile: +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/qp/ + +Migrating Guide: +http://toolkit.globus.org/toolkit/docs/latest-stable/gram5/mig/ diff --git a/dead.package b/dead.package deleted file mode 100644 index 1186b4b..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Retire packages without systemd support, See FESCo ticket 1605 diff --git a/globus-gatekeeper b/globus-gatekeeper new file mode 100644 index 0000000..d7655c5 --- /dev/null +++ b/globus-gatekeeper @@ -0,0 +1,187 @@ +#!/bin/bash + +# globus-gatekeeper +# +# chkconfig: - 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-Stop: 0 1 2 3 4 5 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. + +progname=globus-gatekeeper +prog=/usr/sbin/${progname} + +if [ -r /etc/sysconfig/globus-gatekeeper ] ; then + . /etc/sysconfig/globus-gatekeeper +fi + +test -f ${prog} || exit 0 + +lockfile=/var/lock/subsys/${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 diff --git a/globus-gatekeeper.README b/globus-gatekeeper.README new file mode 100644 index 0000000..09b7549 --- /dev/null +++ b/globus-gatekeeper.README @@ -0,0 +1,93 @@ +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-lsf-setup-poll + - globus-gram-job-manager-lsf-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 + - globus-gram-job-manager-slurm + +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 + +To start the gatekeeper service, run + + service globus-gatekeeper start + +To start the scheduler event generator service (if needed), run + + service globus-scheduler-event-generator start + +To make the services start automatically at boot, run + + chkconfig globus-gatekeeper on + chkconfig globus-scheduler-event-generator on + + +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. diff --git a/globus-gatekeeper.spec b/globus-gatekeeper.spec new file mode 100644 index 0000000..3d7046a --- /dev/null +++ b/globus-gatekeeper.spec @@ -0,0 +1,218 @@ +%global _hardened_build 1 + +%{!?_initddir: %global _initddir %{_initrddir}} + +%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} + +Name: globus-gatekeeper +%global _name %(tr - _ <<< %{name}) +Version: 10.10 +Release: 3%{?dist} +Summary: Globus Toolkit - Globus Gatekeeper + +Group: Applications/Internet +License: ASL 2.0 +URL: http://toolkit.globus.org/ +Source: http://toolkit.globus.org/ftppub/gt6/packages/%{_name}-%{version}.tar.gz +Source1: %{name} +Source2: %{name}.README +# README file +Source8: GLOBUS-GRAM5 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires(post): chkconfig +Requires(preun): chkconfig +Requires(preun): initscripts +Requires(postun): initscripts +BuildRequires: globus-common-devel >= 15 +BuildRequires: globus-gss-assist-devel >= 8 +BuildRequires: globus-gssapi-gsi-devel >= 9 +BuildRequires: openssl-devel + +%description +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 %{name} package contains: +Globus Gatekeeper + +%prep +%setup -q -n %{_name}-%{version} + +%build +# Reduce overlinking +export LDFLAGS="-Wl,--as-needed -Wl,-z,defs %{?__global_ldflags}" + +%configure --disable-static \ + --includedir='${prefix}/include/globus' \ + --libexecdir='${datadir}/globus' \ + --docdir=%{_pkgdocdir} \ + --with-initscript-config-path=/etc/sysconfig/%{name} \ + --with-lockfile-path='${localstatedir}/lock/subsys/%{name}' + +# Reduce overlinking +sed 's!CC \(.*-shared\) !CC \\\${wl}--as-needed \1 !' -i libtool + +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + +# Remove start-up script +rm -rf %{buildroot}%{_sysconfdir}/init.d + +# Install start-up script +mkdir -p %{buildroot}%{_initrddir} +install -p %{SOURCE1} %{buildroot}%{_initrddir} + +# Install post installation instructions +install -m 644 -p %{SOURCE2} %{buildroot}%{_pkgdocdir}/README.Fedora + +# Install README file +install -m 644 -p %{SOURCE8} %{buildroot}%{_pkgdocdir}/README + +# Remove license file from pkgdocdir if licensedir is used +%{?_licensedir: rm %{buildroot}%{_pkgdocdir}/GLOBUS_LICENSE} + +mkdir -p %{buildroot}/etc/grid-services +mkdir -p %{buildroot}/etc/grid-services/available + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -eq 1 ]; then + /sbin/chkconfig --add %{name} +fi + +%preun +if [ $1 -eq 0 ]; then + /sbin/chkconfig --del %{name} +fi + +%postun +if [ $1 -ge 1 ]; then + /sbin/service %{name} condrestart > /dev/null 2>&1 || : +fi + +%files +%{_sbindir}/globus-gatekeeper +%{_sbindir}/globus-k5 +%{_initddir}/%{name} +%config(noreplace) %{_sysconfdir}/sysconfig/%{name} +%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} +%dir %{_sysconfdir}/grid-services +%dir %{_sysconfdir}/grid-services/available +%doc %{_mandir}/man8/globus-gatekeeper.8* +%doc %{_mandir}/man8/globus-k5.8* +%dir %{_pkgdocdir} +%doc %{_pkgdocdir}/README +%{!?_licensedir: %doc %{_pkgdocdir}/GLOBUS_LICENSE} +%{?_licensedir: %license GLOBUS_LICENSE} +%doc %{_pkgdocdir}/README.Fedora +%{!?_licensedir: %doc %{_pkgdocdir}/GLOBUS_LICENSE} +%{?_licensedir: %license GLOBUS_LICENSE} + +%changelog +* Wed Feb 03 2016 Fedora Release Engineering - 10.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 10.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Apr 08 2015 Mattias Ellert - 10.10-1 +- GT6 update + +* Fri Jan 23 2015 Mattias Ellert - 10.9-2 +- Implement updated license packaging guidelines + +* Thu Nov 13 2014 Mattias Ellert - 10.9-1 +- GT6 update + +* Sun Oct 26 2014 Mattias Ellert - 10.8-1 +- GT6 update + +* Fri Sep 12 2014 Mattias Ellert - 10.7-1 +- Update to Globus Toolkit 6.0 +- Drop GPT build system and GPT packaging metadata +- Activate hardening flags + +* Sat Aug 16 2014 Fedora Release Engineering - 9.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 9.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 27 2014 Brent Baude - 9.15-2 +- Replace arch def of ppc64 with power64 macro for ppc64le enablement + +* Thu Nov 07 2013 Mattias Ellert - 9.15-1 +- Update to Globus Toolkit 5.2.5 +- Drop patch globus-gatekeeper-ac.patch (fixed upstream) + +* Sat Aug 03 2013 Fedora Release Engineering - 9.14-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Jul 28 2013 Mattias Ellert - 9.14-5 +- Implement updated packaging guidelines + +* Tue May 21 2013 Mattias Ellert - 9.14-4 +- Add aarch64 to the list of 64 bit platforms +- Don't use AM_CONFIG_HEADER (automake 1.13) + +* Wed Feb 13 2013 Fedora Release Engineering - 9.14-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Dec 06 2012 Mattias Ellert - 9.14-2 +- Specfile clean-up + +* Sun Jul 22 2012 Mattias Ellert - 9.14-1 +- Update to Globus Toolkit 5.2.2 +- Drop patch globus-gatekeeper-porting.patch (fixed upstream) + +* Thu Jul 19 2012 Fedora Release Engineering - 9.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Apr 28 2012 Mattias Ellert - 9.11-1 +- Update to Globus Toolkit 5.2.1 +- Drop patch globus-gatekeeper-deps.patch (fixed upstream) + +* Thu Feb 02 2012 Mattias Ellert - 9.6-3 +- Fix start-up script + +* Wed Jan 18 2012 Mattias Ellert - 9.6-2 +- Portability fixes +- Fix broken links in README file + +* Thu Dec 15 2011 Mattias Ellert - 9.6-1 +- Update to Globus Toolkit 5.2.0 + +* Mon Apr 25 2011 Mattias Ellert - 5.7-4 +- Add README file + +* Tue Apr 19 2011 Mattias Ellert - 5.7-3 +- Add start-up script and README.Fedora file + +* Mon Feb 28 2011 Mattias Ellert - 5.7-2 +- Fix typos in the setup patch + +* Thu Feb 24 2011 Mattias Ellert - 5.7-1 +- Update to Globus Toolkit 5.0.3 + +* Tue Feb 08 2011 Fedora Release Engineering - 5.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jul 17 2010 Mattias Ellert - 5.5-2 +- Simplify directory ownership + +* Wed Apr 14 2010 Mattias Ellert - 5.5-1 +- Update to Globus Toolkit 5.0.1 + +* Sat Jan 23 2010 Mattias Ellert - 5.3-1 +- Update to Globus Toolkit 5.0.0 + +* Wed Jul 29 2009 Mattias Ellert - 5.0-1 +- Autogenerated diff --git a/sources b/sources new file mode 100644 index 0000000..7aa0cc0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +58166e3d67c1f07dccdfaff29f5d993b globus_gatekeeper-10.10.tar.gz