Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch-contrib
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch-contrib
Commits
47c39fbd
提交
47c39fbd
authored
4月 19, 2014
作者:
Steven Ayre
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add scripts to aid building debian packages from git or tarball
上级
7c03f504
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
111 行增加
和
0 行删除
+111
-0
.gitignore
Sevet/buildscript/.gitignore
+2
-0
build-from-git
Sevet/buildscript/build-from-git
+52
-0
build-from-tarball
Sevet/buildscript/build-from-tarball
+57
-0
没有找到文件。
Sevet/buildscript/.gitignore
0 → 100644
浏览文件 @
47c39fbd
freeswitch*
libfreeswitch*
Sevet/buildscript/build-from-git
0 → 100755
浏览文件 @
47c39fbd
#!/bin/sh -e
#
# Helper script for building Debian packages
#
# FreeSWITCH will be downloaded from Git into ./freeswitch/ and built.
# The resulting Debian packages will be placed in the current directory.
#
# You should run this as an unprivileged user, with sudo permissions
# to install build dependencies (add your user to the sudo group).
#
# Build dependencies:
# $ apt-get -y install git dpkg-dev devscripts sudo
# All other dependencies are installed by the script.
#
# If modules.conf exists in the current directory then it will be
# used to select the modules to be built.
#
# Configuration
BRANCH
=
v1.2.stable
DCH_DISTRO
=
UNRELEASED
# SIGN_KEY= (Optional)
# Download FreeSWITCH
git clone
-b
$BRANCH
git://git.freeswitch.org/freeswitch.git
# Version number for Git checkouts needs to be generated
DISTRO
=
`
lsb_release
-cs
`
FS_VERSION
=
"
$(
cat
freeswitch/build/next-release.txt |
sed
-e
's/-/~/g'
)
~n
$(
date
+%Y%m%dT%H%M%SZ
)
-1~
${
DISTRO
}
+1"
(
cd
freeswitch
&&
build/set-fs-version.sh
"
$FS_VERSION
"
)
(
cd
freeswitch
&&
dch
-b
-m
-v
"
$FS_VERSION
"
--force-distribution
-D
"
$DCH_DISTRO
"
"Custom build."
)
# Optional: if modules.conf exists use this to select which modules to build
if
[
-f
modules.conf
]
;
then
cp
modules.conf freeswitch/debian
;
fi
# Bootstrap debian buildsystem
(
cd
freeswitch/debian
&&
./bootstrap.sh
-c
${
DISTRO
}
)
# See FS-5863 (mk-build-deps hates comments and whitespace, this is a workaround for bugs in that program)
mv
freeswitch/debian/control freeswitch/debian/control.bak
cat
freeswitch/debian/control.bak |
sed
-e
'/^#/d'
|
sed
-e
's/^ *$//'
|
sed
-e
'/^$/N;/^\n$/D'
>
freeswitch/debian/control
# Install build dependencies
sudo
mk-build-deps
-i
freeswitch/debian/control
# Build
if
[
-z
"
$SIGN_KEY
"
]
;
then
(
cd
freeswitch
&&
dpkg-buildpackage
-b
-uc
)
else
(
cd
freeswitch
&&
dpkg-buildpackage
-b
-k
$SIGN_KEY
)
fi
Sevet/buildscript/build-from-tarball
0 → 100755
浏览文件 @
47c39fbd
#!/bin/sh -e
#
# Helper script for building Debian packages
#
# FreeSWITCH will be downloaded from Git into ./freeswitch/ and built.
# The resulting Debian packages will be placed in the current directory.
#
# You should run this as an unprivileged user, with sudo permissions
# to install build dependencies (add your user to the sudo group).
#
# Build dependencies:
# $ apt-get -y install git dpkg-dev devscripts sudo
# All other dependencies are installed by the script.
#
# If modules.conf exists in the current directory then it will be
# used to select the modules to be built.
#
# Configuration
VERSION
=
1.2.23
DCH_DISTRO
=
UNRELEASED
# SIGN_KEY= (Optional)
# Download FreeSWITCH
wget http://files.freeswitch.org/freeswitch-
${
VERSION
}
.tar.bz2
# Extract tarball
tar
-jxvf
freeswitch-
${
VERSION
}
.tar.bz2
## Version number for Git checkouts needs to be generated
DISTRO
=
`
lsb_release
-cs
`
FS_VERSION
=
"
$(
cat
freeswitch-
${
VERSION
}
/build/next-release.txt |
sed
-e
's/-/~/g'
)
~n
$(
date
+%Y%m%dT%H%M%SZ
)
-1~
${
DISTRO
}
+1"
(
cd
freeswitch-
${
VERSION
}
&&
dch
-b
-m
-v
"
$FS_VERSION
"
--force-distribution
-D
"
$DCH_DISTRO
"
"Custom build."
)
# Optional: if modules.conf exists use this to select which modules to build
if
[
-f
modules.conf
]
;
then
cp
modules.conf freeswitch-
${
VERSION
}
/debian
;
fi
# Bootstrap debian buildsystem
touch
freeswitch-
${
VERSION
}
/.stamp-bootstrap
(
cd
freeswitch-
${
VERSION
}
/debian
&&
./bootstrap.sh
-c
${
DISTRO
}
)
# See FS-5863 (mk-build-deps hates comments and whitespace, this is a workaround for bugs in that program)
mv
freeswitch-
${
VERSION
}
/debian/control freeswitch-
${
VERSION
}
/debian/control.bak
cat
freeswitch-
${
VERSION
}
/debian/control.bak |
sed
-e
'/^#/d'
|
sed
-e
's/^ *$//'
|
sed
-e
'/^$/N;/^\n$/D'
>
freeswitch-
${
VERSION
}
/debian/control
# Install build dependencies
sudo
mk-build-deps
-i
freeswitch-
${
VERSION
}
/debian/control
# Build
echo
123
sleep
20
if
[
-z
"
$SIGN_KEY
"
]
;
then
(
cd
freeswitch-
${
VERSION
}
&&
dpkg-buildpackage
-b
-uc
)
else
(
cd
freeswitch-
${
VERSION
}
&&
dpkg-buildpackage
-b
-k
$SIGN_KEY
)
fi
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论