summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-10-17 15:56:41 +0200
committerMartin Basti <mbasti@redhat.com>2016-10-17 17:21:49 +0200
commitb9d68b5c3503bb708f637be6bb173a742b4105b4 (patch)
tree74e60ade25ef5d8db217bc6e56cb0dc663afe2d3
parent16dad1c3cb09acee946bc5b2409447279a8bc0de (diff)
downloadfreeipa-b9d68b5c3503bb708f637be6bb173a742b4105b4.tar.gz
freeipa-b9d68b5c3503bb708f637be6bb173a742b4105b4.tar.xz
freeipa-b9d68b5c3503bb708f637be6bb173a742b4105b4.zip
Move ipa.1 man file
setuptools does not support data_files any more. The ipa(1) man page is now handled like the remaining man pages. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Petr Spacek <pspacek@redhat.com>
-rw-r--r--client/man/Makefile.am3
-rw-r--r--client/man/ipa.1 (renamed from ipa.1)0
-rw-r--r--ipaclient/setup.py.in1
-rwxr-xr-xsetup.py42
4 files changed, 2 insertions, 44 deletions
diff --git a/client/man/Makefile.am b/client/man/Makefile.am
index 9d8a9c03d..1f067ab40 100644
--- a/client/man/Makefile.am
+++ b/client/man/Makefile.am
@@ -10,7 +10,8 @@ man1_MANS = \
ipa-client-install.1 \
ipa-client-automount.1 \
ipa-certupdate.1 \
- ipa-join.1
+ ipa-join.1 \
+ ipa.1
man5_MANS = \
default.conf.5
diff --git a/ipa.1 b/client/man/ipa.1
index 9194ca071..9194ca071 100644
--- a/ipa.1
+++ b/client/man/ipa.1
diff --git a/ipaclient/setup.py.in b/ipaclient/setup.py.in
index 1c8654f00..d1fdd3e11 100644
--- a/ipaclient/setup.py.in
+++ b/ipaclient/setup.py.in
@@ -70,7 +70,6 @@ def setup_package():
"ipaclient.remote_plugins.2_164",
],
scripts=['../ipa'],
- data_files = [('share/man/man1', ["../ipa.1"])],
)
finally:
del sys.path[0]
diff --git a/setup.py b/setup.py
index 960a8f230..66bf7dfdf 100755
--- a/setup.py
+++ b/setup.py
@@ -24,50 +24,8 @@ Python-level packaging using distutils.
"""
from distutils.core import setup
-from distutils.command.install_data import install_data as _install_data
-from distutils.util import change_root, convert_path
-from distutils import log
import ipalib
-import os
-class install_data(_install_data):
- """Override the built-in install_data to gzip files once they
- are installed.
- """
-
- def run(self):
- # install_data is a classic class so super() won't work. Call it
- # directly to copy the files first.
- _install_data.run(self)
-
- # Now gzip them
- for f in self.data_files:
- if isinstance(f, str):
- # it's a simple file
- f = convert_path(f)
- cmd = '/bin/gzip %s/%s' % (self.install_dir, f)
- log.info("gzipping %s/%s" % (self.install_dir, f))
- os.system(cmd)
- else:
- # it's a tuple with path and a list of files
- dir = convert_path(f[0])
- if not os.path.isabs(dir):
- dir = os.path.join(self.install_dir, dir)
- elif self.root:
- dir = change_root(self.root, dir)
-
- if f[1] == []:
- # If there are no files listed the user must be
- # trying to create an empty directory. So nothing
- # to do here.
- pass
- else:
- # gzip the files
- for data in f[1]:
- data = convert_path(data)
- cmd = '/bin/gzip %s/%s' % (dir, data)
- log.info("gzipping %s/%s" % (dir, data))
- os.system(cmd)
setup(
name='freeipa',