1 |
< |
### RPM cms webtools-base 0.1.4 |
1 |
> |
### RPM cms webtools-base 0.1.6 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages |
3 |
|
%define moduleName WEBTOOLS |
4 |
|
%define exportName WEBTOOLS |
5 |
< |
%define cvstag V01-03-19 |
5 |
> |
%define cvstag V01-03-21 |
6 |
|
%define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e |
7 |
|
Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/%{moduleName}.tar.gz |
8 |
|
Requires: python cherrypy py2-cheetah yui webtools |
58 |
|
RETVAL=$? |
59 |
|
|
60 |
|
port=7999 |
61 |
< |
pid=`ps auxw | grep WSServer | grep -v grep | awk '{print $2}'` |
61 |
> |
pid=`ps auxw | grep WSServer | grep $port | grep -v grep | awk '{print $2}'` |
62 |
|
base=base |
63 |
|
if [ -n "$WEBTOOLS_BASEURL" ]; then |
64 |
|
url="$WEBTOOLS_BASEURL/$base" |
65 |
|
else |
66 |
|
url="http://cmsweb.cern.ch/$base" |
67 |
|
fi |
68 |
< |
cmd="cmsWeb --base-url=$url --port $port --default-page /WSServer" |
68 |
> |
cmd="cmsWeb --base-url=$url --port $port --default-page /WSServer/" |
69 |
|
|
70 |
|
case "$1" in |
71 |
|
restart) |