summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--func.spec1
-rwxr-xr-xscripts/func14
-rw-r--r--setup.py2
3 files changed, 16 insertions, 1 deletions
diff --git a/func.spec b/func.spec
index c516fb9..30c6ab8 100644
--- a/func.spec
+++ b/func.spec
@@ -35,6 +35,7 @@ rm -fr $RPM_BUILD_ROOT
%files
%{_bindir}/funcd
+%{_bindir}/func
%{_bindir}/certmaster
/etc/init.d/funcd
/etc/init.d/certmaster
diff --git a/scripts/func b/scripts/func
new file mode 100755
index 0000000..2afb4e7
--- /dev/null
+++ b/scripts/func
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+import sys
+import distutils.sysconfig
+
+# sys.path.append("%s/func" % distutils.sysconfig.get_python_lib())
+
+import func.overlord.client as client
+
+myname, argv = sys.argv[0], sys.argv[1:]
+cli = client.FuncCommandLine(myname, argv)
+cli.run()
+
+
diff --git a/setup.py b/setup.py
index 156b824..8fcd0ca 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@ if __name__ == "__main__":
author_email = "func-list@redhat.com",
url = "https://hosted.fedoraproject.org/projects/func/",
license = "GPL",
- scripts = ["scripts/funcd", "scripts/certmaster"],
+ scripts = ["scripts/funcd", "scripts/func", "scripts/certmaster"],
# package_data = { '' : ['*.*'] },
package_dir = {"%s" % NAME: "%s" % NAME,
"%s/minion" % NAME: "minion/",