1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Support configure with --config as default config file. v4.0.227

This commit is contained in:
winlin 2022-01-13 15:16:54 +08:00
parent 3881c4c77e
commit 6a5bc27f9b
6 changed files with 11 additions and 131 deletions

4
trunk/configure vendored
View file

@ -463,6 +463,7 @@ CXXFLAGS = ${CXXFLAGS}
# install prefix.
SRS_PREFIX=${SRS_PREFIX}
SRS_DEFAULT_CONFIG=${SRS_DEFAULT_CONFIG}
__REAL_INSTALL=\$(DESTDIR)\$(SRS_PREFIX)
default: server
@ -609,11 +610,12 @@ install:
@mkdir -p \$(__REAL_INSTALL)/etc/init.d
@cp -f etc/init.d/srs \$(__REAL_INSTALL)/etc/init.d
@sed -i "s|^ROOT=.*|ROOT=\"\$(SRS_PREFIX)\"|g" \$(__REAL_INSTALL)/etc/init.d/srs
@sed -i "s|^CONFIG=.*|CONFIG=\"\$(SRS_DEFAULT_CONFIG)\"|g" \$(__REAL_INSTALL)/etc/init.d/srs
@echo "Now copy systemctl service files"
@mkdir -p \$(__REAL_INSTALL)/usr/lib/systemd/system
@cp -f usr/lib/systemd/system/srs.service \$(__REAL_INSTALL)/usr/lib/systemd/system/srs.service
@echo ""
@echo "@see: https://github.com/ossrs/srs/wiki/v3_CN_LinuxService"
@echo "@see: https://github.com/ossrs/srs/wiki/v4_CN_LinuxService"
END