Add grpc to build
Also: * fix typo in rpm post install script * for RPM, tell CPack to exclude intermediate directories in rpm file Change-Id: I9dbb4901298d3699e092b53b339f5cb1d77b4edb (cherry picked from commit e894cfa757aae8343afb373ce4ae60a1aa950a91)
Этот коммит содержится в:
@@ -1,6 +1,7 @@
|
||||
#/bin/bash
|
||||
|
||||
RDC_LIB_DIR=@RDC_CLIENT_ROOT_PATH@/rdc/lib
|
||||
GRPC_LIB_DIR=/usr/grpc/lib
|
||||
|
||||
# This will return 0 if an id is created and non-zero if
|
||||
# it already exists
|
||||
@@ -10,7 +11,8 @@ do_create_rdc_user() {
|
||||
|
||||
# librdc_client.so
|
||||
do_ldconfig() {
|
||||
echo $RDC_LIB_DIR > /etc/ld.so.conf.d/x86_64-librdc_client.conf && ldconfig
|
||||
echo "$RDC_LIB_DIR" > /etc/ld.so.conf.d/x86_64-librdc_client.conf
|
||||
echo "$GRPC_LIB_DIR" >> /etc/ld.so.conf.d/x86_64-librdc_client.conf && ldconfig
|
||||
|
||||
do_create_rdc_user
|
||||
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
RDC_LIB_DIR=@RDC_CLIENT_ROOT_PATH@/rdc/lib
|
||||
GRPC_LIB_DIR=/usr/grpc/lib
|
||||
|
||||
do_create_rdc_user() {
|
||||
useradd -r -s /bin/nologin rdc
|
||||
}
|
||||
|
||||
do_create_rpc_user
|
||||
echo -e "${RDC_LIB_DIR}\n${RDC_LIB_DIR}64" > /etc/ld.so.conf.d/x86_64-librdc_client.conf && ldconfig
|
||||
do_create_rdc_user
|
||||
|
||||
echo "$GRPC_LIB_DIR" > /etc/ld.so.conf.d/x86_64-librdc_client.conf
|
||||
echo "$GRPC_LIB_DIR"64 >> /etc/ld.so.conf.d/x86_64-librdc_client.conf
|
||||
echo "$RDC_LIB_DIR" >> /etc/ld.so.conf.d/x86_64-librdc_client.conf
|
||||
echo "$RDC_LIB_DIR"64 >> /etc/ld.so.conf.d/x86_64-librdc_client.conf
|
||||
ldconfig
|
||||
|
||||
Ссылка в новой задаче
Block a user