summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2007-08-16 18:00:16 -0400
committerSimo Sorce <ssorce@redhat.com>2007-08-16 18:00:16 -0400
commit0e419aa4bf95a9251b88f7878d368c4d9b123cc7 (patch)
treee80651c5191d4a0fc90ef7097e5ccb618630db7d /Makefile
parent0a6007bcf25c83d343613d18df93d054cedc419a (diff)
downloadfreeipa-0e419aa4bf95a9251b88f7878d368c4d9b123cc7.tar.gz
freeipa-0e419aa4bf95a9251b88f7878d368c4d9b123cc7.tar.xz
freeipa-0e419aa4bf95a9251b88f7878d368c4d9b123cc7.zip
Add a prototype client tool to configure a client of the IPA server
Right now it does only discovery (or fallback)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 24 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2e9208304..93ffe09b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-SUBDIRS=ipa-server ipa-admintools ipa-python
+SUBDIRS=ipa-server ipa-admintools ipa-python ipa-client
PRJ_PREFIX=freeipa
@@ -31,6 +31,13 @@ PYTHON_VERSION=$(PYTHON_MAJOR).$(PYTHON_MINOR).$(PYTHON_RELEASE)
PYTHON_TARBALL_PREFIX=$(PRJ_PREFIX)-python-$(PYTHON_VERSION)
PYTHON_TARBALL=$(PYTHON_TARBALL_PREFIX).tgz
+CLI_MAJOR=0
+CLI_MINOR=1
+CLI_RELEASE=0
+CLI_VERSION=$(CLI_MAJOR).$(CLI_MINOR).$(CLI_RELEASE)
+CLI_TARBALL_PREFIX=$(PRJ_PREFIX)-client-$(CLI_VERSION)
+CLI_TARBALL=$(CLI_TARBALL_PREFIX).tgz
+
ifeq ($(DEBUG),1)
export CFLAGS = -g -Wall -Wshadow
export LDFLAGS = -g
@@ -63,6 +70,9 @@ version-update:
sed s/VERSION/$(PYTHON_VERSION)/ ipa-python/freeipa-python.spec.in \
> ipa-python/freeipa-python.spec
+ sed s/VERSION/$(CLI_VERSION)/ ipa-client/freeipa-client.spec.in \
+ > ipa-client/freeipa-client.spec
+
archive:
-mkdir -p dist
@@ -96,6 +106,12 @@ tarballs:
cd dist; tar cfz $(PYTHON_TARBALL) $(PYTHON_TARBALL_PREFIX)
rm -fr dist/$(PYTHON_TARBALL_PREFIX)
+ # ipa-client
+ mv dist/freeipa/ipa-client dist/$(CLI_TARBALL_PREFIX)
+ rm -f dist/$(CLI_TARBALL)
+ cd dist; tar cfz $(CLI_TARBALL) $(CLI_TARBALL_PREFIX)
+ rm -fr dist/$(CLI_TARBALL_PREFIX)
+
rpmroot:
mkdir -p $(RPMBUILD)/BUILD
mkdir -p $(RPMBUILD)/RPMS
@@ -121,7 +137,13 @@ rpm-ipa-python:
cp rpmbuild/RPMS/noarch/$(PRJ_PREFIX)-python-$(PYTHON_VERSION)-*.rpm dist/.
cp rpmbuild/SRPMS/$(PRJ_PREFIX)-python-$(PYTHON_VERSION)-*.src.rpm dist/.
-rpms: rpmroot rpm-ipa-server rpm-ipa-admin rpm-ipa-python
+rpm-ipa-client:
+ cp dist/$(CLI_TARBALL) $(RPMBUILD)/SOURCES/.
+ rpmbuild --define "_topdir $(RPMBUILD)" -ba ipa-client/freeipa-client.spec
+ cp rpmbuild/RPMS/*/$(PRJ_PREFIX)-client-$(CLI_VERSION)-*.rpm dist/.
+ cp rpmbuild/SRPMS/$(PRJ_PREFIX)-client-$(CLI_VERSION)-*.src.rpm dist/.
+
+rpms: rpmroot rpm-ipa-server rpm-ipa-admin rpm-ipa-python rpm-ipa-client
dist: version-update archive tarballs archive-cleanup rpms