summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile10
-rw-r--r--ipa-client/AUTHORS0
-rw-r--r--ipa-client/NEWS0
-rw-r--r--ipa-client/README0
-rwxr-xr-xipa-client/freeipa-client.spec6
-rw-r--r--ipa-client/freeipa-client.spec.in6
-rw-r--r--ipa-server/AUTHORS0
-rw-r--r--ipa-server/NEWS0
-rw-r--r--ipa-server/README0
-rwxr-xr-xipa-server/freeipa-server.spec12
-rw-r--r--ipa-server/freeipa-server.spec.in12
-rw-r--r--ipa-server/ipa-slapi-plugins/dna/Makefile.am2
-rw-r--r--ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile.am2
-rw-r--r--ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile.am2
14 files changed, 35 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index dc2a4837f..6f89094d9 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,10 @@ all:
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
+autogen:
+ cd ipa-server && sh autogen.sh --prefix=/usr --sysconfdir=/etc
+ cd ipa-client && sh autogen.sh --prefix=/usr --sysconfdir=/etc
+
install: all
@for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) $@) || exit 1; \
@@ -87,6 +91,7 @@ tarballs:
# ipa-server
mv dist/freeipa/ipa-server dist/$(SERV_TARBALL_PREFIX)
rm -f dist/$(SERV_TARBALL)
+ cd dist/$(SERV_TARBALL_PREFIX; sh autogen.sh
cd dist; tar cfz $(SERV_TARBALL) $(SERV_TARBALL_PREFIX)
rm -fr dist/$(SERV_TARBALL_PREFIX)
@@ -105,6 +110,7 @@ tarballs:
# ipa-client
mv dist/freeipa/ipa-client dist/$(CLI_TARBALL_PREFIX)
rm -f dist/$(CLI_TARBALL)
+ cd dist/$(CLI_TARBALL_PREFIX; sh autogen.sh
cd dist; tar cfz $(CLI_TARBALL) $(CLI_TARBALL_PREFIX)
rm -fr dist/$(CLI_TARBALL_PREFIX)
@@ -145,5 +151,7 @@ dist: version-update archive tarballs archive-cleanup rpms
local-dist: clean version-update local-archive tarballs archive-cleanup rpms
-dist-clean: clean
+maintainer-clean: clean
rm -fr rpmbuild dist
+ cd ipa-server && $(MAKE) maintainer-clean
+ cd ipa-client && $(MAKE) maintainer-clean
diff --git a/ipa-client/AUTHORS b/ipa-client/AUTHORS
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ipa-client/AUTHORS
diff --git a/ipa-client/NEWS b/ipa-client/NEWS
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ipa-client/NEWS
diff --git a/ipa-client/README b/ipa-client/README
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ipa-client/README
diff --git a/ipa-client/freeipa-client.spec b/ipa-client/freeipa-client.spec
index 67e241d64..6a5790c16 100755
--- a/ipa-client/freeipa-client.spec
+++ b/ipa-client/freeipa-client.spec
@@ -17,16 +17,16 @@ The client package provide install and configuration scripts for clients.
%prep
%setup -q
+./configure --prefix=%{buildroot}/usr --libdir=%{buildroot}/%{_libdir} --sysconfdir=%{buildroot}/etc
%build
-make DESTDIR=%{buildroot}
+make
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}%{_sbindir}
-make install DESTDIR=%{buildroot}
+make install
%clean
diff --git a/ipa-client/freeipa-client.spec.in b/ipa-client/freeipa-client.spec.in
index 3644e1577..50b32a91a 100644
--- a/ipa-client/freeipa-client.spec.in
+++ b/ipa-client/freeipa-client.spec.in
@@ -17,16 +17,16 @@ The client package provide install and configuration scripts for clients.
%prep
%setup -q
+./configure --prefix=%{buildroot}/usr --libdir=%{buildroot}/%{_libdir} --sysconfdir=%{buildroot}/etc
%build
-make DESTDIR=%{buildroot}
+make
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}%{_sbindir}
-make install DESTDIR=%{buildroot}
+make install
%clean
diff --git a/ipa-server/AUTHORS b/ipa-server/AUTHORS
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ipa-server/AUTHORS
diff --git a/ipa-server/NEWS b/ipa-server/NEWS
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ipa-server/NEWS
diff --git a/ipa-server/README b/ipa-server/README
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ipa-server/README
diff --git a/ipa-server/freeipa-server.spec b/ipa-server/freeipa-server.spec
index eaca6ac17..31fe01b66 100755
--- a/ipa-server/freeipa-server.spec
+++ b/ipa-server/freeipa-server.spec
@@ -21,17 +21,16 @@ FreeIPA is a server for identity, policy, and audit.
%prep
%setup -q
+./configure --prefix=%{buildroot}/usr --libdir=%{buildroot}/%{_libdir} --sysconfdir=%{buildroot}/etc
%build
-make DESTDIR=%{buildroot}
+make
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}%{_sbindir}
-mkdir -p %{buildroot}%{plugin_dir}
-make install DESTDIR=%{buildroot} LIBDIR=%{buildroot}%{_libdir}
+make install
%clean
@@ -41,7 +40,7 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/ipa-server-install
-%{_sbindir}/ipa_kpasswd
+%{_sbindir}/ipa-kpasswd
%{_sbindir}/ipa-webgui
%attr(755,root,root) %{_initrddir}/ipa-kpasswd
%attr(755,root,root) %{_initrddir}/ipa-webgui
@@ -50,8 +49,11 @@ rm -rf %{buildroot}
%{_usr}/share/ipa/*
%attr(755,root,root) %{plugin_dir}/libipa_pwd_extop.so
+%attr(755,root,root) %{plugin_dir}/libipa_pwd_extop.la
%attr(755,root,root) %{plugin_dir}/libipa-memberof-plugin.so
+%attr(755,root,root) %{plugin_dir}/libipa-memberof-plugin.la
%attr(755,root,root) %{plugin_dir}/libipa-dna-plugin.so
+%attr(755,root,root) %{plugin_dir}/libipa-dna-plugin.la
%changelog
diff --git a/ipa-server/freeipa-server.spec.in b/ipa-server/freeipa-server.spec.in
index 1b7e219fc..a6498d34a 100644
--- a/ipa-server/freeipa-server.spec.in
+++ b/ipa-server/freeipa-server.spec.in
@@ -21,17 +21,16 @@ FreeIPA is a server for identity, policy, and audit.
%prep
%setup -q
+./configure --prefix=%{buildroot}/usr --libdir=%{buildroot}/%{_libdir} --sysconfdir=%{buildroot}/etc
%build
-make DESTDIR=%{buildroot}
+make
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}%{_sbindir}
-mkdir -p %{buildroot}%{plugin_dir}
-make install DESTDIR=%{buildroot} LIBDIR=%{buildroot}%{_libdir}
+make install
%clean
@@ -41,7 +40,7 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/ipa-server-install
-%{_sbindir}/ipa_kpasswd
+%{_sbindir}/ipa-kpasswd
%{_sbindir}/ipa-webgui
%attr(755,root,root) %{_initrddir}/ipa-kpasswd
%attr(755,root,root) %{_initrddir}/ipa-webgui
@@ -50,8 +49,11 @@ rm -rf %{buildroot}
%{_usr}/share/ipa/*
%attr(755,root,root) %{plugin_dir}/libipa_pwd_extop.so
+%attr(755,root,root) %{plugin_dir}/libipa_pwd_extop.la
%attr(755,root,root) %{plugin_dir}/libipa-memberof-plugin.so
+%attr(755,root,root) %{plugin_dir}/libipa-memberof-plugin.la
%attr(755,root,root) %{plugin_dir}/libipa-dna-plugin.so
+%attr(755,root,root) %{plugin_dir}/libipa-dna-plugin.la
%changelog
diff --git a/ipa-server/ipa-slapi-plugins/dna/Makefile.am b/ipa-server/ipa-slapi-plugins/dna/Makefile.am
index d8d6d1d7b..57a99764b 100644
--- a/ipa-server/ipa-slapi-plugins/dna/Makefile.am
+++ b/ipa-server/ipa-slapi-plugins/dna/Makefile.am
@@ -23,6 +23,8 @@ libipa_dna_plugin_la_SOURCES = \
dna.c \
$(NULL)
+libipa_dna_plugin_la_LDFLAGS = -avoid-version
+
libipa_dna_plugin_la_LIBADD = \
$(MOZLDAP_LIBS) \
$(NULL)
diff --git a/ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile.am b/ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile.am
index bc236c32c..54ddd538a 100644
--- a/ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile.am
+++ b/ipa-server/ipa-slapi-plugins/ipa-memberof/Makefile.am
@@ -23,6 +23,8 @@ libipa_memberof_plugin_la_SOURCES = \
ipa-memberof.c \
$(NULL)
+libipa_memberof_plugin_la_LDFLAGS = -avoid-version
+
libipa_memberof_plugin_la_LIBADD = \
$(MOZLDAP_LIBS) \
$(NULL)
diff --git a/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile.am b/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile.am
index 684243839..5c0fb2325 100644
--- a/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile.am
+++ b/ipa-server/ipa-slapi-plugins/ipa-pwd-extop/Makefile.am
@@ -23,6 +23,8 @@ libipa_pwd_extop_la_SOURCES = \
ipa_pwd_extop.c \
$(NULL)
+libipa_pwd_extop_la_LDFLAGS = -avoid-version
+
libipa_pwd_extop_la_LIBADD = \
$(MOZLDAP_LIBS) \
$(NULL)