From 0a45b41a320ac2e4d74ed7ba03a24a078799f6c8 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 2 Jul 2009 09:31:53 +0000 Subject: [PATCH 1/1] rename geniwrapper init.d script as geni, isolate and chkconfig-enable --- geni/{geniwrapper => init.d/geni} | 0 geniwrapper.spec | 2 ++ setup.py | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) rename geni/{geniwrapper => init.d/geni} (100%) diff --git a/geni/geniwrapper b/geni/init.d/geni similarity index 100% rename from geni/geniwrapper rename to geni/init.d/geni diff --git a/geniwrapper.spec b/geniwrapper.spec index c1e9943a..3a9c2aee 100644 --- a/geniwrapper.spec +++ b/geniwrapper.spec @@ -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 diff --git a/setup.py b/setup.py index 8a3913a0..2f07781a 100755 --- 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 -- 2.43.0