Permalink
Browse files

Move redhat symlink creation from spec file to build system

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information...
1 parent 0f139c5 commit 457a667ab801d6700122be5cf6cbb368c52f79dd @fabbione fabbione committed May 12, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −0 Makefile.am
  2. +0 −4 resource-agents.spec.in
View
@@ -50,6 +50,9 @@ if BUILD_LINUX_HA
$(LN_S) ../../lib/heartbeat/ocf-shellfuncs $(DESTDIR)${OCF_RA_DIR_PREFIX}/heartbeat/.ocf-shellfuncs
endif
if BUILD_RGMANAGER
+if BUILD_LINUX_HA
+ $(LN_S) ${CLUSTERDATA} $(DESTDIR)${OCF_RA_DIR_PREFIX}/redhat
+endif
$(INSTALL) -d $(DESTDIR)/$(LOGDIR)
endif
View
@@ -192,10 +192,6 @@ test -d %{buildroot}/sbin || mkdir %{buildroot}/sbin
) || true
%endif
-# symlink to allow pacemaker to use rgmanager RAs (this should really come from automake!)
-cd %{buildroot}/usr/lib/ocf/resource.d/ && \
- ln -sf %{_datadir}/cluster/ redhat
-
%clean
rm -rf %{buildroot}

0 comments on commit 457a667

Please sign in to comment.