3 from distutils
.core
import setup
4 #from setuptools import setup,find_packages
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 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
32 author_email
= "func-list@redhat.com",
33 url
= "https://fedorahosted.org/certmaster/",
36 "scripts/certmaster", "scripts/certmaster-ca",
37 "scripts/certmaster-request", "scripts/certmaster-sync",
39 # package_data = { '' : ['*.*'] },
40 package_dir
= {"%s" % NAME
: "%s" % NAME
42 packages
= ["%s" % NAME
,
44 data_files
= [(initpath
, ["init-scripts/certmaster"]),
45 (etcpath
, ["etc/minion.conf",
46 "etc/certmaster.conf",
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']),
55 (certmaster_cert_dir
, []),
56 (certmaster_cert_certs_dir
, []),
57 (certmaster_cert_csrs_dir
, []),
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
, []),
69 description
= SHORT_DESC
,
70 long_description
= LONG_DESC