-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (83 loc) · 3.54 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/python
from distutils.core import setup
#from setuptools import setup,find_packages
NAME = "func"
VERSION = "0.30"
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
etcmodpath = "/etc/%s/modules" % NAME
initpath = "/etc/init.d/"
logpath = "/var/log/%s/" % NAME
varpath = "/var/lib/%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/func/",
license = "GPL",
scripts = [
"scripts/funcd",
"scripts/func",
"scripts/func-group",
"scripts/func-inventory",
"scripts/func-create-module",
"scripts/func-transmit",
"scripts/func-build-map",
"scripts/func-command",
"scripts/func-down-hosts",
"scripts/func-find-user",
"scripts/func-grep",
"scripts/func-list-vms-per-host",
"scripts/func-ps-compare",
"scripts/func-whatsmyname",
"scripts/func-yum",
],
package_dir = {"%s" % NAME: "%s" % NAME
},
packages = ["%s" % NAME,
"%s/minion" % NAME,
"%s/overlord" % NAME,
"%s/overlord/cmd_modules" % NAME,
"%s/overlord/modules" % NAME,
"%s/overlord/group" % NAME,
"%s/minion/modules" % NAME,
"%s/minion/facts" % NAME,
"%s/minion/facts/modules/" % NAME,
"%s/yaml" % NAME,
# FIXME if there's a clean/easy way to recursively
# find modules then by all means do it, for now
# this will work.
"%s/minion/modules.netapp" % NAME,
"%s/minion/modules.netapp.vol" % NAME,
"%s/minion/modules.iptables" % NAME
],
data_files = [(initpath, ["init-scripts/funcd"]),
(etcpath, ["etc/minion.conf",
"etc/overlord.conf",
"etc/async_methods.conf",
"etc/version"]),
(manpath, ["docs/func.1.gz",
"docs/func-inventory.1.gz",
"docs/funcd.1.gz",
"docs/func-transmit.1.gz",
"docs/func-create-module.1.gz",
"docs/func-build-map.1.gz"]),
(rotpath, ['etc/func_rotate']),
(logpath, []),
(etcmodpath, ['etc/Test.conf',
'etc/Bridge.conf',
'etc/Vlan.conf']),
(varpath, []),
(aclpath, [])
],
description = SHORT_DESC,
long_description = LONG_DESC
)