[glite-px-proxyrenewal] Initial import (#892698).

František Dvořák valtri at fedoraproject.org
Wed Aug 28 18:52:04 UTC 2013


commit f2ccfd8312676e777df090ff103d424f87be42ab
Author: František Dvořák <valtri at civ.zcu.cz>
Date:   Wed Aug 28 20:52:58 2013 +0200

    Initial import (#892698).

 .gitignore                 |    1 +
 daemon-location.patch      |   59 +++++++++++++++++++
 glite-px-proxyrenewal.spec |  137 ++++++++++++++++++++++++++++++++++++++++++++
 parallel.patch             |   25 ++++++++
 sources                    |    1 +
 5 files changed, 223 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f54c34f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glite-px-proxyrenewal-1.3.34.tar.gz
diff --git a/daemon-location.patch b/daemon-location.patch
new file mode 100644
index 0000000..f4b226d
--- /dev/null
+++ b/daemon-location.patch
@@ -0,0 +1,59 @@
+commit 4f38d7c6d582c126b6ea67a7aca97348db22ac6a
+Author: František Dvořák <valtri at civ.zcu.cz>
+Date:   Sun Aug 25 23:27:08 2013 +0200
+
+    Move proxyrenewal daemon from bin to sbin (Fedora review #892698).
+
+diff --git a/org.glite.px.proxyrenewal/Makefile b/org.glite.px.proxyrenewal/Makefile
+index 8dc55a8..343294e 100644
+--- a/org.glite.px.proxyrenewal/Makefile
++++ b/org.glite.px.proxyrenewal/Makefile
+@@ -221,7 +221,8 @@ examples: ${EXAMPLES}
+ install:
+ 	-mkdir -p ${DESTDIR}${PREFIX}${prefix}/bin ${DESTDIR}${PREFIX}${prefix}/sbin ${DESTDIR}${PREFIX}${prefix}/${libdir} ${DESTDIR}${PREFIX}${prefix}/include/glite/security/proxyrenewal ${DESTDIR}${PREFIX}${prefix}/share/man/man1 ${DESTDIR}${PREFIX}${prefix}/share/man/man8 ${DESTDIR}${PREFIX}${sysdefaultdir} ${DESTDIR}${PREFIX}${prefix}/share/doc/${package}-${version}
+ 	${INSTALL} -m 755 ${lib_LTLIBRARIES} ${DESTDIR}${PREFIX}${prefix}/${libdir}
+-	${INSTALL} -m 755 ${DAEMON} ${CLIENT} ${DESTDIR}${PREFIX}${prefix}/bin
++	${INSTALL} -m 755 ${CLIENT} ${DESTDIR}${PREFIX}${prefix}/bin
++	${INSTALL} -m 755 ${DAEMON} ${DESTDIR}${PREFIX}${prefix}/sbin
+ 	${INSTALL} -m 755 setup ${DESTDIR}${PREFIX}${prefix}/sbin/glite-proxy-setup
+ 	cd ${top_srcdir}/interface && ${INSTALL} -m 644 renewal.h renewal_core.h ${DESTDIR}${PREFIX}${prefix}/include/glite/security/proxyrenewal
+ 	${INSTALL} -m 644 ${MAN1_GZ} ${DESTDIR}${PREFIX}${prefix}/share/man/man1
+diff --git a/org.glite.px.proxyrenewal/config/setup b/org.glite.px.proxyrenewal/config/setup
+index 0e2280a..b451c05 100755
+--- a/org.glite.px.proxyrenewal/config/setup
++++ b/org.glite.px.proxyrenewal/config/setup
+@@ -150,7 +150,7 @@ fi
+ # ==== startup ====
+ 
+ if test "$setup_startup" = "1"; then
+-	if test ! -x $GLITE_LOCATION/bin/glite-proxy-renewd; then
++	if test ! -x $GLITE_LOCATION/sbin/glite-proxy-renewd; then
+ 		echo "$NAME: ERROR: glite-proxy-renewd not installed"
+ 		startup_error=1
+ 	fi
+diff --git a/org.glite.px.proxyrenewal/config/startup b/org.glite.px.proxyrenewal/config/startup
+index 09c24f5..2c68eb0 100755
+--- a/org.glite.px.proxyrenewal/config/startup
++++ b/org.glite.px.proxyrenewal/config/startup
+@@ -81,7 +81,7 @@ start()
+ 	fi
+ 	
+ 	su - $GLITE_USER -c "VOMS_USERCONF=$user_voms_config \
+-		$GLITE_LOCATION/bin/glite-proxy-renewd \
++		$GLITE_LOCATION/sbin/glite-proxy-renewd \
+ 		-r $PROXY_REPOSITORY $creds -A $GLITE_PROXY_RENEWD_OPTIONS"
+ 
+ 	if [ $? -eq 0 ]; then
+diff --git a/org.glite.px.proxyrenewal/config/systemd.proxy-renewd b/org.glite.px.proxyrenewal/config/systemd.proxy-renewd
+index e39ffdc..7ecef42 100644
+--- a/org.glite.px.proxyrenewal/config/systemd.proxy-renewd
++++ b/org.glite.px.proxyrenewal/config/systemd.proxy-renewd
+@@ -15,7 +15,7 @@ EnvironmentFile=-/etc/profile.d/grid-env.sh
+ EnvironmentFile=-/etc/sysconfig/glite-px
+ ExecStartPre=/usr/bin/touch /tmp/renewal_vomses
+ ExecStartPre=/usr/bin/chmod 644 /tmp/renewal_vomses
+-ExecStart=/usr/bin/glite-proxy-renewd -A $GLITE_PROXY_RENEWD_OPTIONS
++ExecStart=/usr/sbin/glite-proxy-renewd -A $GLITE_PROXY_RENEWD_OPTIONS
+ 
+ [Install]
+ WantedBy=multi-user.target
diff --git a/glite-px-proxyrenewal.spec b/glite-px-proxyrenewal.spec
new file mode 100644
index 0000000..e55215f
--- /dev/null
+++ b/glite-px-proxyrenewal.spec
@@ -0,0 +1,137 @@
+Name:           glite-px-proxyrenewal
+Version:        1.3.34
+Release:        1%{?dist}
+Summary:        gLite proxyrenewal renews existing proxy certificates for grid users
+
+License:        ASL 2.0
+Url:            http://glite.cern.ch
+Source:         http://scientific.zcu.cz/emi/emi.px.proxyrenewal/%{name}-%{version}.tar.gz
+# https://github.com/CESNET/proxyrenewal/commit/4f38d7c6d582c126b6ea67a7aca97348db22ac6a
+Patch0:         daemon-location.patch
+# https://github.com/CESNET/proxyrenewal/commit/dce1f3a3c8e888ed2ba359fe2c7b63da87c76de1#diff-1
+Patch1:         parallel.patch
+
+BuildRequires:  globus-gssapi-gsi-devel
+BuildRequires:  libtool
+BuildRequires:  myproxy-devel
+BuildRequires:  perl
+BuildRequires:  perl(Getopt::Long)
+BuildRequires:  perl(POSIX)
+BuildRequires:  pkgconfig
+BuildRequires:  systemd
+BuildRequires:  voms-devel
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
+Provides:       glite-px-proxyrenewal-progs = %{version}-%{release}
+
+%description
+The daemon is responsible for secure and controlled way of periodical renewal
+of user proxy certificates. Its primary goal is to support long-time jobs
+running on the grid.
+
+
+%package        libs
+Summary:        C/C++ library for gLite proxyrenewal
+
+%description    libs
+This package contains C/C++ library for gLite proxyrenewal.
+
+
+%package        devel
+Summary:        Development files for gLite proxyrenewal library
+Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
+
+%description    devel
+This package contains development libraries and header files for gLite
+proxyrenewal library.
+
+
+%prep
+%setup -q
+%patch0 -p2
+%patch1 -p2
+
+
+%build
+perl ./configure --root=/ --prefix=%{_prefix} --libdir=%{_lib} --module px.proxyrenewal
+CFLAGS="%{?optflags}" LDFLAGS="%{?__global_ldflags}" make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+# documentation installed by %%doc
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
+rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
+mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/glite
+mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/spool/glite-renewd
+
+
+%pre
+getent group glite >/dev/null || groupadd -r glite
+getent passwd glite >/dev/null || useradd -r -g glite -d %{_localstatedir}/lib/glite -c "gLite user" glite
+exit 0
+
+
+%post
+if [ $1 -eq 1 ] ; then
+    # Initial installation
+    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+fi
+
+
+%preun
+if [ $1 -eq 0 ] ; then
+    # Package removal, not upgrade
+    /bin/systemctl --no-reload disable glite-proxy-renewd.service > /dev/null 2>&1 || :
+    /bin/systemctl stop glite-proxy-renewd.service > /dev/null 2>&1 || :
+fi
+
+
+%postun
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+    # Package upgrade, not uninstall
+    /bin/systemctl try-restart glite-proxy-renewd.service >/dev/null 2>&1 || :
+fi
+
+
+%post libs -p /sbin/ldconfig
+
+
+%postun libs -p /sbin/ldconfig
+
+
+%files
+%dir %attr(0755, glite, glite) %{_localstatedir}/lib/glite
+%dir %attr(0700, glite, glite) %{_localstatedir}/spool/glite-renewd
+%doc LICENSE project/ChangeLog README config/glite-px
+%config(noreplace missingok) %{_sysconfdir}/sysconfig/glite-px
+%{_unitdir}/glite-proxy-renewd.service
+%{_bindir}/glite-proxy-renew
+%{_sbindir}/glite-proxy-renewd
+%{_sbindir}/glite-proxy-setup
+%{_mandir}/man1/glite-proxy-renew.1.gz
+%{_mandir}/man8/glite-proxy-renewd.8.gz
+
+%files libs
+%doc LICENSE project/ChangeLog
+%{_libdir}/libglite_security_proxyrenewal.so.1
+%{_libdir}/libglite_security_proxyrenewal.so.1.*
+%{_libdir}/libglite_security_proxyrenewal_core.so.1
+%{_libdir}/libglite_security_proxyrenewal_core.so.1.*
+
+%files devel
+%dir %{_includedir}/glite/
+%dir %{_includedir}/glite/security/
+%dir %{_includedir}/glite/security/proxyrenewal/
+%{_includedir}/glite/security/proxyrenewal/*.h
+%{_libdir}/libglite_security_proxyrenewal.so
+%{_libdir}/libglite_security_proxyrenewal_core.so
+
+
+%changelog
+* Mon Aug 28 2013 František Dvořák <valtri at civ.zcu.cz> - 1.3.34-1
+- Initial package
diff --git a/parallel.patch b/parallel.patch
new file mode 100644
index 0000000..e581f40
--- /dev/null
+++ b/parallel.patch
@@ -0,0 +1,25 @@
+commit dce1f3a3c8e888ed2ba359fe2c7b63da87c76de1
+Author: František Dvořák <valtri at civ.zcu.cz>
+Date:   Sun Aug 25 23:11:54 2013 +0200
+
+    Support parallel builds and enable it in rpm packaging.
+
+diff --git a/org.glite.px.proxyrenewal/Makefile b/org.glite.px.proxyrenewal/Makefile
+index 7c4c961..8dc55a8 100644
+--- a/org.glite.px.proxyrenewal/Makefile
++++ b/org.glite.px.proxyrenewal/Makefile
+@@ -204,9 +204,11 @@ ${THRLIBOBJ} ${LIB_CORE_THR_OBJS}: %.thr.o: %.c
+ ${EXAMPLES}: %: %.o
+ 	${LINK} -o $@ $< ${default_libcore}
+ 
+-${MAN_GZ}: ${MAN}
+-	cp $? .
+-	gzip -9 -f $(notdir $?)
++%.1.gz: %.1
++	gzip -9 -f -c $< > $@
++
++%.8.gz: %.8
++	gzip -9 -f -c $< > $@
+ 
+ stage: compile
+ 	$(MAKE) install PREFIX=${stagedir} staging=1
diff --git a/sources b/sources
index e69de29..d69f110 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d4fc009fd69012c4c6117524540ff32e  glite-px-proxyrenewal-1.3.34.tar.gz


More information about the scm-commits mailing list