summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-02-25 12:33:01 +0100
committerSimo Sorce <ssorce@redhat.com>2009-02-25 10:59:47 -0500
commit857a38bb601f45116b4f9f963024a3eb9343329e (patch)
tree67c39b7a3cef9b98a8c45ef926cbc029ca717939
parentfcef1231eea30ee9cdc75f3f39f4b9207a84ea1d (diff)
downloadsssd-857a38bb601f45116b4f9f963024a3eb9343329e.tar.gz
sssd-857a38bb601f45116b4f9f963024a3eb9343329e.tar.bz2
sssd-857a38bb601f45116b4f9f963024a3eb9343329e.zip
top-level Makefile, create libdir/name in server/Makefile.in
-rw-r--r--Makefile54
-rw-r--r--server/Makefile.in1
-rw-r--r--sssd.spec1
3 files changed, 56 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..e2c14ce3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,54 @@
+PACKAGE_NAME = sssd
+PACKAGE_VERSION = 0.1.0
+TARGET ?= master
+SUBDIRS = server replace nss_client
+TARBALL_PREFIX = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+TARBALL = $(TARBALL_PREFIX).tar.gz
+LIBDIR ?= /usr/lib
+RPMBUILD ?= $(PWD)/rpmbuild
+
+all:
+
+clean:
+ rm -Rf dist
+ rm -Rf $(RPMBUILD)
+
+realdistclean: clean
+ -make -C server realdistclean
+
+archive:
+ -mkdir -p dist/$(TARBALL_PREFIX)
+ git archive --format=tar --prefix=sssd/ $(TARGET) | (cd dist && tar xf -)
+ @for subdir in $(SUBDIRS); do \
+ cp -pr dist/sssd/$$subdir dist/$(TARBALL_PREFIX)/.; \
+ done
+
+local-archive: realdistclean
+ -mkdir -p dist/$(TARBALL_PREFIX)
+ @for subdir in $(SUBDIRS); do \
+ cp -pr $$subdir dist/$(TARBALL_PREFIX)/.; \
+ done
+
+tarballs: local-archive
+ -mkdir -p dist/sources
+ rm -f dist/sources/$(TARBALL)
+ cd dist/$(TARBALL_PREFIX)/server; ./autogen.sh
+ cd dist; tar cfz sources/$(TARBALL) $(TARBALL_PREFIX)
+
+
+rpmroot:
+ mkdir -p $(RPMBUILD)/BUILD
+ mkdir -p $(RPMBUILD)/RPMS
+ mkdir -p $(RPMBUILD)/SOURCES
+ mkdir -p $(RPMBUILD)/SPECS
+ mkdir -p $(RPMBUILD)/SRPMS
+
+rpmdistdir:
+ mkdir -p dist/rpms
+ mkdir -p dist/srpms
+
+rpms: tarballs rpmroot rpmdistdir
+ cp sssd.spec $(RPMBUILD)/SPECS
+ cp dist/sources/$(TARBALL) $(RPMBUILD)/SOURCES
+ cd $(RPMBUILD); rpmbuild --define "_topdir $(RPMBUILD)" -ba SPECS/sssd.spec
+
diff --git a/server/Makefile.in b/server/Makefile.in
index 158202ca..7acb2764 100644
--- a/server/Makefile.in
+++ b/server/Makefile.in
@@ -157,6 +157,7 @@ installdirs::
mkdir -p $(DESTDIR)$(includedir) \
$(DESTDIR)$(libdir) \
$(DESTDIR)$(sbindir) \
+ $(DESTDIR)$(SSSD_LIBDIR) \
$(DESTDIR)$(DBUS_SYSBUS_POLICY_DIR) \
$(DESTDIR)$(SSSD_INTROSPECT_PATH)/infopipe
diff --git a/sssd.spec b/sssd.spec
index 9de6d2ba..b874568b 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -69,6 +69,7 @@ rm -rf $RPM_BUILD_ROOT
# infopipe files
%{_libexecdir}/sssd/sssd_info
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freeipa.sssd.infopipe.conf
+%{_datadir}/%{name}/introspect/infopipe/org.freeipa.sssd.infopipe.Introspect.xml
%changelog
* Mon Feb 23 2009 Jakub Hrozek <jhrozek@redhat.com> - 0.1.0-2