mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-02 09:29:28 -05:00
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>
This commit is contained in:
committed by
Martin Basti
parent
ed7a03a1af
commit
2e784336b0
+13
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user