2008-12-06 13:16:49 +00:00
|
|
|
#!/usr/bin/make -f
|
2008-11-24 23:21:36 +00:00
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
2008-11-26 21:25:42 +00:00
|
|
|
export DH_VERBOSE=1
|
2008-11-24 23:21:36 +00:00
|
|
|
|
2011-10-28 15:12:50 +03:00
|
|
|
ONLY_CLIENT=1
|
|
|
|
|
DESTDIR=$(CURDIR)/debian/tmp
|
2008-11-24 23:21:36 +00:00
|
|
|
|
2011-10-28 15:57:29 +03:00
|
|
|
export SUPPORTED_PLATFORM=debian
|
2008-11-24 23:21:36 +00:00
|
|
|
|
2011-10-28 15:12:50 +03:00
|
|
|
override_dh_auto_clean:
|
2008-11-24 23:21:36 +00:00
|
|
|
rm -rf ipa-python/build
|
2011-10-29 08:28:11 +03:00
|
|
|
# for i in "ipa-server" "ipa-client"; do \
|
|
|
|
|
# (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
|
2008-11-24 23:21:36 +00:00
|
|
|
find . -name "*.pyo" -o -name "*.pyc" -type f -exec rm -f "{}" \;
|
|
|
|
|
find . -name "ltmain.sh" -exec rm -f "{}" \;
|
|
|
|
|
find . -name "configure" -exec rm -f "{}" \;
|
|
|
|
|
dh_clean
|
2011-10-28 15:12:50 +03:00
|
|
|
rm -rf $(DESTDIR)
|
2008-11-24 23:21:36 +00:00
|
|
|
|
2011-10-29 08:28:11 +03:00
|
|
|
#override_dh_autoreconf:
|
|
|
|
|
# dh_autoreconf; cd ..
|
|
|
|
|
# ifneq ($(ONLY_CLIENT), 1)
|
|
|
|
|
# cd daemons; dh_autoreconf; cd ..
|
|
|
|
|
# cd install; dh_autoreconf; cd ..
|
|
|
|
|
# endif
|
2008-11-24 23:21:36 +00:00
|
|
|
|
2011-10-28 15:12:50 +03:00
|
|
|
override_dh_auto_configure:
|
2011-11-01 17:00:10 -04:00
|
|
|
make IPA_VERSION_IS_GIT_SNAPSHOT=no version-update
|
2011-11-01 11:50:09 -04:00
|
|
|
dh_auto_configure -Dipa-client
|
2011-10-29 08:28:11 +03:00
|
|
|
ifneq ($(ONLY_CLIENT), 1)
|
2011-11-01 11:50:09 -04:00
|
|
|
dh_auto_configure -Ddaemons -- --with-openldap
|
|
|
|
|
dh_auto_configure -Dinstall
|
2011-10-29 08:28:11 +03:00
|
|
|
endif
|
2011-10-28 15:12:50 +03:00
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
2011-10-29 08:28:11 +03: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
|
2008-11-26 21:25:42 +00:00
|
|
|
|
2011-11-01 11:54:35 -04:00
|
|
|
ifeq ($(ONLY_CLIENT), 1)
|
|
|
|
|
override_dh_auto_test:
|
|
|
|
|
endif
|
|
|
|
|
|
2011-11-01 12:12:14 -04:00
|
|
|
override_dh_auto_install:
|
2011-10-29 08:28:11 +03:00
|
|
|
ifneq ($(ONLY_CLIENT), 1)
|
|
|
|
|
# Force re-generate of platform support
|
|
|
|
|
rm -f ipapython/services.py
|
|
|
|
|
make install DESTDIR=$(DESTDIR)
|
|
|
|
|
cd selinux
|
|
|
|
|
make install DESTDIR=$(DESTDIR)
|
|
|
|
|
cd ..
|
|
|
|
|
else
|
|
|
|
|
make client-install DESTDIR=$(DESTDIR)
|
|
|
|
|
endif
|
2008-11-25 21:07:30 +00:00
|
|
|
|
2011-10-28 15:12:50 +03:00
|
|
|
mkdir -p $(DESTDIR)/etc/ipa
|
|
|
|
|
touch $(DESTDIR)/etc/ipa/default.conf
|
|
|
|
|
mkdir -p $(DESTDIR)/var/lib/ipa-client/sysrestore
|
|
|
|
|
|
|
|
|
|
dh_install
|
2008-11-24 23:21:36 +00:00
|
|
|
|
2011-10-28 15:12:50 +03:00
|
|
|
%:
|
|
|
|
|
dh $@ --with quilt,autoreconf
|