forked from openstack-archive/distil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.mk
32 lines (26 loc) · 774 Bytes
/
client.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
VERSION=0.4.2
NAME=distilclient
INSTALL_PATH=/opt/stack/distilclient
BINARY_PATH=/usr/local/bin
WORK_DIR=./work-client
CONF_DIR=${WORK_DIR}/${INSTALL_PATH}/etc/distil
clean:
@rm -rf ${WORK_DIR}
@rm -f ${NAME}_*.deb
init:
@mkdir -p ${WORK_DIR}
@mkdir -p ${WORK_DIR}${INSTALL_PATH}
@mkdir -p ${WORK_DIR}${BINARY_PATH}
deb: clean init
@mkdir -p ${WORK_DIR}${INSTALL_PATH}/client
@cp ./bin/distil ${WORK_DIR}${BINARY_PATH}/distil
@cp -r ./client/*.py ${WORK_DIR}${INSTALL_PATH}/client/
@chmod 0755 ${WORK_DIR}${BINARY_PATH}/distil
@fpm -s dir -t deb -n ${NAME} -v ${VERSION} \
--depends python2.7 \
--depends python-keystoneclient \
--depends python-requests \
--template-scripts \
--template-value install_path=${INSTALL_PATH} \
-C ${WORK_DIR} \
.