Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/net
In directory vz-cvs-3.sog:/tmp/cvs-serv32480

Modified Files:
        celery-py.info 
Log Message:
added update-alternatives thanks to a bug report by dmacks
added py27 variant to allow for yolk -U checks


Index: celery-py.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/net/celery-py.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- celery-py.info      25 Feb 2010 14:12:06 -0000      1.2
+++ celery-py.info      19 Jul 2012 14:12:52 -0000      1.3
@@ -6,7 +6,7 @@
 Maintainer: Kurt Schwehr <[email protected]>
 License: BSD
 Distribution: 10.5, 10.6
-Type: python (2.6)
+Type: python (2.6 2.7)
 Homepage: http://pypi.python.org/pypi/celery/
 Source: http://pypi.python.org/packages/source/c/celery/celery-%v.tar.gz
 Source-MD5: 0e711cb074eff8ef205ef1274b30e8ad
@@ -40,7 +40,25 @@
 DocFiles: AUTHORS Changelog LICENSE README THANKS TODO docs
 
 CompileScript: python%type_raw[python] setup.py build
-InstallScript: python%type_raw[python] setup.py install --root=%d
+
+InstallScript: <<
+  #!/bin/bash -ev
+  python%type_raw[python] setup.py install --root=%d
+  for file in celerybeat celeryd celeryinit; do
+    mv %i/bin/$file %i/bin/${file}-py%type_pkg[python]
+  done
+<<
+
+PostInstScript: <<
+  # Add --verbose to update-alternatives for debugging
+  update-alternatives --verbose --install %p/bin/celeryd celery-py 
%p/bin/celeryd-py%type_pkg[python] %type_pkg[python] --slave %p/bin/celerybeat 
celerybeat %p/bin/celerybeat-py%type_pkg[python] --slave %p/bin/celeryinit 
celeryinit %p/bin/celeryinit-py%type_pkg[python] 
+<<
+
+PreRmScript: <<
+  if [ $1 != "upgrade" ]; then
+    update-alternatives --verbose --remove celery-py 
%p/bin/celeryd-py%type_pkg[python]
+  fi
+<<
 
 # Info2
 <<
\ No newline at end of file


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to