Name: rainbow-GW-helper Version: 0.8 Release: 2%{?dist} Summary: Rainbow (ARC in the Cloud) Gateway Helper service Group: System Environment/Daemons License: ASL 2.0 URL: http://trac.grid.org.ua/repos/workarea/rainbow/rainbow-GW-helper # The source was created from a svn checkout # svn export http://trac.grid.org.ua/repos/workarea/rainbow rainbow-GW-helper # tar -z -c -f rainbow-GW-helper.tar.gz rainbow-GW-helper Source0: rainbow-GW-helper.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %if %{?rhel}%{!?rhel:0} <= 6 Requires: xinetd %endif Requires: nmap Requires: iputils Requires: iproute Requires: dhcp Requires: iptables Obsoletes: rainbow-nethelper >= 0.1 %global _unitdir /usr/lib/systemd/system %description Rainbow (ARC in the Cloud) framework is aimed to run virtual machines as grid jobs in the Nordugrid ARC ennvironment. This package provides Gateway Helper service for Rainbow. %prep %setup -q -n rainbow-GW-helper %if %{?rhel}%{!?rhel:0} <= 5 patch -p0 < regression/el5.patch %endif %build # nothing to build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_sysconfdir} mkdir -p %{buildroot}%{_libexecdir}/rainbow mkdir -p %{buildroot}%{_localstatedir}/spool/rainbow-helper sed -e '/RAINBOW_STATEDIR=/s!=.*!=%{_localstatedir}/spool/rainbow-helper!' \ -e '/RAINBOW_LIBEXEC=/s!=.*!=%{_libexecdir}/rainbow!' \ rainbow-GW-helper/rainbow-helper.conf > %{buildroot}/%{_sysconfdir}/rainbow-helper.conf install -pm 644 rainbow-GW-helper/libdhcpd.sh \ rainbow-GW-helper/libiptables.sh \ rainbow-GW-helper/libmail.sh \ %{buildroot}%{_libexecdir}/rainbow sed '/RAINBOW_CONFIG=/s!=.*!=%{_sysconfdir}/rainbow-helper.conf!' \ rainbow-GW-helper/rainbow-gwhelper > %{buildroot}%{_libexecdir}/rainbow/rainbow-gwhelper chmod 755 %{buildroot}%{_libexecdir}/rainbow/rainbow-gwhelper %if %{?rhel}%{!?rhel:0} <= 6 mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d sed 's!server =.*!server = %{_libexecdir}/rainbow/rainbow-gwhelper!' \ rainbow-GW-helper/gwhelper.xinetd > %{buildroot}/%{_sysconfdir}/xinetd.d/rainbow-gwhelper %else mkdir -p %{buildroot}%{_unitdir} sed '/^ExecStart=/s!^/usr/libexec!%{_libexecdir}!' \ "rainbow-GW-helper/rainbow-gwhelper@.service" > '%{buildroot}%{_unitdir}/rainbow-gwhelper@.service' install -pm 644 rainbow-GW-helper/rainbow-gwhelper.socket %{buildroot}%{_unitdir} %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %dir %{_libexecdir}/rainbow %{_libexecdir}/rainbow/rainbow-gwhelper %{_libexecdir}/rainbow/libdhcpd.sh %{_libexecdir}/rainbow/libiptables.sh %{_libexecdir}/rainbow/libmail.sh %config(noreplace) %{_sysconfdir}/rainbow-helper.conf %dir %{_localstatedir}/spool/rainbow-helper %if %{?rhel}%{!?rhel:0} <= 6 %config %{_sysconfdir}/xinetd.d/rainbow-gwhelper %else %{_unitdir}/rainbow-gwhelper@.service %{_unitdir}/rainbow-gwhelper.socket %post systemctl daemon-reload %endif %changelog * Mon May 25 2015 Andrii Salnikov 0.8-2 - failed to test RDP port with 'echo|nc', reimplemented via nmap * Sun May 24 2015 Andrii Salnikov 0.8-1 - systemd support for EL7 gateway - minor fix to support nmap-nc (no -z option support) in EL7 * Thu Jul 3 2014 Andrii Salnikov 0.7-1 - multiple cookie creators support * Mon Apr 21 2014 Andrii Salnikov 0.6-2 - cookies authentication support * Wed Apr 2 2014 Andrii Salnikov 0.5-1 - write all parsed data to cache * Tue Apr 1 2014 Andrii Salnikov 0.4-4 - notification emails sending support - EL5 mail -r regression patch * Fri Mar 28 2014 Andrii Salnikov 0.3-1 - spec fixes to apply regression patches - libiptables EL5 regression patch * Fri Mar 28 2014 Andrii Salnikov 0.2-4 - libdhcp fixed to allow regexes to work in BASH 3.2 on EL5 * Sun Feb 23 2014 Andrii Salnikov 0.2-3 - DHCP static leases support - DHCP parser cache support - Deployment bug fixes * Sat Feb 22 2014 Andrii Salnikov 0.1-1 - Rainbow Gateway Helper service - dynamic replacement for old Nethelper