feat: 初始化项目结构并添加核心功能模块
- 新增文档模板和导航结构 - 实现服务器基础API路由和控制器 - 添加扩展插件配置和前端框架 - 引入多租户和权限管理模块 - 集成日志和数据库配置 - 添加核心业务模型和类型定义
This commit is contained in:
117
archive/handover/README (19).md
Normal file
117
archive/handover/README (19).md
Normal file
@@ -0,0 +1,117 @@
|
||||
# Building `libbroadvoice` Debian Package
|
||||
|
||||
This guide explains how to build the `libbroadvoice` Debian package.
|
||||
|
||||
## Prerequisites:
|
||||
- Git
|
||||
- Debian-based system (native or Docker)
|
||||
|
||||
## Build Steps
|
||||
|
||||
### Clone the repository:
|
||||
```bash
|
||||
git clone git@github.com:freeswitch/libbroadvoice.git
|
||||
```
|
||||
|
||||
### (Optionally) Use Docker to build packages for Debian `Bookworm`:
|
||||
```bash
|
||||
docker run -it -v $(pwd):/usr/src/ debian:bookworm bash -c "cd /usr/src/ && bash"
|
||||
```
|
||||
|
||||
### Set non-interactive frontend for APT:
|
||||
```bash
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
```
|
||||
|
||||
### Install required build tools:
|
||||
```bash
|
||||
apt-get update \
|
||||
&& apt-get -y upgrade \
|
||||
&& apt-get -y install \
|
||||
build-essential \
|
||||
cmake \
|
||||
devscripts \
|
||||
lsb-release \
|
||||
docbook-xsl \
|
||||
pkg-config
|
||||
```
|
||||
|
||||
### Set build number (modify as needed):
|
||||
```bash
|
||||
export BUILD_NUMBER=42
|
||||
```
|
||||
> Note: The build number (42) used in this guide is arbitrary. You can modify it as needed for your build process.
|
||||
|
||||
### Set Debian codename:
|
||||
```bash
|
||||
export CODENAME=$(lsb_release -sc)
|
||||
```
|
||||
|
||||
### Configure git safety setting:
|
||||
```bash
|
||||
git config --global --add safe.directory '*'
|
||||
```
|
||||
|
||||
### Navigate to the source directory:
|
||||
```bash
|
||||
cd libbroadvoice/
|
||||
```
|
||||
-- or --
|
||||
```bash
|
||||
cd /usr/src/libbroadvoice/
|
||||
```
|
||||
|
||||
### Extract Debian package version:
|
||||
```bash
|
||||
export VERSION=$(dpkg-parsechangelog --show-field Version | cut -f1 -d'-')
|
||||
```
|
||||
|
||||
### Extract git hash:
|
||||
```bash
|
||||
export GIT_SHA=$(git rev-parse --short HEAD)
|
||||
```
|
||||
|
||||
### Install build dependencies:
|
||||
```bash
|
||||
apt-get update \
|
||||
&& mk-build-deps \
|
||||
--install \
|
||||
--remove debian/control \
|
||||
--tool "apt-get -y --no-install-recommends" \
|
||||
&& apt-get -y -f install
|
||||
```
|
||||
|
||||
### Update changelog:
|
||||
```bash
|
||||
dch \
|
||||
--controlmaint \
|
||||
--distribution "${CODENAME}" \
|
||||
--force-bad-version \
|
||||
--force-distribution \
|
||||
--newversion "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
||||
"Nightly build, ${GIT_SHA}"
|
||||
```
|
||||
|
||||
### Build binary package:
|
||||
```bash
|
||||
debuild \
|
||||
--no-tgz-check \
|
||||
--build=binary \
|
||||
--unsigned-source \
|
||||
--unsigned-changes
|
||||
```
|
||||
|
||||
### Move built packages to the output directory:
|
||||
```bash
|
||||
mkdir -p OUT \
|
||||
&& mv -v ../*.{deb,changes} OUT/.
|
||||
```
|
||||
-- or --
|
||||
```bash
|
||||
mkdir -p /usr/src/OUT \
|
||||
&& mv -v ../*.{deb,changes} /usr/src/OUT/.
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
After a successful build, the Debian packages will be available in the `OUT` directory.
|
||||
Reference in New Issue
Block a user