rename geniwrapper init.d script as geni, isolate and chkconfig-enable
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 2 Jul 2009 09:31:53 +0000 (09:31 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 2 Jul 2009 09:31:53 +0000 (09:31 +0000)
geni/init.d/geni [moved from geni/geniwrapper with 100% similarity]
geniwrapper.spec
setup.py

similarity index 100%
rename from geni/geniwrapper
rename to geni/init.d/geni
index c1e9943..3a9c2ae 100644 (file)
@@ -46,6 +46,8 @@ make install DESTDIR="$RPM_BUILD_ROOT"
 # hack to add installed files to the package
 python -c "print '\n'.join(['%s*'%i.strip() for i in open('GENI_INSTALLED_FILES').readlines() if not i.strip().endswith('.pyc')])" |uniq > GENI_INSTALLED_FILES.all
 
+%post
+chkconfig --add geni
 
 %clean
 rm -rf $RPM_BUILD_ROOT
index 8a3913a..2f07781 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -8,13 +8,13 @@ from distutils.core import setup, Extension
 import os, sys
 import shutil
 
-version = '0.2'
+version = '0.8'
 scripts = ['geni/gimport.py', 'geni/plc.py', 'cmdline/sfi.py', 'config/geni-config-tty']
 package_dirs = ['geni', 'geni/util', 'geni/methods']
 data_files = [('/etc/geni/', ['config/aggregates.xml', 'config/registries.xml', 'config/geni_config', 'config/sfi_config']),
-              ('/etc/init.d/', ['geni/geniwrapper'])]
+              ('/etc/init.d/', ['geni/init.d/geni'])]
 symlinks = ['/usr/share/geniwrapper']
-initscripts = ['/etc/init.d/geniwrapper']
+initscripts = ['/etc/init.d/geni']
         
 if sys.argv[1] in ['uninstall', 'remove', 'delete', 'clean']:
     python_path = sys.path