cp -f gridsite-copy.cgi $(prefix)/sbin
cp -f ../CHANGES ../README ../INSTALL ../LICENSE ../VERSION \
$(prefix)/share/doc/gridsite-$(MINOR_VERSION)
- cp -f ../doc/*.html ../doc/*.conf ../doc/*.1 ../doc/*.8 ../doc/*.sh \
- ../doc/*.spec \
+ cp -f ../doc/index.html ../doc/*.conf ../doc/*.sh ../doc/*.spec \
$(prefix)/share/doc/gridsite-$(MINOR_VERSION)
- cp -f ../doc/*.1 $(prefix)/share/man/man1
- cp -f ../doc/*.8 $(prefix)/share/man/man8
- gzip -f $(prefix)/share/man/man1/*.1
- gzip -f $(prefix)/share/man/man8/*.8
+ for i in htcp.1 htfind.1 htll.1 htls.1 htmkdir.1 htmv.1 htping.1 \
+ htrm.1 urlencode.1 findproxyfile.1 ; do \
+ cp -f ../doc/$$i.html $(prefix)/share/doc/gridsite-$(MINOR_VERSION) ; \
+ cp -f ../doc/$$i $(prefix)/share/doc/gridsite-$(MINOR_VERSION) ; \
+ cp -f ../doc/$$i $(prefix)/share/man/man1 ; \
+ gzip -f $(prefix)/share/man/man1/$$i ; done
+ for i in mod_gridsite.8 gsexec.8 ; do \
+ cp -f ../doc/$$i.html $(prefix)/share/doc/gridsite-$(MINOR_VERSION) ; \
+ cp -f ../doc/$$i $(prefix)/share/doc/gridsite-$(MINOR_VERSION) ; \
+ cp -f ../doc/$$i $(prefix)/share/man/man8 ; \
+ gzip -f $(prefix)/share/man/man8/$$i ; done
cp -f htcp $(prefix)/bin
ln -sf htcp $(prefix)/bin/htls
ln -sf htcp $(prefix)/bin/htll
$(prefix)/share/man/man1 \
$(prefix)/share/man/man8 \
$(prefix)/share/doc/gridsite-$(MINOR_VERSION)
- for i in CHANGES README INSTALL LICENSE VERSION ; \
- do cp -f ../$$i $(prefix)/share/doc/gridsite-$(MINOR_VERSION)/$$i-services ; done
- for i in CHANGES README INSTALL LICENSE VERSION ; \
- do cp -f ../$$i $(prefix)/share/doc/gridsite-$(MINOR_VERSION)/$$i-commands ; done
- cp -f ../doc/*.1 ../doc/*.8 \
- ../doc/*.wsdl $(prefix)/share/doc/gridsite-$(MINOR_VERSION)
- cp -f ../doc/*.1 $(prefix)/share/man/man1
- cp -f ../doc/*.8 $(prefix)/share/man/man8
- gzip -f $(prefix)/share/man/man1/*.1
- gzip -f $(prefix)/share/man/man8/*.8
+ cp -f ../doc/*.wsdl $(prefix)/share/doc/gridsite-$(MINOR_VERSION)
+ for i in htproxyput.1 htproxytime.1 htproxyrenew.1 htproxydestroy.1 \
+ htproxyunixtime.1 ; do \
+ cp -f ../doc/$$i.html $(prefix)/share/doc/gridsite-$(MINOR_VERSION) ; \
+ cp -f ../doc/$$i $(prefix)/share/doc/gridsite-$(MINOR_VERSION) ; \
+ cp -f ../doc/$$i $(prefix)/share/man/man1 ; \
+ gzip -f $(prefix)/share/man/man1/$$i ; done
+ for i in gridsite-delegation.8 ; do \
+ cp -f ../doc/$$i.html $(prefix)/share/doc/gridsite-$(MINOR_VERSION) ; \
+ cp -f ../doc/$$i $(prefix)/share/doc/gridsite-$(MINOR_VERSION) ; \
+ cp -f ../doc/$$i $(prefix)/share/man/man8 ; \
+ gzip -f $(prefix)/share/man/man8/$$i ; done
cp -f htproxyput $(prefix)/bin
ln -sf htproxyput $(prefix)/bin/htproxydestroy
ln -sf htproxyput $(prefix)/bin/htproxytime
cp -f Makefile grst*.c htcp.c slashgrid.c slashgrid.init \
urlencode.c findproxyfile.c gaclexample.c mod_gridsite.c \
htproxyput.c grst_admin.h mod_ssl-private.h \
- gsexec.c gsexec.h gridsite-copy.c fuse-test.c gsoap-test.c \
+ gsexec.c gsexec.h gridsite-copy.c delegation.h \
roffit make-gridsite-spec \
Doxyfile doxygen.css doxyheader.html \
../dist/gridsite-$(PATCH_VERSION)/src
cp -f ../doc/*.html ../doc/*.1 ../doc/*.8 ../doc/*.conf ../doc/*.sh \
- ../doc/*.spec \
+ ../doc/*.spec ../doc/*.wsdl \
../dist/gridsite-$(PATCH_VERSION)/doc
cp -f ../interface/*.h \
../dist/gridsite-$(PATCH_VERSION)/interface
#!/bin/sh
-# test to see if fuse-devel (or fuse.h and libfuse) are installed
+# test to see if fuse-devel (or fuse.h and libfuse) is installed
#
cat <<EOF >fuse-test.c
#include <fuse.h>
make fuse-test
if [ $? = 0 ] ; then have_fuse=1 ; fi
+# test to see if gsoap-devel (or stdsoap2.h and libgsoapssl) is installed
+#
+cat <<EOF >gsoap-test.c
+#include <stdsoap2.h>
+#ifdef SOAP_BEGIN
+main() { return; }
+#endif
+EOF
+make GSOAPDIR=$GSOAPDIR gsoap-test
+if [ $? = 0 ] ; then have_gsoap=1 ; fi
+
cat <<EOF >gridsite.spec
#
# Autogenerated by make-gridsite-spec
cat <<EOF >>gridsite.spec
make prefix=\$RPM_BUILD_ROOT/%{prefix} \
GSOAPDIR=\$GSOAPDIR OPENSSL_FLAGS=\$OPENSSL_FLAGS \
- OPENSSL_LIBS=\$OPENSSL_LIBS FLAVOR_EXT=\$FLAVOR_EXT slashgrid
+ OPENSSL_LIBS=\$OPENSSL_LIBS FLAVOR_EXT=\$FLAVOR_EXT \
+ slashgrid
+
+EOF
+fi
+
+if [ $have_gsoap ] ; then
+cat <<EOF >>gridsite.spec
+make prefix=\$RPM_BUILD_ROOT/%{prefix} \
+ GSOAPDIR=\$GSOAPDIR OPENSSL_FLAGS=\$OPENSSL_FLAGS \
+ OPENSSL_LIBS=\$OPENSSL_LIBS FLAVOR_EXT=\$FLAVOR_EXT \
+ gridsite-delegation.cgi htproxyput
+
EOF
fi
mkdir -p \$RPM_BUILD_ROOT/etc/rc.d/init.d
make install-slashgrid prefix=\$RPM_BUILD_ROOT/%{prefix} \
- OPENSSL_FLAGS=\$OPENSSL_FLAGS \
+ GSOAPDIR=\$GSOAPDIR OPENSSL_FLAGS=\$OPENSSL_FLAGS \
+ OPENSSL_LIBS=\$OPENSSL_LIBS FLAVOR_EXT=\$FLAVOR_EXT
+EOF
+fi
+
+if [ $have_gsoap ] ; then
+
+cat <<EOF >>gridsite.spec
+
+make install-ws prefix=\$RPM_BUILD_ROOT/%{prefix} \
+ GSOAPDIR=$GSOAPDIR OPENSSL_FLAGS=\$OPENSSL_FLAGS \
OPENSSL_LIBS=\$OPENSSL_LIBS FLAVOR_EXT=\$FLAVOR_EXT
EOF
fi
fi
+if [ $have_gsoap ] ; then
+
+cat <<EOF >>gridsite.spec
+%package services
+Group: Applications/Internet
+Summary: GridSite WS gridsite-delegation.cgi
+
+%description services
+GridSite WS delegation service, gridsite-delegation.cgi
+
+%files services
+%attr(-, root, root) %{prefix}/sbin/gridsite-delegation.cgi
+%attr(-, root, root) %{prefix}/share/man/man8/gridsite-delegation.8.gz
+%attr(-, root, root) %{prefix}/share/doc/gridsite-${MINOR_VERSION:-1.x}/delegation-1.1.0.wsdl
+%attr(-, root, root) %{prefix}/share/doc/gridsite-${MINOR_VERSION:-1.x}/gridsite-delegation.8
+
+%package service-clients
+Group: Applications/Internet
+Summary: GridSite WS htproxyput
+Requires: curl, gridsite-shared
+
+%description service-clients
+GridSite WS delegation client, htproxyput
+
+See http://www.gridsite.org/ for details.
+
+%files service-clients
+%attr(-, root, root) %{prefix}/bin/htproxyput
+%attr(-, root, root) %{prefix}/bin/htproxydestroy
+%attr(-, root, root) %{prefix}/bin/htproxytime
+%attr(-, root, root) %{prefix}/bin/htproxyunixtime
+%attr(-, root, root) %{prefix}/bin/htproxyrenew
+%attr(-, root, root) %{prefix}/share/man/man1/htproxyput.1.gz
+%attr(-, root, root) %{prefix}/share/man/man1/htproxydestroy.1.gz
+%attr(-, root, root) %{prefix}/share/man/man1/htproxytime.1.gz
+%attr(-, root, root) %{prefix}/share/man/man1/htproxyunixtime.1.gz
+%attr(-, root, root) %{prefix}/share/man/man1/htproxyrenew.1.gz
+%attr(-, root, root) %{prefix}/share/doc/gridsite-${MINOR_VERSION:-1.x}/htproxyput.1
+%attr(-, root, root) %{prefix}/share/doc/gridsite-${MINOR_VERSION:-1.x}/htproxydestroy.1
+%attr(-, root, root) %{prefix}/share/doc/gridsite-${MINOR_VERSION:-1.x}/htproxytime.1
+%attr(-, root, root) %{prefix}/share/doc/gridsite-${MINOR_VERSION:-1.x}/htproxyunixtime.1
+%attr(-, root, root) %{prefix}/share/doc/gridsite-${MINOR_VERSION:-1.x}/htproxyrenew.1
+EOF
+
+fi
+