Added OPENSSL_FLAGS and _LIBS options
authorAlberto Di Meglio <alberto.di.meglio@cern.ch>
Fri, 3 Dec 2004 14:49:59 +0000 (14:49 +0000)
committerAlberto Di Meglio <alberto.di.meglio@cern.ch>
Fri, 3 Dec 2004 14:49:59 +0000 (14:49 +0000)
org.gridsite.core/build.xml
org.gridsite.core/project/configure.properties.xml
org.gridsite.core/project/version.properties
org.gridsite.core/src/Makefile
org.gridsite.core/src/gridsite.spec

index 881d9b4..a214d0a 100644 (file)
@@ -20,6 +20,9 @@
 
        Revision history:
        $Log$
+       Revision 1.6  2004/11/13 10:55:44  glbuild
+       Added artifacts RPMS directory
+       
        Revision 1.5  2004/10/29 22:55:07  dimeglio
        Use envset target
        
                  Public common targets
             =============================================== -->
        
+        <var name="global.prefix" unset="true"/>
+        <property name="global.prefix" value="gridsite"/>
+
        <target name="localinit" depends="envcheck">
                <mkdir dir="${stage.dir}" />
                <mkdir dir="${dist.dir}" />
        </target>
 
        <target name="init" depends="localinit">
+               <echo>${global.prefix}</echo>
        </target>
 
        <target name="checkstyle" depends="init">
        <target name="buildmodules" depends="envset"/>
 
 </project>
+
index 687a424..6ee8706 100644 (file)
@@ -4,5 +4,6 @@
 
        <project name="configure options">
         <property name="build.make.arguments"
-               value="prefix=${stage.abs.dir} GSOAPDIR=${with.gsoap.prefix}"/>
+               value="prefix=${stage.abs.dir} GSOAPDIR=${with.gsoap.prefix} OPENSSL_FLAGS=-I${with.globus.prefix}/include/gcc32/openssl OPENSSL_LIBS=-L${with.globus.prefix}/lib/"/>
        </project>
+
index db5eb47..2af4185 100644 (file)
@@ -1,4 +1,4 @@
 #Fri Dec 03 02:05:12 CET 2004
 module.version=1.1.3
 module.build=64
-module.age=1
+module.age=2
index 28ac17c..bd66586 100644 (file)
@@ -48,11 +48,19 @@ ifndef MYCFLAGS
 export MYCFLAGS=-I. -I../interface -I/usr/include/httpd -I/usr/include/apr-0 -I/opt/glite/include
 endif
 
+ifndef OPENSSL_FLAGS
+export OPENSSL_FLAGS=-I/usr/include/openssl
+endif
+
 ifndef MYLDFLAGS
 export MYLDFLAGS=-L.
 # export MYLDFLAGS=-L. -L/opt/glite/lib -lvomsc
 endif
 
+ifndef OPENSSL_LIBS
+export OPENSSL_LIBS=-L/usr/lib/openssl
+endif
+
 #
 # Build
 #
@@ -69,21 +77,21 @@ libgridsite.a: grst_x509.o grst_gacl.o grst_http.o
        ar src libgridsite.a grst_x509.o grst_gacl.o grst_http.o
 
 grst_x509.o: grst_x509.c ../interface/gridsite.h
-       gcc $(MYCFLAGS) \
+       gcc $(MYCFLAGS) $(OPENSSL_FLAGS) \
             -I/usr/kerberos/include -c grst_x509.c
 
 grst_gacl.o: grst_gacl.c ../interface/gridsite.h
-       gcc $(MYCFLAGS) \
+       gcc $(MYCFLAGS) $(OPENSSL_FLAGS) \
             -I/usr/kerberos/include `xml2-config --cflags` -c grst_gacl.c
 
 grst_http.o: grst_http.c ../interface/gridsite.h
-       gcc $(MYCFLAGS)  \
+       gcc $(MYCFLAGS) $(OPENSSL_FLAGS) \
                         -I/usr/kerberos/include -c grst_http.c
 
 urlencode: urlencode.c libgridsite.a
        gcc -DVERSION=\"$(PATCH_VERSION)\" $(MYCFLAGS) \
             -o urlencode urlencode.c -L. \
-             -I/usr/kerberos/include -lgridsite
+             $(OPENSSL_FLAGS) -I/usr/kerberos/include -lgridsite
 
 htcp: htcp.c
        gcc -DVERSION=\"$(PATCH_VERSION)\" -I. -o htcp htcp.c \
@@ -91,7 +99,7 @@ htcp: htcp.c
 
 mod_gridsite.so: mod_gridsite.c mod_ssl-private.h libgridsite.a
        gcc $(MYCFLAGS) -shared -Wl,-soname=gridsite_module \
-            -I/usr/kerberos/include \
+            $(OPENSSL_FLAGS) -I/usr/kerberos/include \
            -I/usr/include/libxml2 \
            -DVERSION=\"$(VERSION)\" -o mod_gridsite.so \
            mod_gridsite.c $(MYLDFLAGS) -lxml2 -lm -lz -lgridsite
@@ -102,21 +110,21 @@ real-gridsite-admin.cgi: grst_admin_main.c grst_admin_gacl.c \
             grst_admin_main.c \
             grst_admin_gacl.c \
             grst_admin_file.c \
-             -I/usr/kerberos/include \
-            -DVERSION=\"$(VERSION)\" -lgridsite -lssl -lcrypto -lxml2 -lz -lm
+             $(OPENSSL_FLAGS) -I/usr/kerberos/include \
+            -DVERSION=\"$(VERSION)\" $(OPENSSL_LIBS) -lgridsite -lssl -lcrypto -lxml2 -lz -lm
 
 findproxyfile: findproxyfile.c libgridsite.a
        gcc -DVERSION=\"$(PATCH_VERSION)\" $(MYCFLAGS) $(MYLDFLAGS) \
             -o findproxyfile findproxyfile.c -L. \
-             -I/usr/kerberos/include -lgridsite \
-            -lssl -lcrypto -lxml2 -lz -lm
+             $(OPENSSL_FLAGS) -I/usr/kerberos/include -lgridsite \
+             $(OPENSSL_LIBS) -lssl -lcrypto -lxml2 -lz -lm
 
 apidoc:
        doxygen Doxyfile
 
 gaclexample: gaclexample.c libgridsite.a
        gcc -o gaclexample gaclexample.c -I. -L. \
-             -I/usr/kerberos/include -lgridsite \
+             $(OPENSSL_FLAGS) -I/usr/kerberos/include -lgridsite \
             -lssl -lcrypto -lxml2 -lz -lm 
 
 #
@@ -141,7 +149,7 @@ gridsite-delegation.cgi: grst-delegation.c delegation.h delegation.wsdl \
                          soapC.c soapServer.c
        gcc $(MYCFLAGS) $(MYLDFLAGS) -o gridsite-delegation.cgi \
             grst-delegation.c \
-             -I/usr/kerberos/include -I$(GSOAPDIR)/include \
+             $(OPENSSL_FLAGS) -I/usr/kerberos/include -I$(GSOAPDIR)/include \
             -DVERSION=\"$(VERSION)\" -L$(GSOAPDIR)/lib \
             soapC.c soapServer.c -lgsoap \
             -lgridsite -lcurl -lz -lssl -lcrypto -lxml2 -lm
@@ -150,7 +158,7 @@ htproxyput: htproxyput.c delegation.h delegation.wsdl \
             soapC.c soapServer.c
        gcc $(MYCFLAGS) $(MYLDFLAGS) -o htproxyput \
             htproxyput.c \
-             -I/usr/kerberos/include \
+             $(OPENSSL_FLAGS) -I/usr/kerberos/include \
             -g -DVERSION=\"$(VERSION)\" \
             -I$(GSOAPDIR)/include -DWITH_OPENSSL -L$(GSOAPDIR)/lib \
             soapC.c soapClient.c -lgsoap \
@@ -160,7 +168,7 @@ proxyput-example: proxyput-example.c delegation.h delegation.wsdl \
             soapC.c soapServer.c libstdsoap2.a
        gcc $(MYCFLAGS) $(MYLDFLAGS) -o proxyput-example \
             proxyput-example.c \
-             -I/usr/kerberos/include \
+             $(OPENSSL_FLAGS) -I/usr/kerberos/include \
             -g -DVERSION=\"$(VERSION)\" \
             -I$(GSOAPDIR) -DWITH_OPENSSL \
             soapC.c soapClient.c libstdsoap2.a \
@@ -269,3 +277,4 @@ wtf:
        printenv
        ls -l
        ls -lR /usr/local/
+
index 960d432..877f25d 100644 (file)
@@ -1,6 +1,6 @@
 Name: gridsite
-Version: %(echo ${MYVERSION:-1.0.x})
-Release: 1
+Version: %(echo ${MYVERSION:-1.1.x})
+Release: 2
 Summary: GridSite
 Copyright: Modified BSD
 Group: System Environment/Daemons