Lines 4-17
Link Here
|
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit eutils multilib toolchain-funcs autotools flag-o-matic |
7 |
[[ ${PV} == "9999" ]] && GIT_ECLASS="git-2" |
|
|
8 |
inherit eutils multilib toolchain-funcs autotools flag-o-matic ${GIT_ECLASS} |
9 |
unset GIT_ECLASS |
8 |
|
10 |
|
9 |
IPV6_VERSION="2.2RC2-ipv6-20110424-2" |
11 |
IPV6_VERSION="2.2RC2-ipv6-20110424-2" |
10 |
DESCRIPTION="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes." |
12 |
DESCRIPTION="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes." |
11 |
SRC_URI="http://swupdate.openvpn.net/community/releases/${P}.tar.gz |
13 |
if [[ ${PV} == "9999" ]]; then |
12 |
ipv6? ( |
14 |
EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}.git" |
13 |
http://www.greenie.net/ipv6/openvpn-${IPV6_VERSION}.patch.gz |
15 |
else |
14 |
)" |
16 |
SRC_URI="http://swupdate.openvpn.net/community/releases/${P}.tar.gz |
|
|
17 |
ipv6? ( |
18 |
http://www.greenie.net/ipv6/openvpn-${IPV6_VERSION}.patch.gz |
19 |
)" |
20 |
fi |
21 |
|
15 |
HOMEPAGE="http://openvpn.net/" |
22 |
HOMEPAGE="http://openvpn.net/" |
16 |
|
23 |
|
17 |
LICENSE="GPL-2" |
24 |
LICENSE="GPL-2" |
Lines 30-44
Link Here
|
30 |
RDEPEND="${DEPEND}" |
37 |
RDEPEND="${DEPEND}" |
31 |
|
38 |
|
32 |
src_prepare() { |
39 |
src_prepare() { |
33 |
epatch "${FILESDIR}/${PN}-2.1_rc20-pkcs11.patch" |
40 |
if [[ ${PV} == "9999" ]]; then |
34 |
use ipv6 && epatch "${WORKDIR}/${PN}-${IPV6_VERSION}.patch" |
41 |
epatch "${FILESDIR}/${PN}-9999-pkcs11.patch" |
|
|
42 |
else |
43 |
epatch "${FILESDIR}/${PN}-2.1_rc20-pkcs11.patch" |
44 |
use ipv6 && epatch "${WORKDIR}/${PN}-${IPV6_VERSION}.patch" |
45 |
fi |
46 |
|
35 |
sed -i \ |
47 |
sed -i \ |
36 |
-e "s/gcc \${CC_FLAGS}/\${CC} \${CFLAGS} -Wall/" \ |
48 |
-e "s/gcc \${CC_FLAGS}/\${CC} \${CFLAGS} -Wall/" \ |
37 |
-e "s/-shared/-shared \${LDFLAGS}/" \ |
49 |
-e "s/-shared/-shared \${LDFLAGS}/" \ |
38 |
plugin/*/Makefile || die "sed failed" |
50 |
plugin/*/Makefile || die "sed failed" |
39 |
if use ipv6; then |
51 |
|
40 |
eautoreconf |
52 |
if [[ ${PV} == "9999" ]]; then |
|
|
53 |
# Add GIT commit ID to Product Version |
54 |
sed -i \ |
55 |
-e "/^define(PRODUCT_VERSION/s/])/-git-${EGIT_VERSION}])/" \ |
56 |
version.m4 |
41 |
fi |
57 |
fi |
|
|
58 |
|
59 |
(use ipv6 || [[ ${PV} == "9999" ]]) && eautoreconf |
42 |
} |
60 |
} |
43 |
|
61 |
|
44 |
src_configure() { |
62 |
src_configure() { |
Lines 91-96
Link Here
|
91 |
|
109 |
|
92 |
# install documentation |
110 |
# install documentation |
93 |
dodoc AUTHORS ChangeLog PORTS README |
111 |
dodoc AUTHORS ChangeLog PORTS README |
|
|
112 |
[[ ${PV} == "9999" ]] && dodoc README.IPv6 TODO.IPv6 |
94 |
|
113 |
|
95 |
# Install some helper scripts |
114 |
# Install some helper scripts |
96 |
keepdir /etc/openvpn |
115 |
keepdir /etc/openvpn |
Lines 166-169
Link Here
|
166 |
einfo "For more information please visit:" |
185 |
einfo "For more information please visit:" |
167 |
einfo "http://www.greenie.net/ipv6/openvpn.html" |
186 |
einfo "http://www.greenie.net/ipv6/openvpn.html" |
168 |
fi |
187 |
fi |
|
|
188 |
|
189 |
if [[ ${PV} == "9999" ]]; then |
190 |
ewarn "" |
191 |
ewarn "You are using a live ebuild building from the sources of openvpn" |
192 |
ewarn "repository from http://openvpn.git.sourceforge.net. For reporting" |
193 |
ewarn "bugs please contact: openvpn-devel@lists.sourceforge.net" |
194 |
fi |
169 |
} |
195 |
} |