BATS fell down pushing a process into the background, so I switched to shunit2 /...
[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.28"
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 certmaster_cert_dir = "/var/lib/%s/%s" % (NAME,NAME)
22 certmaster_cert_certs_dir = "/var/lib/%s/%s/certs" % (NAME, NAME)
23 certmaster_cert_csrs_dir = "/var/lib/%s/%s/csrs" % (NAME, NAME)
24 trigpath = "/var/lib/%s/triggers/"% NAME
25 pkipath = "/etc/pki/%s" % NAME
26 rotpath = "/etc/logrotate.d"
27 aclpath = "%s/minion-acl.d" % etcpath
28 setup(
29 name="%s" % NAME,
30 version = VERSION,
31 author = "Lots",
32 author_email = "func-list@redhat.com",
33 url = "https://fedorahosted.org/certmaster/",
34 license = "GPL",
35 scripts = [
36 "scripts/certmaster", "scripts/certmaster-ca",
37 "scripts/certmaster-request", "scripts/certmaster-sync",
38 ],
39 # package_data = { '' : ['*.*'] },
40 package_dir = {"%s" % NAME: "%s" % NAME
41 },
42 packages = ["%s" % NAME,
43 ],
44 data_files = [(initpath, ["init-scripts/certmaster"]),
45 (etcpath, ["etc/minion.conf",
46 "etc/certmaster.conf",
47 "etc/version"]),
48 (manpath, ["docs/certmaster.1.gz"]),
49 (manpath, ["docs/certmaster-request.1.gz"]),
50 (manpath, ["docs/certmaster-ca.1.gz"]),
51 (manpath, ["docs/certmaster-sync.1.gz"]),
52 (rotpath, ['etc/certmaster_rotate']),
53 (logpath, []),
54 (certdir, []),
55 (certmaster_cert_dir, []),
56 (certmaster_cert_certs_dir, []),
57 (certmaster_cert_csrs_dir, []),
58 (etcpath, []),
59 (pkipath, []),
60 (aclpath, []),
61 ("%s/peers" % certdir, []),
62 ("%s/sign/pre/" % trigpath, []),
63 ("%s/sign/post/" % trigpath, []),
64 ("%s/remove/pre/" % trigpath, []),
65 ("%s/remove/post/" % trigpath, []),
66 ("%s/request/pre/" % trigpath, []),
67 ("%s/request/post/" % trigpath, []),
68 ],
69 description = SHORT_DESC,
70 long_description = LONG_DESC
71 )
72