Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Achou.Wang
accel-ppp
提交
57ec76a3
A
accel-ppp
项目概览
Achou.Wang
/
accel-ppp
通知
6
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
accel-ppp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
57ec76a3
编写于
1月 08, 2011
作者:
D
Dmitry Kozlov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.3.3 release
上级
289ae880
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
12 deletion
+20
-12
accel-pppd/CMakeLists.txt
accel-pppd/CMakeLists.txt
+1
-1
cmake/cpack.cmake
cmake/cpack.cmake
+1
-1
cmake/debian/postinst
cmake/debian/postinst
+3
-3
contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.3.3.ebuild
contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.3.3.ebuild
+15
-7
未找到文件。
accel-pppd/CMakeLists.txt
浏览文件 @
57ec76a3
...
...
@@ -24,7 +24,7 @@ IF (EXISTS ${CMAKE_HOME_DIRECTORY}/.git)
)
STRING
(
STRIP
${
ACCEL_PPP_VERSION
}
ACCEL_PPP_VERSION
)
ELSE
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
SET
(
ACCEL_PPP_VERSION 1.3.
2
)
SET
(
ACCEL_PPP_VERSION 1.3.
3
)
ENDIF
(
EXISTS
${
CMAKE_HOME_DIRECTORY
}
/.git
)
ADD_DEFINITIONS
(
-DACCEL_PPP_VERSION=
"
${
ACCEL_PPP_VERSION
}
"
)
...
...
cmake/cpack.cmake
浏览文件 @
57ec76a3
...
...
@@ -2,7 +2,7 @@ INCLUDE(InstallRequiredSystemLibraries)
SET
(
CPACK_PACKAGE_VERSION_MAJOR
"1"
)
SET
(
CPACK_PACKAGE_VERSION_MINOR
"3"
)
SET
(
CPACK_PACKAGE_VERSION_PATCH
"
2
"
)
SET
(
CPACK_PACKAGE_VERSION_PATCH
"
3
"
)
SET
(
CPACK_PACKAGE_NAME
"accel-ppp"
)
SET
(
CPACK_PACKAGE_CONTACT
"Dmitry Kozlov <xeb@mail.ru>"
)
...
...
cmake/debian/postinst
浏览文件 @
57ec76a3
#!/bin/sh
chmod
+x /etc/init.d/accel-pp
t
p
chmod
+x /etc/init.d/accel-ppp
mkdir
/var/log/accel-pp
t
p &> /dev/null
mkdir
/var/run/accel-pp
t
p &> /dev/null
mkdir
/var/log/accel-ppp &> /dev/null
mkdir
/var/run/accel-ppp &> /dev/null
exit
0
contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.
1.1
.ebuild
→
contrib/gentoo/net-dialup/accel-ppp/accel-ppp-1.
3.3
.ebuild
浏览文件 @
57ec76a3
...
...
@@ -5,20 +5,20 @@ EAPI=2
inherit eutils linux-mod cmake-utils
DESCRIPTION
=
"PPtP/L2TP/PPPoE
s
erver for Linux"
DESCRIPTION
=
"PPtP/L2TP/PPPoE
S
erver for Linux"
SRC_URI
=
"http://sourceforge.net/projects/accel-ppp/files/accel-ppp/
${
P
}
.tar.bz2"
HOMEPAGE
=
"http://accel-ppp.sourceforge.net/"
SLOT
=
"0"
LICENSE
=
"GPL"
KEYWORDS
=
"~amd64 ~x86"
IUSE
=
"postgres debug shaper pptp_driver"
IUSE
=
"postgres debug shaper pptp_driver
radius
"
DEPEND
=
">=sys-libs/glibc-2.8
dev-libs/openssl
dev-libs/libaio
shaper? ( =dev-libs/libnl-2 )
postgres? (
>=dev-db/postgresql-base-8.1
)"
shaper? ( =dev-libs/libnl-2
*
)
postgres? (
dev-db/postgresql-base
)"
RDEPEND
=
"
$DEPEND
pptp_driver? ( virtual/modutils )"
...
...
@@ -32,6 +32,7 @@ MODULE_NAMES="pptp(extra:${S}/driver/)"
src_prepare
()
{
sed
-i
-e
"/mkdir/d"
"
${
S
}
/accel-pppd/CMakeLists.txt"
sed
-i
-e
"/echo/d"
"
${
S
}
/accel-pppd/CMakeLists.txt"
sed
-i
-e
"/INSTALL/d"
"
${
S
}
/driver/CMakeLists.txt"
}
...
...
@@ -43,19 +44,26 @@ src_configure() {
if
use postgres
;
then
mycmakeargs+
=(
"-DLOG_PGSQL=TRUE"
)
fi
if
use shaper
;
then
mycmakeargs+
=(
"-DSHAPER=TRUE"
)
fi
if
!
use radius
;
then
mycmakeargs+
=(
"-DRADIUS=FALSE"
)
fi
mycmakeargs+
=(
"-DCMAKE_INSTALL_PREFIX=/usr"
)
cmake-utils_src_configure
}
src_compile
()
{
cmake-utils_src_compile
if
use pptp_driver
;
then
cd
${
S
}
/driver
#convert_to_m Makefile
linux-mod_src_compile
||
die
"failed to build driver"
fi
}
...
...
@@ -72,7 +80,7 @@ src_install() {
newexe
"
${
S
}
/contrib/gentoo/net-dialup/accel-ppp/files/accel-pppd-init"
accel-pppd
insinto /etc/conf.d
newins
"
${
S
}
/contrib/gentoo/net-dialup/accel-ppp/files/pppd-confd"
accel-pppd
newins
"
${
S
}
/contrib/gentoo/net-dialup/accel-ppp/files/
accel-
pppd-confd"
accel-pppd
dodir /var/log/accel-ppp
dodir /var/run/accel-ppp
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录