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