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