summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-06-02 07:32:21 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-16 19:48:20 +0200
commita9a4bc08485130fc1bb2257292b415e70e33bfb1 (patch)
treeae50d78364bbe27d8fd1a28841dbe7d876cac6f6 /ipapython
parent4d2ef43f287aa96df3d65b97977fc7a824b6b33c (diff)
downloadfreeipa-a9a4bc08485130fc1bb2257292b415e70e33bfb1.tar.gz
freeipa-a9a4bc08485130fc1bb2257292b415e70e33bfb1.tar.xz
freeipa-a9a4bc08485130fc1bb2257292b415e70e33bfb1.zip
ipaplatform: Remove remnants of the ipapython/platform
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/platform/__init__.py23
-rw-r--r--ipapython/platform/base/__init__.py31
-rw-r--r--ipapython/platform/fedora16/__init__.py58
-rw-r--r--ipapython/platform/fedora16/selinux.py27
-rw-r--r--ipapython/platform/fedora18/__init__.py62
-rw-r--r--ipapython/platform/fedora19/__init__.py72
-rw-r--r--ipapython/services.py.in31
7 files changed, 0 insertions, 304 deletions
diff --git a/ipapython/platform/__init__.py b/ipapython/platform/__init__.py
deleted file mode 100644
index e0a394b02..000000000
--- a/ipapython/platform/__init__.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Authors:
-# Alexander Bokovoy <abokovoy@redhat.com>
-#
-# Copyright (C) 2011 Red Hat
-# 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/>.
-
-"""
-Sub-package containing all platform-specific adaptation for ipapython.services.
-Should not be used directly.
-"""
diff --git a/ipapython/platform/base/__init__.py b/ipapython/platform/base/__init__.py
deleted file mode 100644
index 9b5960584..000000000
--- a/ipapython/platform/base/__init__.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Authors: Alexander Bokovoy <abokovoy@redhat.com>
-from ipaplatform.paths import paths
-#
-# Copyright (C) 2011 Red Hat
-# 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/>.
-
-# Firefox paths
-FIREFOX_EXEC = paths.FIREFOX
-FIREFOX_INSTALL_DIRS = [paths.LIB64_FIREFOX, paths.LIB_FIREFOX]
-# /firefox/install/dir/FIREFOX_PREFERENCES_REL_PATH
-FIREFOX_PREFERENCES_REL_PATH = "browser/defaults/preferences"
-
-
-
-
-
-
-
diff --git a/ipapython/platform/fedora16/__init__.py b/ipapython/platform/fedora16/__init__.py
deleted file mode 100644
index ef6e37e73..000000000
--- a/ipapython/platform/fedora16/__init__.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# Author: Alexander Bokovoy <abokovoy@redhat.com>
-#
-# Copyright (C) 2011 Red Hat
-# 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/>.
-#
-
-from ipapython.platform import base, redhat
-from ipapython.platform.fedora16 import selinux
-from ipapython.platform.fedora16.service import f16_service, Fedora16Services
-
-# All what we allow exporting directly from this module
-# Everything else is made available through these symbols when they are
-# directly imported into ipapython.services:
-# authconfig -- class reference for platform-specific implementation of
-# authconfig(8)
-# service -- class reference for platform-specific implementation of a
-# PlatformService class
-# knownservices -- factory instance to access named services IPA cares about,
-# names are ipapython.services.wellknownservices
-# backup_and_replace_hostname -- platform-specific way to set hostname and
-# make it persistent over reboots
-# restore_context -- platform-sepcific way to restore security context, if
-# applicable
-# check_selinux_status -- platform-specific way to see if SELinux is enabled
-# and restorecon is installed.
-__all__ = ['authconfig', 'service', 'knownservices',
- 'backup_and_replace_hostname', 'restore_context', 'check_selinux_status',
- 'restore_network_configuration', 'timedate_services', 'FIREFOX_EXEC',
- 'FIREFOX_INSTALL_DIRS', 'FIREFOX_PREFERENCES_REL_PATH']
-
-# Just copy a referential list of timedate services
-timedate_services = list(base.timedate_services)
-
-authconfig = redhat.authconfig
-service = f16_service
-knownservices = Fedora16Services()
-backup_and_replace_hostname = redhat.backup_and_replace_hostname
-restore_context = selinux.restore_context
-check_selinux_status = selinux.check_selinux_status
-restore_network_configuration = redhat.restore_network_configuration
-
-# Firefox paths
-FIREFOX_EXEC = base.FIREFOX_EXEC
-FIREFOX_INSTALL_DIRS = base.FIREFOX_INSTALL_DIRS
-FIREFOX_PREFERENCES_REL_PATH = base.FIREFOX_PREFERENCES_REL_PATH
diff --git a/ipapython/platform/fedora16/selinux.py b/ipapython/platform/fedora16/selinux.py
deleted file mode 100644
index 4ecafdc5e..000000000
--- a/ipapython/platform/fedora16/selinux.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# Author: Alexander Bokovoy <abokovoy@redhat.com>
-from ipaplatform.paths import paths
-#
-# Copyright (C) 2011 Red Hat
-# 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/>.
-#
-
-from ipapython.platform import redhat
-
-def restore_context(filepath, restorecon=paths.RESTORECON):
- return redhat.restore_context(filepath, restorecon)
-
-def check_selinux_status(restorecon=paths.RESTORECON):
- return redhat.check_selinux_status(restorecon)
diff --git a/ipapython/platform/fedora18/__init__.py b/ipapython/platform/fedora18/__init__.py
deleted file mode 100644
index f68c08390..000000000
--- a/ipapython/platform/fedora18/__init__.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# Author: Martin Kosek <mkosek@redhat.com>
-#
-# Copyright (C) 2012 Red Hat
-# 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 stat
-import sys
-import socket
-import os
-
-from ipapython import ipautil
-from ipapython.platform import fedora16, base
-
-# All what we allow exporting directly from this module
-# Everything else is made available through these symbols when they are
-# directly imported into ipapython.services:
-# authconfig -- class reference for platform-specific implementation of
-# authconfig(8)
-# service -- class reference for platform-specific implementation of a
-# PlatformService class
-# knownservices -- factory instance to access named services IPA cares about,
-# names are ipapython.services.wellknownservices
-# backup_and_replace_hostname -- platform-specific way to set hostname and
-# make it persistent over reboots
-# restore_network_configuration -- platform-specific way of restoring network
-# configuration (e.g. static hostname)
-# restore_context -- platform-sepcific way to restore security context, if
-# applicable
-# check_selinux_status -- platform-specific way to see if SELinux is enabled
-# and restorecon is installed.
-__all__ = ['authconfig', 'service', 'knownservices',
- 'backup_and_replace_hostname', 'restore_context', 'check_selinux_status',
- 'restore_network_configuration', 'timedate_services', 'FIREFOX_EXEC',
- 'FIREFOX_INSTALL_DIRS', 'FIREFOX_PREFERENCES_REL_PATH']
-
-# Just copy a referential list of timedate services
-timedate_services = list(base.timedate_services)
-
-authconfig = fedora16.authconfig
-service = fedora16.service
-knownservices = fedora16.knownservices
-restore_context = fedora16.restore_context
-check_selinux_status = fedora16.check_selinux_status
-
-# Firefox paths
-FIREFOX_EXEC = base.FIREFOX_EXEC
-FIREFOX_INSTALL_DIRS = base.FIREFOX_INSTALL_DIRS
-FIREFOX_PREFERENCES_REL_PATH = base.FIREFOX_PREFERENCES_REL_PATH
diff --git a/ipapython/platform/fedora19/__init__.py b/ipapython/platform/fedora19/__init__.py
deleted file mode 100644
index 0981f4ff4..000000000
--- a/ipapython/platform/fedora19/__init__.py
+++ /dev/null
@@ -1,72 +0,0 @@
-# Author: Tomas Babej <tbabej@redhat.com>
-#
-# Copyright (C) 2013 Red Hat
-# 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 shutil
-import os
-
-from subprocess import CalledProcessError
-
-from ipapython.ipa_log_manager import root_logger
-from ipapython.ipautil import run
-
-from ipapython.platform import fedora18, base
-
-# All what we allow exporting directly from this module
-
-# Everything else is made available through these symbols when they are
-# directly imported into ipapython.services:
-
-# authconfig -- class reference for platform-specific implementation of
-# authconfig(8)
-# service -- class reference for platform-specific implementation of a
-# PlatformService class
-# knownservices -- factory instance to access named services IPA cares about,
-# names are ipapython.services.wellknownservices
-# backup_and_replace_hostname -- platform-specific way to set hostname and
-# make it persistent over reboots
-# restore_network_configuration -- platform-specific way of restoring network
-# configuration (e.g. static hostname)
-# restore_context -- platform-sepcific way to restore security context, if
-# applicable
-# check_selinux_status -- platform-specific way to see if SELinux is enabled
-# and restorecon is installed.
-# insert_ca_cert_into_systemwide_ca_store - platform-specific way to insert our
-# CA certificate into the systemwide
-# CA store
-# remove_ca_cert_from_systemwide_ca_store - platform-specific way to remove our
-# CA certificate from the systemwide
-# CA store
-
-
-__all__ = ['authconfig', 'service', 'knownservices',
- 'backup_and_replace_hostname', 'restore_context', 'check_selinux_status',
- 'restore_network_configuration', 'timedate_services',
- 'insert_ca_cert_into_systemwide_ca_store',
- 'remove_ca_cert_from_systemwide_ca_store']
-
-# Just copy a referential list of timedate services
-timedate_services = list(base.timedate_services)
-
-backup_and_replace_hostname = fedora18.backup_and_replace_hostname
-restore_network_configuration = fedora18.restore_network_configuration
-authconfig = fedora18.authconfig
-service = fedora18.service
-knownservices = fedora18.knownservices
-restore_context = fedora18.restore_context
-check_selinux_status = fedora18.check_selinux_status
diff --git a/ipapython/services.py.in b/ipapython/services.py.in
deleted file mode 100644
index 8d95f5346..000000000
--- a/ipapython/services.py.in
+++ /dev/null
@@ -1,31 +0,0 @@
-# Authors: Alexander Bokovoy <abokovoy@redhat.com>
-#
-# Copyright (C) 2011 Red Hat
-# 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/>.
-
-# authconfig is an entry point to platform-provided AuthConfig implementation
-# (instance of ipapython.platform.base.AuthConfig)
-authconfig = None
-
-# knownservices is an entry point to known platform services
-# (instance of ipapython.platform.base.KnownServices)
-knownservices = None
-
-# service is a class to instantiate ipapython.platform.base.PlatformService
-service = None
-
-
-from ipapython.platform.SUPPORTED_PLATFORM import *