afc3cff
From 2a98701ea1745394b717c3f4be4e0e376ab1d658 Mon Sep 17 00:00:00 2001
afc3cff
From: Tomas Babej <tomasbabej@gmail.com>
afc3cff
Date: Mon, 11 Nov 2013 13:02:40 +0100
afc3cff
Subject: [PATCH 1/9] platform: Add Fedora 19 platform file
afc3cff
afc3cff
Part of: https://fedorahosted.org/freeipa/ticket/3504
afc3cff
---
afc3cff
 ipapython/platform/fedora19/__init__.py | 55 +++++++++++++++++++++++++++++++++
afc3cff
 ipapython/setup.py.in                   |  1 +
afc3cff
 3 files changed, 70 insertions(+), 1 deletion(-)
afc3cff
 create mode 100644 ipapython/platform/fedora19/__init__.py
afc3cff
afc3cff
diff --git a/ipapython/platform/fedora19/__init__.py b/ipapython/platform/fedora19/__init__.py
afc3cff
new file mode 100644
afc3cff
index 0000000000000000000000000000000000000000..80356d65f4d07483000d57e16b193a857d0988ca
afc3cff
--- /dev/null
afc3cff
+++ b/ipapython/platform/fedora19/__init__.py
afc3cff
@@ -0,0 +1,55 @@
afc3cff
+# Author: Tomas Babej <tbabej@redhat.com>
afc3cff
+#
afc3cff
+# Copyright (C) 2013 Red Hat
afc3cff
+# see file 'COPYING' for use and warranty information
afc3cff
+#
afc3cff
+# This program is free software; you can redistribute it and/or modify
afc3cff
+# it under the terms of the GNU General Public License as published by
afc3cff
+# the Free Software Foundation, either version 3 of the License, or
afc3cff
+# (at your option) any later version.
afc3cff
+#
afc3cff
+# This program is distributed in the hope that it will be useful,
afc3cff
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
afc3cff
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
afc3cff
+# GNU General Public License for more details.
afc3cff
+#
afc3cff
+# You should have received a copy of the GNU General Public License
afc3cff
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
afc3cff
+#
afc3cff
+
afc3cff
+from ipapython.platform import fedora18, base
afc3cff
+
afc3cff
+# All what we allow exporting directly from this module
afc3cff
+
afc3cff
+# Everything else is made available through these symbols when they are
afc3cff
+# directly imported into ipapython.services:
afc3cff
+
afc3cff
+# authconfig -- class reference for platform-specific implementation of
afc3cff
+#               authconfig(8)
afc3cff
+# service    -- class reference for platform-specific implementation of a
afc3cff
+#               PlatformService class
afc3cff
+# knownservices -- factory instance to access named services IPA cares about,
afc3cff
+#                  names are ipapython.services.wellknownservices
afc3cff
+# backup_and_replace_hostname -- platform-specific way to set hostname and
afc3cff
+#                                make it persistent over reboots
afc3cff
+# restore_network_configuration -- platform-specific way of restoring network
afc3cff
+#                                  configuration (e.g. static hostname)
afc3cff
+# restore_context -- platform-sepcific way to restore security context, if
afc3cff
+#                    applicable
afc3cff
+# check_selinux_status -- platform-specific way to see if SELinux is enabled
afc3cff
+#                         and restorecon is installed.
afc3cff
+
afc3cff
+__all__ = ['authconfig', 'service', 'knownservices',
afc3cff
+    'backup_and_replace_hostname', 'restore_context', 'check_selinux_status',
afc3cff
+    'restore_network_configuration', 'timedate_services']
afc3cff
+
afc3cff
+# Just copy a referential list of timedate services
afc3cff
+timedate_services = list(base.timedate_services)
afc3cff
+
afc3cff
+backup_and_replace_hostname = fedora18.backup_and_replace_hostname
afc3cff
+restore_network_configuration = fedora18.restore_network_configuration
afc3cff
+authconfig = fedora18.authconfig
afc3cff
+service = fedora18.service
afc3cff
+knownservices = fedora18.knownservices
afc3cff
+restore_context = fedora18.restore_context
afc3cff
+check_selinux_status = fedora18.check_selinux_status
afc3cff
diff --git a/ipapython/setup.py.in b/ipapython/setup.py.in
afc3cff
index d3bbcaf1e46528d50731ca18a96a3384f6b49548..108c95d0ccb74e1cec5167759243f428f4ecf21a 100644
afc3cff
--- a/ipapython/setup.py.in
afc3cff
+++ b/ipapython/setup.py.in
afc3cff
@@ -70,6 +70,7 @@ def setup_package():
afc3cff
                          "ipapython.platform.base",
afc3cff
                          "ipapython.platform.fedora16",
afc3cff
                          "ipapython.platform.fedora18",
afc3cff
+                         "ipapython.platform.fedora19",
afc3cff
                          "ipapython.platform.redhat" ],
afc3cff
         )
afc3cff
     finally:
afc3cff
-- 
afc3cff
1.8.5.3
afc3cff