summaryrefslogtreecommitdiffstats
path: root/Makefile.python.am
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2017-02-16 15:27:49 +0100
committerMartin Basti <mbasti@redhat.com>2017-03-02 14:43:37 +0100
commit2e784336b0fe99baa47cf3e024f744ed56dc12ec (patch)
tree7e475f1959f400ff8534a1d4e6da465628695240 /Makefile.python.am
parented7a03a1af8b556247b929635e2972be4f2b32e4 (diff)
downloadfreeipa-2e784336b0fe99baa47cf3e024f744ed56dc12ec.tar.gz
freeipa-2e784336b0fe99baa47cf3e024f744ed56dc12ec.tar.xz
freeipa-2e784336b0fe99baa47cf3e024f744ed56dc12ec.zip
Packaging: Add placeholder packages
The ipa and freeipa packages are placeholders to prevent PyPI squashing attacks and reserve the names for future use. `pip install ipa` installs ipaclient. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'Makefile.python.am')
-rw-r--r--Makefile.python.am21
1 files changed, 13 insertions, 8 deletions
diff --git a/Makefile.python.am b/Makefile.python.am
index 665893f43..9c34fe3d0 100644
--- a/Makefile.python.am
+++ b/Makefile.python.am
@@ -1,5 +1,6 @@
pkgname = $(shell basename "$(abs_srcdir)")
pkgpythondir = $(pythondir)/$(pkgname)
+pkginstall = true
if VERBOSE_MAKE
VERBOSITY="--verbose"
@@ -19,16 +20,20 @@ all-local: $(top_builddir)/ipasetup.py
--build-base "$(abs_builddir)/build"
install-exec-local: $(top_builddir)/ipasetup.py
- $(PYTHON) $(srcdir)/setup.py \
- $(VERBOSITY) \
- install \
- --prefix "$(DESTDIR)$(prefix)" \
- --single-version-externally-managed \
- --record "$(DESTDIR)$(pkgpythondir)/install_files.txt" \
- --optimize 1
+ if [ "x$(pkginstall)" = "xtrue" ]; then \
+ $(PYTHON) $(srcdir)/setup.py \
+ $(VERBOSITY) \
+ install \
+ --prefix "$(DESTDIR)$(prefix)" \
+ --single-version-externally-managed \
+ --record "$(DESTDIR)$(pkgpythondir)/install_files.txt" \
+ --optimize 1; \
+ fi
uninstall-local:
- cat "$(DESTDIR)$(pkgpythondir)/install_files.txt" | xargs rm -rf
+ if [ -f "$(DESTDIR)$(pkgpythondir)/install_files.txt" ]; then \
+ cat "$(DESTDIR)$(pkgpythondir)/install_files.txt" | xargs rm -rf ; \
+ fi
rm -rf "$(DESTDIR)$(pkgpythondir)"
clean-local: $(top_builddir)/ipasetup.py