From 23ab660d15551137d595592f533b07816811c32e Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Sat, 19 Oct 2013 16:57:48 +0000 Subject: [PATCH] teamplayer: Allow hg branch to be specified. Also change the TP_REPO to point to bitbucket. --- teamplayer/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/teamplayer/Makefile b/teamplayer/Makefile index 393a4db..8b31ead 100644 --- a/teamplayer/Makefile +++ b/teamplayer/Makefile @@ -1,4 +1,5 @@ -TP_REPO ?= ../../teamplayer +TP_REPO ?= https://bitbucket.org/marduk/teamplayer +TP_BRANCH ?= default TP_USER = teamplayer TP_HOME = /opt/teamplayer TP_DB = /var/lib/teamplayer @@ -39,7 +40,7 @@ endif $(inroot) useradd -c "Teamplayer Server" -G postgres -U -d $(TP_HOME) $(TP_USER) rm -rf $(CHROOT)/$(TP_HOME) mkdir -p $(CHROOT)/$(TP_HOME) - hg clone --pull $(TP_REPO) $(CHROOT)/$(TP_HOME)/teamplayer + hg clone -u $(TP_BRANCH) $(TP_REPO) $(CHROOT)/$(TP_HOME)/teamplayer cp bash_profile $(CHROOT)$(TP_HOME)/.bash_profile $(inroot) virtualenv $(TP_HOME) $(inroot) bash -c ". $(TP_HOME)/bin/activate ; pip install -e $(TP_HOME)/teamplayer"