Starting off the certmaster tree with most of the func code, shortly non-certmaster...
[certmaster.git] / setup.py
1 #!/usr/bin/python
2
3 from distutils.core import setup
4 #from setuptools import setup,find_packages
5
6 NAME = "func"
7 VERSION = open("version", "r+").read().split()[0]
8 SHORT_DESC = "%s remote configuration and management api" % NAME
9 LONG_DESC = """
10 A small pluggable xml-rpc daemon used by %s to implement various web services hooks
11 """ % NAME
12
13
14 if __name__ == "__main__":
15
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
25 setup(
26 name="%s" % NAME,
27 version = VERSION,
28 author = "Lots",
29 author_email = "func-list@redhat.com",
30 url = "https://hosted.fedoraproject.org/projects/func/",
31 license = "GPL",
32 scripts = [
33 "scripts/funcd", "scripts/func",
34 "scripts/certmaster", "scripts/certmaster-ca",
35 "scripts/func-inventory",
36 "scripts/func-create-module",
37 ],
38 # package_data = { '' : ['*.*'] },
39 package_dir = {"%s" % NAME: "%s" % NAME
40 },
41 packages = ["%s" % NAME,
42 "%s/minion" % NAME,
43 "%s/overlord" % 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
49 # this will work.
50 "%s/minion/modules.netapp" % NAME,
51 "%s/minion/modules.netapp.vol" % NAME
52 ],
53 data_files = [(initpath, ["init-scripts/funcd"]),
54 (initpath, ["init-scripts/certmaster"]),
55 (etcpath, ["etc/minion.conf"]),
56 (etcpath, ["etc/certmaster.conf"]),
57 (etcmodpath, []),
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']),
64 (logpath, []),
65 (certdir, []),
66 (etcpath, []),
67 (pkipath, []),
68 (aclpath, [])
69 ],
70 description = SHORT_DESC,
71 long_description = LONG_DESC
72 )
73