X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;h=dff8e816f19f95a96421bde63795fcb2c5eca55e;hb=31cc4fa991896f000abb106916662923f37bc3a6;hp=f14941a5bf3e3467f52dfdfa67de10adc176da19;hpb=7ebd40bbcacbb55e3e56d868b4f31b73c119a1a2;p=sfa.git diff --git a/setup.py b/setup.py index f14941a5..dff8e816 100755 --- a/setup.py +++ b/setup.py @@ -35,7 +35,6 @@ scripts = glob("clientbin/*.py") + [ 'systemd/sfa-setup.sh', 'sfatables/sfatables', 'keyconvert/keyconvert.py', - 'flashpolicy/sfa_flashpolicy.py', ] packages = [ @@ -54,10 +53,7 @@ packages = [ 'sfa/rspecs/versions', 'sfa/client', 'sfa/planetlab', - 'sfa/nitos', 'sfa/dummy', - 'sfa/openstack', - 'sfa/federica', 'sfa/iotlab', 'sfatables', 'sfatables/commands', @@ -78,7 +74,6 @@ data_files = [ 'sfa/trust/sig.xsd', 'sfa/trust/xml.xsd', 'sfa/trust/protogeni-rspec-common.xsd', - 'flashpolicy/sfa_flashpolicy_config.xml', ]), ('/etc/sfatables/matches/', glob('sfatables/matches/*.xml')), ('/etc/sfatables/targets/', glob('sfatables/targets/*.xml')), @@ -87,10 +82,12 @@ data_files = [ ('/usr/share/sfa/examples/', glob('sfa/examples/*' ) + [ 'cron.d/sfa.cron' ] ), ] - +# use /lib/systemd instead of /usr/lib/systemd +# the latter would work on fedora only, the former +# will work on both fedora and ubuntu services = ['sfa-db', 'sfa-aggregate', 'sfa-registry'] data_files.append( - ('/usr/lib/systemd/system', + ('/lib/systemd/system', ['systemd/{}.service'.format(service) for service in services])) @@ -114,7 +111,7 @@ if sys.argv[1] in ['uninstall', 'remove', 'delete', 'clean']: remove_dirs = ['/etc/sfa/', '/etc/sfatables'] + site_packages_path remove_bins = [ '/usr/bin/' + os.path.basename(bin) for bin in scripts ] remove_files = (remove_bins - + ["/usr/lib/systemd/system/{}".format(x) + + ["/lib/systemd/system/{}".format(x) for x in services]) # remove files