various changes to enable server packaging

This commit is contained in:
Timo Aaltonen
2012-01-02 16:09:40 +02:00
parent 83718fca87
commit 2d932c154b
10 changed files with 158 additions and 118 deletions

13
debian/rules vendored
View File

@@ -1,9 +1,9 @@
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
#export DH_VERBOSE=1
ONLY_CLIENT=1
ONLY_CLIENT=0
DESTDIR=$(CURDIR)/debian/tmp
PLATFORM="SUPPORTED_PLATFORM=debian"
@@ -35,7 +35,7 @@ endif
override_dh_auto_build:
ifneq ($(ONLY_CLIENT), 1)
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no all
cd selinux ; make all
# cd selinux ; make all
else
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no client
endif
@@ -49,8 +49,8 @@ ifneq ($(ONLY_CLIENT), 1)
# Force re-generate of platform support
rm -f ipapython/services.py
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no install DESTDIR=$(DESTDIR)
cd selinux
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no install DESTDIR=$(DESTDIR)
# cd selinux
# make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no install DESTDIR=$(DESTDIR)
cd ..
else
make $(PLATFORM) IPA_VERSION_IS_GIT_SNAPSHOT=no client-install DESTDIR=$(DESTDIR)
@@ -60,6 +60,9 @@ endif
touch $(DESTDIR)/etc/ipa/default.conf
mkdir -p $(DESTDIR)/var/lib/ipa-client/sysrestore
# purge .la files
find $(CURDIR)/debian/tmp -name "*.la" -type f -exec rm -f "{}" \;
dh_install --list-missing
%: