freeipa/debian/rules

67 lines
1.8 KiB
Plaintext
Raw Normal View History

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
ONLY_CLIENT=1
DESTDIR=$(CURDIR)/debian/tmp
2011-10-28 07:57:29 -05:00
export SUPPORTED_PLATFORM=debian
override_dh_auto_clean:
2011-11-01 17:04:54 -05:00
for i in daemons install ipapython ipaserver ipa-client; do \
2011-11-01 16:49:50 -05:00
(cd $$i && [ ! -f Makefile ] || $(MAKE) distclean); \
(cd $$i && rm -f COPYING INSTALL depcomp install-sh missing py-compile config.guess config.sub aclocal.m4 config.h.in version.m4); \
done
find . -name "*.pyo" -o -name "*.pyc" -type f -exec rm -f "{}" \;
find . -name "ltmain.sh" -exec rm -f "{}" \;
find . -name "configure" -exec rm -f "{}" \;
2011-11-01 16:49:50 -05:00
rm -rf daemons/ipa-version.h freeipa.spec freeipa.egg-info ipa-client/ipa-client.spec version.m4
2011-11-01 17:04:54 -05:00
rm -rf ipapython/build RELEASE build
dh_clean
rm -rf $(DESTDIR)
2011-11-01 16:52:25 -05:00
override_dh_autoreconf:
make IPA_VERSION_IS_GIT_SNAPSHOT=no version-update
dh_autoreconf; cd ..
override_dh_auto_configure:
2011-11-01 10:50:09 -05:00
dh_auto_configure -Dipa-client
2011-10-29 00:28:11 -05:00
ifneq ($(ONLY_CLIENT), 1)
2011-11-01 10:50:09 -05:00
dh_auto_configure -Ddaemons -- --with-openldap
dh_auto_configure -Dinstall
2011-10-29 00:28:11 -05:00
endif
override_dh_auto_build:
2011-10-29 00:28:11 -05:00
ifneq ($(ONLY_CLIENT), 1)
make IPA_VERSION_IS_GIT_SNAPSHOT=no all
cd selinux ; make all
else
make IPA_VERSION_IS_GIT_SNAPSHOT=no client
endif
ifeq ($(ONLY_CLIENT), 1)
override_dh_auto_test:
endif
2011-11-01 11:12:14 -05:00
override_dh_auto_install:
2011-10-29 00:28:11 -05:00
ifneq ($(ONLY_CLIENT), 1)
# Force re-generate of platform support
rm -f ipapython/services.py
make IPA_VERSION_IS_GIT_SNAPSHOT=no install DESTDIR=$(DESTDIR)
2011-10-29 00:28:11 -05:00
cd selinux
make IPA_VERSION_IS_GIT_SNAPSHOT=no install DESTDIR=$(DESTDIR)
2011-10-29 00:28:11 -05:00
cd ..
else
make IPA_VERSION_IS_GIT_SNAPSHOT=no client-install DESTDIR=$(DESTDIR)
2011-10-29 00:28:11 -05:00
endif
mkdir -p $(DESTDIR)/etc/ipa
touch $(DESTDIR)/etc/ipa/default.conf
mkdir -p $(DESTDIR)/var/lib/ipa-client/sysrestore
2011-11-01 17:55:34 -05:00
dh_install --list-missing
%:
dh $@ --with quilt,autoreconf