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
|
#!/usr/bin/python
import sys
from distutils.core import setup, Extension
#from setuptools import setup,find_packages
import string
import glob
NAME = "func"
VERSION = open("version", "r+").read().split()[0]
SHORT_DESC = "%s remote configuration and management api" % NAME
LONG_DESC = """
A small pluggabe xml-rpc daemon used by %s to implement various web services hooks
""" % NAME
if __name__ == "__main__":
manpath = "share/man/man1/"
etcpath = "/etc/%s" % NAME
etcpathdb = "/etc/%s/db" % NAME
wwwpath = "/var/www/%s" % NAME
initpath = "/etc/init.d/"
logpath = "/var/log/%s/" % NAME
logpathdb = "/var/log/%s/db/" % NAME
settingspath = "/var/lib/%s/" % NAME
migraterepopath = "/var/lib/%s/db/" % NAME
schemapath = "/usr/share/%s/db_schema/" % NAME
upgradepath = schemapath + "upgrade/"
puppetpath = "/usr/share/%s/puppet-config/" % NAME
manifestpath = "/etc/puppet/manifests/"
profiletemplatepath = "/usr/share/%s/profile-template/" % NAME
profilespath = "/var/lib/%s/profiles/" % NAME
queuedprofilespath = "/var/lib/%s/profiles/queued/" % NAME
setup(
name="%s" % NAME,
version = VERSION,
author = "Lots",
author_email = "et-mgmt-tools@redhat.com",
url = "https://hosted.fedoraproject.org/projects/func/",
license = "GPL",
scripts = ["scripts/funcd",
],
# package_data = { '' : ['*.*'] },
package_dir = {"%s" % NAME: "",
"%s/server" % NAME: "server",
"%s/server/modules" % NAME: "modules/",
"%s/client" % NAME: "client"
},
packages = ["%s" % NAME,
"%s/server" % NAME,
"%s/client" % NAME,
"%s/server/modules" % NAME
],
data_files = [(initpath, ["init-scripts/funcd"]),
(etcpath, ["settings",]),
(etcpathdb, []),
(logpath, []),
(logpathdb, []),
(migraterepopath, []),
(profilespath, []),
(queuedprofilespath, [])],
description = SHORT_DESC,
long_description = LONG_DESC
)
|