1 |
mrness 10/09/29 22:54:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openswan-2.6.29.ebuild |
5 |
Removed: openswan-2.4.15.ebuild |
6 |
Log: |
7 |
Version bump. |
8 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.74 net-misc/openswan/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openswan/ChangeLog?rev=1.74&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openswan/ChangeLog?rev=1.74&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openswan/ChangeLog?r1=1.73&r2=1.74 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v |
20 |
retrieving revision 1.73 |
21 |
retrieving revision 1.74 |
22 |
diff -u -r1.73 -r1.74 |
23 |
--- ChangeLog 15 Aug 2010 20:45:47 -0000 1.73 |
24 |
+++ ChangeLog 29 Sep 2010 22:54:58 -0000 1.74 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-misc/openswan |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.73 2010/08/15 20:45:47 mrness Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.74 2010/09/29 22:54:58 mrness Exp $ |
30 |
+ |
31 |
+*openswan-2.6.29 (29 Sep 2010) |
32 |
+ |
33 |
+ 29 Sep 2010; Alin Năstac <mrness@g.o> -openswan-2.4.15.ebuild, |
34 |
+ +openswan-2.6.29.ebuild, +files/openswan-2.6.29-gentoo.patch: |
35 |
+ Version bump. |
36 |
|
37 |
*openswan-2.6.28 (15 Aug 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-misc/openswan/openswan-2.6.29.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openswan/openswan-2.6.29.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openswan/openswan-2.6.29.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: openswan-2.6.29.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/openswan-2.6.29.ebuild,v 1.1 2010/09/29 22:54:58 mrness Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
inherit eutils linux-info toolchain-funcs flag-o-matic |
56 |
|
57 |
DESCRIPTION="Open Source implementation of IPsec for the Linux operating system (was SuperFreeS/WAN)." |
58 |
HOMEPAGE="http://www.openswan.org/" |
59 |
SRC_URI="http://www.openswan.org/download/${P}.tar.gz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
64 |
IUSE="caps curl ldap pam ssl extra-algorithms weak-algorithms nocrypto-algorithms ms-bad-proposal nss" |
65 |
|
66 |
COMMON_DEPEND="!net-misc/strongswan |
67 |
dev-libs/gmp |
68 |
dev-lang/perl |
69 |
caps? ( sys-libs/libcap-ng ) |
70 |
curl? ( net-misc/curl ) |
71 |
ldap? ( net-nds/openldap ) |
72 |
nss? ( dev-libs/nss ) |
73 |
ssl? ( dev-libs/openssl )" |
74 |
DEPEND="${COMMON_DEPEND} |
75 |
virtual/linux-sources |
76 |
app-text/xmlto |
77 |
app-text/docbook-xml-dtd:4.1.2" # see bug 237132 |
78 |
RDEPEND="${COMMON_DEPEND} |
79 |
virtual/logger |
80 |
sys-apps/iproute2" |
81 |
|
82 |
pkg_setup() { |
83 |
if use nocrypto-algorithms && ! use weak-algorithms; then |
84 |
ewarn "Enabling nocrypto-algorithms USE flag has no effect when" |
85 |
ewarn "weak-algorithms USE flag is disabled" |
86 |
fi |
87 |
|
88 |
linux-info_pkg_setup |
89 |
|
90 |
if kernel_is 2 6; then |
91 |
einfo "This ebuild will set ${P} to use 2.6 native IPsec (KAME)." |
92 |
einfo "KLIPS will not be compiled/installed." |
93 |
MYMAKE="programs" |
94 |
|
95 |
elif kernel_is 2 4; then |
96 |
if ! [[ -d "${KERNEL_DIR}/net/ipsec" ]]; then |
97 |
eerror "You need to have an IPsec enabled 2.4.x kernel." |
98 |
eerror "Ensure you have one running and make a symlink to it in /usr/src/linux" |
99 |
die |
100 |
fi |
101 |
|
102 |
einfo "Using patched-in IPsec code for kernel 2.4" |
103 |
einfo "Your kernel only supports KLIPS for kernel level IPsec." |
104 |
MYMAKE="confcheck programs" |
105 |
|
106 |
else |
107 |
die "Unsupported kernel version" |
108 |
fi |
109 |
|
110 |
# most code is OK, but programs/pluto code breaks strict aliasing |
111 |
append-cflags -fno-strict-aliasing |
112 |
} |
113 |
|
114 |
src_prepare() { |
115 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
116 |
use ms-bad-proposal && epatch "${FILESDIR}"/${PN}-${PV%.*}-allow-ms-bad-proposal.patch |
117 |
|
118 |
find . -type f -regex '.*[.]\([1-8]\|html\|xml\)' -exec sed -i \ |
119 |
-e s:/usr/local:/usr:g '{}' \; || |
120 |
die "failed to replace text in docs" |
121 |
} |
122 |
|
123 |
get_make_options() { |
124 |
echo KERNELSRC=\"${KERNEL_DIR}\"\ |
125 |
FINALEXAMPLECONFDIR=/usr/share/doc/${PF}\ |
126 |
INC_RCDEFAULT=/etc/init.d\ |
127 |
INC_USRLOCAL=/usr\ |
128 |
INC_MANDIR=share/man\ |
129 |
FINALDOCDIR=/usr/share/doc/${PF}/html\ |
130 |
DESTDIR=\"${D}\"\ |
131 |
USERCOMPILE=\"${CFLAGS}\"\ |
132 |
CC=\"$(tc-getCC)\" |
133 |
|
134 |
use caps\ |
135 |
&& echo USE_LIBCAP_NG=true\ |
136 |
|| echo USE_LIBCAP_NG=false |
137 |
|
138 |
use curl\ |
139 |
&& echo USE_LIBCURL=true\ |
140 |
|| echo USE_LIBCURL=false |
141 |
|
142 |
use ldap\ |
143 |
&& echo USE_LDAP=true\ |
144 |
|| echo USE_LDAP=false |
145 |
|
146 |
echo USE_XAUTH=true |
147 |
use pam\ |
148 |
&& echo USE_XAUTHPAM=true\ |
149 |
|| echo USE_XAUTHPAM=false |
150 |
|
151 |
use nss\ |
152 |
&& echo USE_LIBNSS=true\ |
153 |
|| echo USE_LIBNSS=false |
154 |
|
155 |
use ssl\ |
156 |
&& echo HAVE_OPENSSL=true\ |
157 |
|| echo HAVE_OPENSSL=false |
158 |
|
159 |
use extra-algorithms\ |
160 |
&& echo USE_EXTRACRYPTO=true\ |
161 |
|| echo USE_EXTRACRYPTO=false |
162 |
if use weak-algorithms ; then |
163 |
echo USE_WEAKSTUFF=true |
164 |
if use nocrypto-algorithms; then |
165 |
echo USE_NOCRYPTO=true |
166 |
fi |
167 |
else |
168 |
echo USE_WEAKSTUFF=false |
169 |
fi |
170 |
|
171 |
echo USE_LWRES=false # needs bind9 with lwres support |
172 |
if use curl || use ldap || use pam; then |
173 |
echo HAVE_THREADS=true |
174 |
else |
175 |
echo HAVE_THREADS=false |
176 |
fi |
177 |
} |
178 |
|
179 |
src_compile() { |
180 |
eval set -- $(get_make_options) |
181 |
emake "$@" ${MYMAKE} || die "emake failed" |
182 |
} |
183 |
|
184 |
src_install() { |
185 |
eval set -- $(get_make_options) |
186 |
emake "$@" install || die "emake install failed" |
187 |
|
188 |
dodoc docs/{KNOWN_BUGS*,RELEASE-NOTES*,PATENTS*,debugging*} |
189 |
dohtml doc/*.html |
190 |
docinto quickstarts |
191 |
dodoc doc/quickstarts/* |
192 |
|
193 |
newinitd "${FILESDIR}"/ipsec-initd ipsec || die "failed to install init script" |
194 |
|
195 |
keepdir /var/run/pluto |
196 |
} |
197 |
|
198 |
pkg_preinst() { |
199 |
if has_version "<net-misc/openswan-2.6.14" && pushd "${ROOT}etc/ipsec"; then |
200 |
ewarn "Following files and directories were moved from '${ROOT}etc/ipsec' to '${ROOT}etc':" |
201 |
local i err=0 |
202 |
if [ -h "../ipsec.d" ]; then |
203 |
rm "../ipsec.d" || die "failed to remove ../ipsec.d symlink" |
204 |
fi |
205 |
for i in *; do |
206 |
if [ -e "../$i" ]; then |
207 |
eerror " $i NOT MOVED, ../$i already exists!" |
208 |
err=1 |
209 |
elif [ -d "$i" ]; then |
210 |
mv "$i" .. || die "failed to move $i directory" |
211 |
ewarn " directory $i" |
212 |
elif [ -f "$i" ]; then |
213 |
sed -i -e 's:/etc/ipsec/:/etc/:g' "$i" && \ |
214 |
mv "$i" .. && ewarn " file $i" || \ |
215 |
die "failed to move $i file" |
216 |
else |
217 |
eerror " $i NOT MOVED, it is not a file nor a directory!" |
218 |
err=1 |
219 |
fi |
220 |
done |
221 |
popd |
222 |
if [ $err -eq 0 ]; then |
223 |
rmdir "${ROOT}etc/ipsec" || eerror "Failed to remove ${ROOT}etc/ipsec" |
224 |
else |
225 |
ewarn "${ROOT}etc/ipsec is not empty, you will have to remove it yourself" |
226 |
fi |
227 |
fi |
228 |
} |
229 |
|
230 |
pkg_postinst() { |
231 |
if kernel_is 2 6; then |
232 |
CONFIG_CHECK="~NET_KEY ~INET_XFRM_MODE_TRANSPORT ~INET_XFRM_MODE_TUNNEL ~INET_AH ~INET_ESP ~INET_IPCOMP" |
233 |
WARNING_INET_AH="CONFIG_INET_AH:\tmissing IPsec AH support (needed if you want only authentication)" |
234 |
WARNING_INET_ESP="CONFIG_INET_ESP:\tmissing IPsec ESP support (needed if you want authentication and encryption)" |
235 |
WARNING_INET_IPCOMP="CONFIG_INET_IPCOMP:\tmissing IPsec Payload Compression (required for compress=yes)" |
236 |
check_extra_config |
237 |
fi |
238 |
} |