3 from distutils
.core
import setup
4 #from setuptools import setup,find_packages
7 VERSION
= open("version", "r+").read().split()[0]
8 SHORT_DESC
= "%s remote configuration and management api" % NAME
10 A small pluggable xml-rpc daemon used by %s to implement various web services hooks
14 if __name__
== "__main__":
16 manpath
= "share/man/man1/"
17 etcpath
= "/etc/%s" % NAME
18 etcmodpath
= "/etc/%s/modules" % NAME
19 initpath
= "/etc/init.d/"
20 logpath
= "/var/log/%s/" % NAME
21 certdir
= "/var/lib/%s/certmaster" % NAME
22 pkipath
= "/etc/pki/%s" % NAME
23 rotpath
= "/etc/logrotate.d"
24 aclpath
= "%s/minion-acl.d" % etcpath
29 author_email
= "func-list@redhat.com",
30 url
= "https://hosted.fedoraproject.org/projects/func/",
33 "scripts/funcd", "scripts/func",
34 "scripts/certmaster", "scripts/certmaster-ca",
35 "scripts/func-inventory",
36 "scripts/func-create-module",
38 # package_data = { '' : ['*.*'] },
39 package_dir
= {"%s" % NAME
: "%s" % NAME
41 packages
= ["%s" % NAME
,
44 "%s/overlord/cmd_modules" % NAME
,
45 "%s/overlord/modules" % NAME
,
46 "%s/minion/modules" % NAME
,
47 # FIXME if there's a clean/easy way to recursively
48 # find modules then by all means do it, for now
50 "%s/minion/modules.netapp" % NAME
,
51 "%s/minion/modules.netapp.vol" % NAME
53 data_files
= [(initpath
, ["init-scripts/funcd"]),
54 (initpath
, ["init-scripts/certmaster"]),
55 (etcpath
, ["etc/minion.conf"]),
56 (etcpath
, ["etc/certmaster.conf"]),
58 (manpath
, ["docs/func.1.gz"]),
59 (manpath
, ["docs/func-inventory.1.gz"]),
60 (manpath
, ["docs/funcd.1.gz"]),
61 (manpath
, ["docs/certmaster.1.gz"]),
62 (manpath
, ["docs/certmaster-ca.1.gz"]),
63 (rotpath
, ['etc/func_rotate']),
70 description
= SHORT_DESC
,
71 long_description
= LONG_DESC