Ai
105 Star 706 Fork 158

GVPhappyfish100/FastCFS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rules 1.89 KB
一键复制 编辑 原始数据 按行查看 历史
vazmin 提交于 2022-06-30 23:03 +08:00 . debain: fix fastcfs-vote-server package
#!/usr/bin/make -f
export DESTDIR = $(CURDIR)/debian/tmp
export FUSE_CONFDIR=$(DESTDIR)/etc/fastcfs/fcfs/
export AUTH_CONFDIR=$(DESTDIR)/etc/fastcfs/auth/
export VOTE_CONFDIR=$(DESTDIR)/etc/fastcfs/vote/
%:
dh $@
override_dh_auto_build:
ifneq ($(filter pkg.fastcfs.core,$(DEB_BUILD_PROFILES)),)
./make.sh --exclude=client clean && ./make.sh --exclude=client
endif
ifneq ($(filter pkg.auth.client,$(DEB_BUILD_PROFILES)),)
./make.sh --module=auth_client clean && ./make.sh --module=auth_client
endif
ifneq ($(filter pkg.vote.client,$(DEB_BUILD_PROFILES)),)
./make.sh --module=vote_client clean && ./make.sh --module=vote_client
endif
override_dh_auto_install:
ifneq ($(filter pkg.fastcfs.core,$(DEB_BUILD_PROFILES)),)
./make.sh --exclude=client install
mkdir -p $(FUSE_CONFDIR)
cp conf/*.conf $(FUSE_CONFDIR)
cp systemd/fastcfs.service debian/fastcfs-fused.fastcfs.service
cp systemd/fastauth.service debian/fastcfs-auth-server.fastauth.service
cp systemd/fastvote.service debian/fastcfs-vote-server.fastvote.service
endif
ifneq ($(filter pkg.auth.client,$(DEB_BUILD_PROFILES)),)
./make.sh --module=auth_client install
AUTH_CONFDIR=$(DESTDIR)/etc/fastcfs/auth/
mkdir -p $(AUTH_CONFDIR)
cp src/auth/conf/*.conf $(AUTH_CONFDIR)
cp -R src/auth/conf/keys $(AUTH_CONFDIR)
endif
ifneq ($(filter pkg.vote.client,$(DEB_BUILD_PROFILES)),)
./make.sh --module=vote_client install
VOTE_CONFDIR=%{buildroot}/etc/fastcfs/vote/
mkdir -p $(VOTE_CONFDIR)
cp src/vote/conf/*.conf $(VOTE_CONFDIR)
endif
dh_auto_install
override_dh_installsystemd:
dh_installsystemd --package=fastcfs-fused --name=fastcfs --no-start --no-restart-on-upgrade
dh_installsystemd --package=fastcfs-auth-server --name=fastauth --no-start --no-restart-on-upgrade
dh_installsystemd --package=fastcfs-vote-server --name=fastvote --no-start --no-restart-on-upgrade
.PHONY: override_dh_gencontrol
override_dh_gencontrol:
dh_gencontrol -- -Tdebian/substvars
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/fastdfs100/FastCFS.git
git@gitee.com:fastdfs100/FastCFS.git
fastdfs100
FastCFS
FastCFS
master

搜索帮助