Ai
1 Star 0 Fork 0

wangcichen/urbackup_backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_server_debian.sh 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
Martin 提交于 2019-10-08 19:05 +08:00 . Fix build
#!/bin/sh
set -e
git reset --hard
python3.3 build/replace_versions.py
if [ "x$STATIC_CRYPTOPP" != "x" ]
then
sed -i 's/\$(CRYPTOPP_LIBS)/\/usr\/local\/lib\/libcryptopp.a/g' Makefile.am_server
fi
wget http://buildserver.urbackup.org/urbackup-debian2.tar.gz -O urbackup-debian.tar.gz
tar xzf urbackup-debian.tar.gz
if ! test -e build_server_debian_ok
then
./switch_build.sh server
./download_cryptopp.sh
autoreconf --install
./configure --enable-packaging --enable-install_initd --with-mountvhd --enable-embedded-cryptopp --enable-embedded-zstd
touch build_server_debian_ok
fi
./switch_build.sh server
make dist > tmp
BASENAME=`awk -F'"' '{ for(i=1; i<NF; i++) if($i ~/urbackup-server-(.*)/) {print $i; exit;} }' tmp`
ANAME="${BASENAME}.tar.gz"
VERSION=`echo $BASENAME | cut -d "-" -f 3`
DEBVERSION="${VERSION}-1"
sed -i "0,/urbackup-server \(.*\)(.*)/s//urbackup-server \($VERSION\)\1/" debian/changelog
if [ "x$EMBEDDED_CRYPTOPP" != "x" ]
then
sed -i 's/--enable-packaging/--enable-packaging --enable-embedded-cryptopp --enable-embedded-zstd/g' debian/rules
else
sed -i 's/--enable-packaging/--enable-packaging -enable-embedded-zstd/g' debian/rules
fi
if [ "x$LDFLAGS" != "x" ]
then
sed -i "s/LDFLAGS=\"/LDFLAGS=\"${LDFLAGS} /" debian/rules
fi
dh clean
fakeroot dh binary
mkdir output || true
mv ../*.deb output/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/wangcichen/urbackup_backend.git
git@gitee.com:wangcichen/urbackup_backend.git
wangcichen
urbackup_backend
urbackup_backend
dev

搜索帮助