source: TI12-security/trunk/python/Makefile @ 5648

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Makefile@5652
Revision 5648, 2.4 KB checked in by pjkersha, 11 years ago (diff)

ndg.security.server.attributeauthority.AttributeAuthority?: added samlAttributeQuery method and new AttributeInterface?.getAttributes plugin class method to enable SAML support as need for ESG.

Line 
1#
2# NERC DataGrid Project
3#
4# @author P J Kershaw 15/03/07
5#
6# Make all eggs
7#
8# @copyright: (C) 2007 STFC
9#
10# @license: BSD - LICENSE file
11#
12# $Id$
13EGG_DIRS=ndg.security.common ndg.security.client ndg.security.server \
14ndg.security.test ndg.security ndg.security.saml
15
16# Override on the command line for alternative path
17PYTHON=python
18
19eggs:
20        @-for dir in ${EGG_DIRS}; do \
21                cd $$dir; \
22                ${PYTHON} setup.py bdist_egg; \
23                cd ..; \
24        done;
25
26develop:
27        @-for dir in ${EGG_DIRS}; do \
28                cd $$dir; \
29                ${PYTHON} setup.py develop; \
30                cd ..; \
31        done;
32
33clean:
34        @-for dir in ${EGG_DIRS}; do \
35                cd $$dir; \
36                rm -f dist/*.egg; \
37                rm -rf *.egg-info; \
38                rm -rf build; \
39                cd ..; \
40        done;
41
42replace: clean eggs
43
44# Convenient alias
45force: replace
46
47NDG_EGG_DIST_USER=
48NDG_EGG_DIST_HOST=
49NDG_EGG_DIST_DIR=
50
51install_eggs: eggs
52        scp ndg-security-install.py ndg.*/dist/*.egg \
53        ${NDG_EGG_DIST_USER}@${NDG_EGG_DIST_HOST}:${NDG_EGG_DIST_DIR}
54
55# Make ZSI stubs from Session Manager WSDL
56SM_ZSI_STUB_DIRS=./ndg.security.server/ndg/security/server/zsi/sessionmanager \
57                                 ./ndg.security.common/ndg/security/common/zsi/sessionmanager
58
59sm_zsi_wsdl_stubs:
60        @-for dir in ${SM_ZSI_STUB_DIRS}; do \
61                cd $$dir && make && cd ../../../../../..; \
62        done;
63
64# Make ZSI stubs from Attribute Authority WSDL
65AA_ZSI_STUB_DIRS=./ndg.security.server/ndg/security/server/zsi/attributeauthority \
66                                 ./ndg.security.common/ndg/security/common/zsi/attributeauthority
67                                 
68aa_zsi_wsdl_stubs:
69        @-for dir in ${AA_ZSI_STUB_DIRS}; do \
70                cd $$dir && make && cd ../../../../../..; \
71        done;
72
73# Make all ZSI stubs for NDG security
74zsi_wsdl_stubs: sm_zsi_wsdl_stubs aa_zsi_wsdl_stubs
75
76
77# Generate HTML from embedded epydoc text in source code.
78EPYDOC=epydoc
79EPYDOC_OUTDIR=../documentation/epydoc
80EPYDOC_NAME='NDG Security'
81EPYDOC_LOGFILE=epydoc.log
82EPYDOC_FRAMES_OPT=--no-frames
83epydoc:
84        ${EPYDOC} ./ndg.security.*/ndg -o ${EPYDOC_OUTDIR} \
85        --name ${EPYDOC_NAME} ${EPYDOC_FRAMES_OPT} --include-log --graph=all -v \
86        > ${EPYDOC_LOGFILE}
87
88# Install epydoc on web server - set environment variables in a setup script
89# or one the command line and use the -e option for make
90NDG_EPYDOC_USER=
91NDG_EPYDOC_HOST=
92NDG_EPYDOC_DIR=
93install_epydoc:
94        scp -r ${EPYDOC_OUTDIR} \
95        ${NDG_EPYDOC_USER}@${NDG_EPYDOC_HOST}:${NDG_EPYDOC_DIR}
96       
97# Generate SysV init scripts for Twisted based services
98init_scripts:
99        cd ./ndg.security.server/ndg/security/server/share && make generateScripts
100
Note: See TracBrowser for help on using the repository browser.