Skip to content

Commit

Permalink
Merge pull request #192 from yamada-h/add-zk-control-to-package
Browse files Browse the repository at this point in the history
Add zk_control to rpm/deb package
  • Loading branch information
mitake committed Nov 13, 2015
2 parents 0d76f38 + 3d1c33c commit 04fe301
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ RPMBUILD_REQ_OPTS =
RPMBUILD_BUILD_REQ_OPTS =

if BUILD_ZOOKEEPER
RPMBUILDOPTS += --define "_have_zookeeper 1"
RPMBUILD_CONFIG_OPTS += --enable-zookeeper
RPMBUILD_BUILD_REQ_OPTS += zookeeper-native
endif
Expand Down
3 changes: 3 additions & 0 deletions sheepdog.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ fi
%{_sbindir}/sheepfs
%{_bindir}/dog
%{_sbindir}/shepherd
%if 0%{_have_zookeeper}
%{_sbindir}/zk_control
%endif
%attr(755,-,-)%config %{_initddir}/sheepdog
%dir %{_localstatedir}/lib/sheepdog
%config %{_sysconfdir}/bash_completion.d/dog
Expand Down
6 changes: 4 additions & 2 deletions tools/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
MAINTAINERCLEANFILES = Makefile.in

noinst_PROGRAMS =
sbin_PROGRAMS =

if BUILD_ZOOKEEPER
noinst_PROGRAMS += zk_control
sbin_PROGRAMS += zk_control

zk_control_SOURCES = zk_control.c

zk_control_LDADD = -lzookeeper_mt
endif

noinst_PROGRAMS = $(sbin_PROGRAMS)

0 comments on commit 04fe301

Please sign in to comment.