Step5-Debian下构造-source
在 Debian 打包体系中,debian/source/format
用于指定源码包的格式。常见的写法是 3.0 (quilt),表示启用 quilt 补丁系统。
为什么要写 format?
- 避免
dpkg-source
报错:source format not specified
- 启用 quilt 补丁系统,方便管理
debian/patches
- 保证与 debhelper 默认模板兼容
# 创建 format 文件
cd bigtop-packages/src/deb/redis
mkdir -p source
echo "3.0 (quilt)" > source/format
1
2
3
2
3
目录结构示意:
bigtop-packages/src/deb/redis/
├── control
├── copyright
├── rules
├── source
│ └── format # 内容:3.0 (quilt)
└── changelog
1
2
3
4
5
6
7
2
3
4
5
6
7
- 01
- [/metrics/aggregated] — 聚合数据范围 检查点09-19
- 02
- [/metrics] — 反向分析接口参数 请求抓包09-17
- 03
- [/metrics] — 普通指标写入方法 POST09-17