Skip to content

Commit f8da04c

Browse files
author
Jon Ludlam
committed
Move over to using SBINDIR for installing xapi
SBINDIR is currently set to the same as BINDIR Signed-off-by: Jon Ludlam <[email protected]>
1 parent e8aa10f commit f8da04c

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ SHAREDIR=/opt/xensource
3838
WEBDIR=/opt/xensource/www
3939
XHADIR=/opt/xensource/xha
4040
BINDIR=/opt/xensource/bin
41+
SBINDIR=/opt/xensource/bin
4142

42-
export VARDIR ETCDIR OPTDIR PLUGINDIR HOOKSDIR INVENTORY VARPATCHDIR LIBEXECDIR XAPICONF SCRIPTSDIR SHAREDIR WEBDIR XHADIR BINDIR
43+
export VARDIR ETCDIR OPTDIR PLUGINDIR HOOKSDIR INVENTORY VARPATCHDIR LIBEXECDIR XAPICONF SCRIPTSDIR SHAREDIR WEBDIR XHADIR BINDIR SBINDIR
4344

4445
.PHONY: all
4546
all: version ocaml/fhs.ml
@@ -124,6 +125,7 @@ ocaml/fhs.ml :
124125
let webdir=\"$(WEBDIR)\"\n \
125126
let xhadir=\"$(XHADIR)\"\n \
126127
let bindir=\"$(BINDIR)\"\n \
128+
let sbindir=\"$(SBINDIR)\"\n \
127129
let sharedir=\"$(SHAREDIR)\"\n" \
128130
> ocaml/fhs.ml
129131

ocaml/xapi/OMakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ OCamlProgram(at_least_once_more, at_least_once_more at_least_once_more_test)
280280

281281
.PHONY: install
282282
install:
283-
mkdir -p $(DESTDIR)$(OPTDIR)/bin
284-
cp -f xapi $(DESTDIR)$(OPTDIR)/bin
283+
mkdir -p $(DESTDIR)$(SBINDIR)
284+
cp -f xapi $(DESTDIR)$(SBINDIR)
285285
mkdir -p $(DESTDIR)$(OPTDIR)/debug
286286
$(IPROG) quicktest $(DESTDIR)$(OPTDIR)/debug
287287
cp -f quicktestbin $(DESTDIR)$(OPTDIR)/debug

ocaml/xenops/OMakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ install:
6969
mkdir -p $(DESTDIR)$(OPTDIR)/debug
7070
cp -f $(DEBUG_PROGS) $(DESTDIR)$(OPTDIR)/debug
7171
sh -c 'for i in $(SYMLINK_PROGS); do ln -nfs xenops $(DESTDIR)$(OPTDIR)/debug/$$i; done'
72-
mkdir -p $(DESTDIR)$(OPTDIR)/bin
73-
$(IPROG) $(BIN_PROGS) $(DESTDIR)$(OPTDIR)/bin
72+
mkdir -p $(DESTDIR)$(BINDIR)
73+
$(IPROG) $(BIN_PROGS) $(DESTDIR)$(BINDIR)
7474
mkdir -p $(DESTDIR)$(LIBEXECDIR)
7575
$(IPROG) fence $(DESTDIR)$(LIBEXECDIR)/fence.bin
76-
$(IPROG) squeezed $(DESTDIR)$(LIBEXECDIR)/squeezed
76+
mkdir -p $(DESTDIR)$(LIBEXECDIR)
77+
$(IPROG) squeezed $(DESTDIR)$(LIBEXECDIR)
7778

7879
.PHONY: sdk-install
7980
sdk-install: install

scripts/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ for FILE in ${FILES}; do
5555
-e "s!@WEBDIR@!${WEBDIR}!g" \
5656
-e "s!@XHADIR@!${XHADIR}!g" \
5757
-e "s!@BINDIR@!${BINDIR}!g" \
58+
-e "s!@SBINDIR@!${SBINDIR}!g" \
5859
${NEWFILE}
5960
fi
6061
done

0 commit comments

Comments
 (0)