2008-12-06 07:16:49 -06:00
|
|
|
#!/usr/bin/make -f
|
2008-11-24 17:21:36 -06:00
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
2008-11-26 15:25:42 -06:00
|
|
|
export DH_VERBOSE=1
|
2008-11-24 17:21:36 -06:00
|
|
|
|
2011-10-28 07:12:50 -05:00
|
|
|
ONLY_CLIENT=1
|
|
|
|
DESTDIR=$(CURDIR)/debian/tmp
|
2008-11-24 17:21:36 -06:00
|
|
|
|
2011-10-28 07:12:50 -05:00
|
|
|
export SUPPORTED_PLATFORM=ubuntu
|
2008-11-24 17:21:36 -06:00
|
|
|
|
2011-10-28 07:12:50 -05:00
|
|
|
override_dh_auto_clean:
|
2008-11-24 17:21:36 -06:00
|
|
|
rm -rf ipa-python/build
|
|
|
|
for i in "ipa-server" "ipa-client"; do \
|
2008-11-25 09:11:06 -06:00
|
|
|
(cd $$i && [ ! -f Makefile ] || $(MAKE) distclean); \
|
2008-11-26 15:25:42 -06:00
|
|
|
(cd $$i && rm -f COPYING INSTALL depcomp install-sh missing py-compile config.guess config.sub aclocal.m4 config.h.in version.m4); \
|
2008-11-24 17:21:36 -06:00
|
|
|
done
|
|
|
|
find . -name "*.pyo" -o -name "*.pyc" -type f -exec rm -f "{}" \;
|
|
|
|
find . -name "*.spec" -type f -exec rm -f "{}" \;
|
|
|
|
find . -name "ltmain.sh" -exec rm -f "{}" \;
|
|
|
|
find . -name "Makefile.in" -exec rm -f "{}" \;
|
|
|
|
find . -name "configure" -exec rm -f "{}" \;
|
|
|
|
dh_clean
|
2011-10-28 07:12:50 -05:00
|
|
|
rm -rf $(DESTDIR)
|
2008-11-24 17:21:36 -06:00
|
|
|
|
2011-10-28 07:12:50 -05:00
|
|
|
override_dh_autoreconf:
|
|
|
|
cd ipa-client; dh_autoreconf; cd ..
|
|
|
|
ifneq ($(ONLY_CLIENT),1)
|
|
|
|
cd daemons; dh_autoreconf; cd ..
|
|
|
|
cd install; dh_autoreconf; cd ..
|
|
|
|
endif
|
2008-11-24 17:21:36 -06:00
|
|
|
|
2011-10-28 07:12:50 -05:00
|
|
|
override_dh_auto_configure:
|
|
|
|
$(MAKE) version-update
|
|
|
|
cd ipa-client; dh_auto_configure; cd ..
|
|
|
|
ifneq ($(ONLY_CLIENT),1)
|
|
|
|
cd daemons; dh_auto_configure --with-openldap; cd ..
|
|
|
|
cd install; dh_auto_configure; cd ..
|
|
|
|
endif
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
|
|
|
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 15:25:42 -06:00
|
|
|
|
2011-10-28 07:12:50 -05:00
|
|
|
override_dh_install:
|
|
|
|
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 15:07:30 -06:00
|
|
|
|
2011-10-28 07:12:50 -05: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 17:21:36 -06:00
|
|
|
|
2011-10-28 07:12:50 -05:00
|
|
|
%:
|
|
|
|
dh $@ --with quilt,autoreconf
|