Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/alexxy:master commit in: net-dialup/accel-pptp/, net-dialup/accel-pptp/files/
Date: Sat, 26 Feb 2011 18:28:00
Message-Id: 8d4856c043e2a22fbb59fbe3fb9a28c4f3a5d54a.alexxy@gentoo
1 commit: 8d4856c043e2a22fbb59fbe3fb9a28c4f3a5d54a
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 18:04:01 2011 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 18:04:01 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/alexxy.git;a=commit;h=8d4856c0
7
8 [net-dialup/accel-pptp] import from pva's overlay with some fixes for 2.6.37
9
10 (Portage version: 2.2.0_alpha25/git/Linux x86_64, signed Manifest commit with key F82F92E6)
11
12 ---
13 net-dialup/accel-pptp/Manifest | 27 +++++++
14 net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild | 96 +++++++++++++++++++++++++
15 net-dialup/accel-pptp/files/README.gentoo | 13 ++++
16 net-dialup/accel-pptp/files/options.pptp | 32 ++++++++
17 net-dialup/accel-pptp/files/pptpd-confd | 5 ++
18 net-dialup/accel-pptp/files/pptpd-init | 24 ++++++
19 net-dialup/accel-pptp/metadata.xml | 8 ++
20 7 files changed, 205 insertions(+), 0 deletions(-)
21
22 diff --git a/net-dialup/accel-pptp/Manifest b/net-dialup/accel-pptp/Manifest
23 new file mode 100644
24 index 0000000..bbfe5c8
25 --- /dev/null
26 +++ b/net-dialup/accel-pptp/Manifest
27 @@ -0,0 +1,27 @@
28 +-----BEGIN PGP SIGNED MESSAGE-----
29 +Hash: SHA256
30 +
31 +AUX README.gentoo 217 RMD160 9657859baa2f07dd426612321ffbf8312538b236 SHA1 351e9a8c3d7e6fbfb72a80926c9977fbf4e3ab7d SHA256 766c4d19732a44f1e1a5b093b2d65e6d1690fa29ddeada5116f1643ff1582f16
32 +AUX options.pptp 341 RMD160 c55a423ee0bc8a9c349c1fe0c54847242809e915 SHA1 756529a80b02ed63a8625df8db195280447cc9a9 SHA256 fbf4859f10e5c7093b65c7edac506e240598ad53002bc5cea4569adf9ca85ce0
33 +AUX pptpd-confd 131 RMD160 cd7483c023adbb5d5e1aa6ed3b14114af5035790 SHA1 208d224be1e91f6e7d13b1c4cb451f92bbc55b94 SHA256 4d69da546e36439dc1a7cb5abb949ad48046155752c047babb5472decdfa1958
34 +AUX pptpd-init 531 RMD160 983c64cea78173ff190938e53f852e6ff4cb8ab9 SHA1 f6b83a219c44956e480f0668de7cfde44e741d2c SHA256 5e7f353a2b3812cd0e0292e5889bdbda6849e79be336d0acd5113f2fc00d38c6
35 +DIST accel-pptp-0.8.5.tar.bz2 589096 RMD160 7ac16756f32ccf617ac63e50fa57ab8c6d9f106f SHA1 1bb5ee672dab14025fc16906368244c17719e7a1 SHA256 ac27e9834e61bb4c97be232c8c2c342cc91ebf431309079d1014acede805106b
36 +EBUILD accel-pptp-0.8.5.ebuild 2498 RMD160 674eff714ba4497b4106fc421ec39895c6e3de84 SHA1 023c5fa5f89c1555c407bc25a234b2b779418e45 SHA256 2a9f380cfba486dca0b0f1a0371ccb549a69fca5922083b8a8d0c547fffb84d9
37 +MISC metadata.xml 221 RMD160 756fe44d71e8afa311b1225c339c3a9d0b2793ec SHA1 90294fff7dc5be56dbaa336e0110740aca61941c SHA256 3373f0149123450e7b5cc766b78d55363c1206cab339795ab0b012085d23980b
38 +-----BEGIN PGP SIGNATURE-----
39 +Version: GnuPG v2.0.17 (GNU/Linux)
40 +
41 +iQIcBAEBCAAGBQJNaUCRAAoJEOf+E+/4L5LmYKkP/008GCytZGkAQnb6nDMNoAnY
42 +yoEu3LZMWV20h8QT2bTBq2XGjd0ivc94kHIng36PG/muVFpgtR9+UHp/B26lYbav
43 +ZPUi0YQbabsapl1kJmUWFmsY/5oFa4cB2ZqrCTnqBygGoFOKrAIkpoFMEvUGV50k
44 +yXD+P72/rJxrp/qL3mHgqKH5B7r/bv9Tnq0rNYbFJpb5K4YXQIzDb2MR0myD+D2W
45 +xG+Sb6dyxVaw9YSjcMG0+TJ38TID2sV/oHEE3/Sc1MCtslDi1HJXzmLEQ97wy1wH
46 +L3pGqBsu+2rJCwPefJQbIjlPoPokvL087RHhMX5+q01N3YbqWkVOYey9AOgUVMoz
47 +7lK9bq4uiVXvST9QFDVikWxXryORIBagBfw8PgYM+iDnnlTvLziYY87E4q4rbqr4
48 +w6T+zFMnXhLhqwlGf0bEY/HkY1u20sXU8vJPo62FCLhNzC9rQbN3ly9bJEKuqO5o
49 +ylMCZPYs0l21L4JzTBKxEFBT3xQCmC9TqJIR6Fw+azE4RaxsTxNbD6YDNxPKsKti
50 +SoGC0NIlFp4DzaazQEg3puzHOBYoxGWlxmMyCQZMMEEVMonQMb7j+yfR7LpFL9h6
51 +zni92oaalSA/HVfYZLNNE8kFMlnH52gEuTlwQyOdI87YrnWr5qto/jnu9Dt+v/9t
52 +78KtpgGileHqrizmmTV6
53 +=iBw5
54 +-----END PGP SIGNATURE-----
55
56 diff --git a/net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild b/net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild
57 new file mode 100644
58 index 0000000..ab5f266
59 --- /dev/null
60 +++ b/net-dialup/accel-pptp/accel-pptp-0.8.5.ebuild
61 @@ -0,0 +1,96 @@
62 +# Copyright 1999-2009 Gentoo Foundation
63 +# Distributed under the terms of the GNU General Public License v2
64 +# $Header: $
65 +
66 +EAPI="2"
67 +
68 +inherit linux-mod eutils autotools multilib
69 +
70 +DESCRIPTION="Point-to-Point Tunnelling Protocol Client/Server for Linux"
71 +SRC_URI="mirror://sourceforge/accel-pptp/${P}.tar.bz2"
72 +HOMEPAGE="http://accel-pptp.sourceforge.net/"
73 +
74 +SLOT="0"
75 +LICENSE="GPL-2"
76 +KEYWORDS="~amd64 ~x86"
77 +IUSE="tcpd server"
78 +
79 +COMMON_DEPEND=">=net-dialup/ppp-2.4.2
80 + server? ( !net-dialup/pptpd )
81 + tcpd? ( sys-apps/tcp-wrappers )"
82 +DEPEND="${COMMON_DEPEND}
83 + >=virtual/linux-sources-2.6.15"
84 +RDEPEND="${COMMON_DEPEND}
85 + virtual/modutils"
86 +
87 +BUILD_TARGETS="all"
88 +BUILD_PARAMS="KDIR=${KERNEL_DIR}"
89 +CONFIG_CHECK="PPP PPPOE PPTP"
90 +MODULESD_PPTP_ALIASES=("net-pf-24 pptp")
91 +
92 +src_prepare() {
93 + use server && cd "${S}/pptpd-1.3.3" && eautoreconf
94 + cd "${S}/pppd_plugin" && eautoreconf
95 +
96 + #Match pptpd-logwtmp.so's version with pppd's version (#89895)
97 + local PPPD_VER=$(best_version net-dialup/ppp)
98 + PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
99 + PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
100 + echo "#define VERSION \"${PPPD_VER}\"" > "${S}/pptpd-1.3.3/plugins/patchlevel.h"
101 + # Respect LDFLAGS
102 + sed -e "/^LDFLAGS/{s:=:+=:}" -i "${S}/pptpd-1.3.3/plugins/Makefile"
103 +}
104 +
105 +src_configure() {
106 + if use server; then
107 + cd "${S}/pptpd-1.3.3"
108 + # Define KDIR to build against userspace headers...
109 + KDIR='/usr' \
110 + econf --enable-bcrelay \
111 + $(use_with tcpd libwrap)
112 + fi
113 +
114 + cd "${S}/pppd_plugin"
115 + KDIR='/usr' econf
116 +}
117 +
118 +src_compile() {
119 + if use server; then
120 + cd "${S}/pptpd-1.3.3"
121 + emake COPTS="${CFLAGS}" || die "make failed"
122 + fi
123 +
124 + cd "${S}/pppd_plugin"
125 + emake COPTS="${CFLAGS}" || die "make failed"
126 +}
127 +
128 +src_install () {
129 + if use server; then
130 + cd "${S}/pptpd-1.3.3"
131 + einstall || die "make install failed"
132 +
133 + insinto /etc
134 + doins samples/pptpd.conf
135 +
136 + insinto /etc/ppp
137 + doins samples/options.pptpd
138 +
139 + exeinto /etc/init.d
140 + newexe "${FILESDIR}/pptpd-init" pptpd || die
141 +
142 + insinto /etc/conf.d
143 + newins "${FILESDIR}/pptpd-confd" pptpd || die
144 + fi
145 +
146 + cd "${S}/pppd_plugin/src/.libs"
147 + local PPPD_VER=$(best_version net-dialup/ppp)
148 + PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
149 + PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
150 + insinto /usr/$(get_libdir)/pppd/${PPPD_VER}
151 + newins pptp.so.0.0.0 pptp.so || die
152 + doman "${S}"/pppd_plugin/src/pppd-pptp.8 || die
153 +
154 + cd "${S}"
155 + dodoc README || die
156 + cp -R example "${D}/usr/share/doc/${P}/example"
157 +}
158
159 diff --git a/net-dialup/accel-pptp/files/README.gentoo b/net-dialup/accel-pptp/files/README.gentoo
160 new file mode 100644
161 index 0000000..68d6af2
162 --- /dev/null
163 +++ b/net-dialup/accel-pptp/files/README.gentoo
164 @@ -0,0 +1,13 @@
165 +link_ppp17="/dev/null"
166 +username_ppp17='pva0xd'
167 +password_ppp17='3149068110'
168 +pppd_ppp17="
169 +plugin pptp.so
170 +pptp_server 78.31.23.148
171 +file /etc/ppp/options.pptp
172 +mtu 1436
173 +mru 1436
174 +lcp-echo-interval 20
175 +lcp-echo-failure 3
176 +"
177 +
178
179 diff --git a/net-dialup/accel-pptp/files/options.pptp b/net-dialup/accel-pptp/files/options.pptp
180 new file mode 100644
181 index 0000000..d61ab80
182 --- /dev/null
183 +++ b/net-dialup/accel-pptp/files/options.pptp
184 @@ -0,0 +1,32 @@
185 +#
186 +# Lock the port
187 +#
188 +#lock
189 +
190 +#
191 +# We don't need the tunnel server to authenticate itself
192 +#
193 +noauth
194 +
195 +#
196 +# Turn off transmission protocols we know won't be used
197 +#
198 +nobsdcomp
199 +nodeflate
200 +
201 +#
202 +# We want MPPE
203 +#
204 +require-mppe
205 +
206 +#
207 +# We want a sane mtu/mru
208 +#
209 +mtu 1437
210 +mru 1437
211 +
212 +#
213 +# Time this thing out of it goes poof
214 +#
215 +lcp-echo-failure 10
216 +lcp-echo-interval 10
217
218 diff --git a/net-dialup/accel-pptp/files/pptpd-confd b/net-dialup/accel-pptp/files/pptpd-confd
219 new file mode 100644
220 index 0000000..1169e57
221 --- /dev/null
222 +++ b/net-dialup/accel-pptp/files/pptpd-confd
223 @@ -0,0 +1,5 @@
224 +# Config file for /etc/init.d/pptpd
225 +
226 +# Any extra options you want to pass to pptpd
227 +# on start-up should be put here.
228 +PPTPD_OPTS=""
229
230 diff --git a/net-dialup/accel-pptp/files/pptpd-init b/net-dialup/accel-pptp/files/pptpd-init
231 new file mode 100644
232 index 0000000..171e113
233 --- /dev/null
234 +++ b/net-dialup/accel-pptp/files/pptpd-init
235 @@ -0,0 +1,24 @@
236 +#!/sbin/runscript
237 +# Copyright 1999-2009 Gentoo Foundation
238 +# Distributed under the terms of the GNU General Public License, v2 or later
239 +# $Header: $
240 +
241 +depend() {
242 + need net
243 +}
244 +
245 +start() {
246 + ebegin "Starting pptpd"
247 + modprobe pptp
248 + start-stop-daemon --start --quiet --exec /usr/sbin/pptpd -- ${PPTPD_OPTS}
249 + eend $?
250 +}
251 +
252 +stop() {
253 + ebegin "Stopping pptpd"
254 + start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid
255 + result=$?
256 + start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/pptpctrl
257 + result=$(( $result + $? ))
258 + eend $result
259 +}
260
261 diff --git a/net-dialup/accel-pptp/metadata.xml b/net-dialup/accel-pptp/metadata.xml
262 new file mode 100644
263 index 0000000..009a9d9
264 --- /dev/null
265 +++ b/net-dialup/accel-pptp/metadata.xml
266 @@ -0,0 +1,8 @@
267 +<?xml version="1.0" encoding="UTF-8"?>
268 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
269 +<pkgmetadata>
270 + <herd>net-dialup</herd>
271 + <use>
272 + <flag name='server'>Enable pptpd</flag>
273 + </use>
274 +</pkgmetadata>