First install script commit
authorSimo Sorce <simo@redhat.com>
Fri, 14 Mar 2014 20:55:29 +0000 (16:55 -0400)
committerSimo Sorce <simo@redhat.com>
Thu, 20 Mar 2014 15:34:08 +0000 (11:34 -0400)
Signed-off-by: Simo Sorce <simo@redhat.com>
ipsilon/install/__init__.py [new file with mode: 0644]
ipsilon/install/server.py [new file with mode: 0755]
setup.py

diff --git a/ipsilon/install/__init__.py b/ipsilon/install/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/ipsilon/install/server.py b/ipsilon/install/server.py
new file mode 100755 (executable)
index 0000000..f5d06b6
--- /dev/null
@@ -0,0 +1,34 @@
+#!/usr/bin/python
+#
+# Copyright (C) 2014  Simo Sorce <simo@redhat.com>
+#
+# see file 'COPYING' for use and warranty information
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+import argparse
+
+
+def parse_args():
+    parser = argparse.ArgumentParser(description='Ipsilon Install Options')
+    parser.add_argument('--version',
+                        action='version', version='%(prog)s 0.1')
+
+    args = vars(parser.parse_args())
+
+    return args
+
+if __name__ == '__main__':
+    opts = parse_args()
+    print opts
index 07b0d5a..89181ae 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,8 @@ setup(
     version = '0.1',
     license = 'GPLv3+',
     packages = ['ipsilon', 'ipsilon.admin', 'ipsilon.login', 'ipsilon.util',
     version = '0.1',
     license = 'GPLv3+',
     packages = ['ipsilon', 'ipsilon.admin', 'ipsilon.login', 'ipsilon.util',
-                'ipsilon.providers', 'ipsilon.providers.saml2'],
+                'ipsilon.providers', 'ipsilon.providers.saml2',
+                'ipsilon.install'],
     data_files = [('share/man/man7', ["man/ipsilon.7"]),
                   ('share/doc/ipsilon', ['COPYING']),
                   ('share/doc/ipsilon/examples', ['examples/ipsilon.conf',
     data_files = [('share/man/man7', ["man/ipsilon.7"]),
                   ('share/doc/ipsilon', ['COPYING']),
                   ('share/doc/ipsilon/examples', ['examples/ipsilon.conf',