summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-20 16:09:20 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-20 16:09:20 -0400
commit7a70b5bb80c69dafc345dfd4df577bfb1e983ee9 (patch)
tree2b3ebe15ab9c14a438b4cea2b61b31d0512450c8 /setup.py
parent322c6fd1fe1aa02b740d646a3c02f8ec46515fa3 (diff)
downloadthird_party-func-7a70b5bb80c69dafc345dfd4df577bfb1e983ee9.tar.gz
third_party-func-7a70b5bb80c69dafc345dfd4df577bfb1e983ee9.tar.xz
third_party-func-7a70b5bb80c69dafc345dfd4df577bfb1e983ee9.zip
first pass at packaging stuff
version is 0.11-1 (this one goes to .11) "make rpms" should build a rpm from the setup.py and func.spec
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py68
1 files changed, 68 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..9584b05
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,68 @@
+#!/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",
+ "%s/server/yaml" % NAME: "server/yaml/",
+ },
+ packages = ["%s" % NAME,
+ "%s/server" % NAME,
+ "%s/client" % NAME,
+ "%s/server/modules" % NAME,
+ "%s/server/yaml" % NAME,
+ ],
+ data_files = [(initpath, ["init-scripts/funcd"]),
+ (etcpath, ["settings",]),
+ (etcpathdb, []),
+ (logpath, []),
+ (logpathdb, []),
+ (migraterepopath, []),
+ (profilespath, []),
+ (queuedprofilespath, [])],
+ description = SHORT_DESC,
+ long_description = LONG_DESC
+ )
+