-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
72 lines (66 loc) · 2.8 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/python
from distutils.core import setup
#from setuptools import setup,find_packages
NAME = "certmaster"
VERSION = "0.29"
SHORT_DESC = "%s remote configuration and management api" % NAME
LONG_DESC = """
A small pluggable xml-rpc daemon used by %s to implement various web services hooks
""" % NAME
if __name__ == "__main__":
manpath = "share/man/man1/"
etcpath = "/etc/%s" % NAME
initpath = "/etc/init.d/"
logpath = "/var/log/%s/" % NAME
certdir = "/var/lib/%s/" % NAME
certmaster_cert_dir = "/var/lib/%s/%s" % (NAME,NAME)
certmaster_cert_certs_dir = "/var/lib/%s/%s/certs" % (NAME, NAME)
certmaster_cert_csrs_dir = "/var/lib/%s/%s/csrs" % (NAME, NAME)
trigpath = "/var/lib/%s/triggers/"% NAME
pkipath = "/etc/pki/%s" % NAME
rotpath = "/etc/logrotate.d"
aclpath = "%s/minion-acl.d" % etcpath
setup(
name="%s" % NAME,
version = VERSION,
author = "Lots",
author_email = "[email protected]",
url = "https://fedorahosted.org/certmaster/",
license = "GPL",
scripts = [
"scripts/certmaster", "scripts/certmaster-ca",
"scripts/certmaster-request", "scripts/certmaster-sync",
],
# package_data = { '' : ['*.*'] },
package_dir = {"%s" % NAME: "%s" % NAME
},
packages = ["%s" % NAME,
],
data_files = [(initpath, ["init-scripts/certmaster"]),
(etcpath, ["etc/minion.conf",
"etc/certmaster.conf",
"etc/version"]),
(manpath, ["docs/certmaster.1.gz"]),
(manpath, ["docs/certmaster-request.1.gz"]),
(manpath, ["docs/certmaster-ca.1.gz"]),
(manpath, ["docs/certmaster-sync.1.gz"]),
(rotpath, ['etc/certmaster_rotate']),
(logpath, []),
(certdir, []),
(certmaster_cert_dir, []),
(certmaster_cert_certs_dir, []),
(certmaster_cert_csrs_dir, []),
(etcpath, []),
(pkipath, []),
(aclpath, []),
("%s/peers" % certdir, []),
("%s/sign/pre/" % trigpath, []),
("%s/sign/post/" % trigpath, []),
("%s/remove/pre/" % trigpath, []),
("%s/remove/post/" % trigpath, []),
("%s/request/pre/" % trigpath, []),
("%s/request/post/" % trigpath, []),
],
description = SHORT_DESC,
long_description = LONG_DESC
)