[certmaster] Documentation and cleanup for minion-to-minion
[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 = "certmaster"
7 VERSION = "0.24"
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 initpath = "/etc/init.d/"
19 logpath = "/var/log/%s/" % NAME
20 certdir = "/var/lib/%s/" % NAME
21 trigpath = "/var/lib/%s/triggers/"% 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://fedorahosted.org/certmaster/",
31 license = "GPL",
32 scripts = [
33 "scripts/certmaster", "scripts/certmaster-ca",
34 "scripts/certmaster-request", "scripts/certmaster-sync",
35 ],
36 # package_data = { '' : ['*.*'] },
37 package_dir = {"%s" % NAME: "%s" % NAME
38 },
39 packages = ["%s" % NAME,
40 ],
41 data_files = [(initpath, ["init-scripts/certmaster"]),
42 (etcpath, ["etc/minion.conf"]),
43 (etcpath, ["etc/certmaster.conf"]),
44 (manpath, ["docs/certmaster.1.gz"]),
45 (manpath, ["docs/certmaster-request.1.gz"]),
46 (manpath, ["docs/certmaster-ca.1.gz"]),
47 (manpath, ["docs/certmaster-sync.1.gz"]),
48 (rotpath, ['etc/certmaster_rotate']),
49 (logpath, []),
50 (certdir, []),
51 (etcpath, []),
52 (pkipath, []),
53 (aclpath, []),
54 ("%s/peers" % certdir, []),
55 ("%s/sign/pre/" % trigpath, []),
56 ("%s/sign/post/" % trigpath, []),
57 ("%s/remove/pre/" % trigpath, []),
58 ("%s/remove/post/" % trigpath, []),
59 ("%s/request/pre/" % trigpath, []),
60 ("%s/request/post/" % trigpath, []),
61 ],
62 description = SHORT_DESC,
63 long_description = LONG_DESC
64 )
65