Skip to content

Commit 4915261

Browse files
author
Andrei Zavada
committed
osx package
1 parent 19628dd commit 4915261

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ rel-deb: compile
8686
@$(REBAR) as deb release
8787
@tar --exclude=vcs -c -C _build/deb/rel riak | tar -x -C rel
8888

89+
rel-osx: compile
90+
@$(REBAR) as osx release
91+
@tar --exclude=vcs -c -C _build/osx/rel riak | tar -x -C rel
92+
8993
relclean:
9094
@rm -rf $(REL_DIR)
9195
@rm -rf rel/riak rel/.libs rel/.deps

rebar.config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,10 @@
177177
{wait_for_process, riak_core_node_watcher}]}
178178
]}
179179
]}
180+
]},
181+
{osx, [
182+
{relx, [
183+
{overlay_vars, "rel/pkg/osx/vars.config"}
184+
]}
180185
]}
181186
]}.

rel/pkg/osx/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
BUILDDIR = $(shell pwd)
2+
BUILD_STAGE_DIR = $(BUILDDIR)/riak
3+
PKGNAME = riak-$(PKG_ID)
4+
5+
default: buildrel
6+
mkdir ../packages
7+
tar -czf ../packages/$(PKGNAME).tar.gz -C rel riak && \
8+
(cd ../packages && shasum -a 256 $(PKGNAME).tar.gz > $(PKGNAME).tar.gz.sha)
9+
10+
buildrel:
11+
tar -xf $(BASE_DIR)/rel/pkg/out/$(PKG_ID).tar.gz -C $(BASE_DIR)/rel/pkg/out/$(PKGNAME)
12+
$(MAKE) -C $(BASE_DIR)/rel/pkg/out/$(PKGNAME) rel-osx
13+
chmod 0755 rel/riak/bin/* rel/riak/erts-*/bin/*

rel/pkg/osx/vars.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../vars.config

0 commit comments

Comments
 (0)