1 |
mrness 07/09/26 08:14:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openswan-2.4.9-r1.ebuild |
5 |
Removed: openswan-2.4.9.ebuild |
6 |
Log: |
7 |
Fix erroneous creation of rundir and subsysdir (#193824). Sanitize the ebuild code. |
8 |
(Portage version: 2.1.2.12) |
9 |
|
10 |
Revision Changes Path |
11 |
1.42 net-misc/openswan/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openswan/ChangeLog?rev=1.42&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openswan/ChangeLog?rev=1.42&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openswan/ChangeLog?r1=1.41&r2=1.42 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v |
20 |
retrieving revision 1.41 |
21 |
retrieving revision 1.42 |
22 |
diff -u -r1.41 -r1.42 |
23 |
--- ChangeLog 23 Sep 2007 07:32:08 -0000 1.41 |
24 |
+++ ChangeLog 26 Sep 2007 08:14:22 -0000 1.42 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-misc/openswan |
27 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.41 2007/09/23 07:32:08 mrness Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.42 2007/09/26 08:14:22 mrness Exp $ |
30 |
+ |
31 |
+*openswan-2.4.9-r1 (26 Sep 2007) |
32 |
+ |
33 |
+ 26 Sep 2007; Alin Năstac <mrness@g.o> |
34 |
+ +files/openswan-2.4.9-mkdir.patch, -openswan-2.4.9.ebuild, |
35 |
+ +openswan-2.4.9-r1.ebuild: |
36 |
+ Fix erroneous creation of rundir and subsysdir (#193824). |
37 |
+ Sanitize the ebuild code. |
38 |
|
39 |
23 Sep 2007; Alin Năstac <mrness@g.o> openswan-2.4.9.ebuild: |
40 |
Stable on amd64 (#192964). |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-misc/openswan/openswan-2.4.9-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openswan/openswan-2.4.9-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openswan/openswan-2.4.9-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: openswan-2.4.9-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2007 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/openswan-2.4.9-r1.ebuild,v 1.1 2007/09/26 08:14:22 mrness Exp $ |
54 |
|
55 |
inherit eutils linux-info |
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="smartcard extra-algorithms weak-algorithms" |
65 |
|
66 |
COMMON_DEPEND="!net-misc/strongswan |
67 |
>=dev-libs/gmp-4.2.1 |
68 |
smartcard? ( dev-libs/opensc )" |
69 |
DEPEND="${COMMON_DEPEND} |
70 |
virtual/linux-sources" |
71 |
RDEPEND="${COMMON_DEPEND} |
72 |
virtual/logger |
73 |
sys-apps/iproute2" |
74 |
|
75 |
pkg_setup() { |
76 |
linux-info_pkg_setup |
77 |
|
78 |
if kernel_is 2 6; then |
79 |
einfo "This ebuild will set ${P} to use 2.6 native IPsec (KAME)." |
80 |
einfo "KLIPS will not be compiled/installed." |
81 |
MYMAKE="programs" |
82 |
|
83 |
elif kernel_is 2 4; then |
84 |
if ! [ -d /usr/src/linux/net/ipsec ]; then |
85 |
eerror "You need to have an IPsec enabled 2.4.x kernel." |
86 |
eerror "Ensure you have one running and make a symlink to it in /usr/src/linux" |
87 |
die |
88 |
fi |
89 |
|
90 |
einfo "Using patched-in IPsec code for kernel 2.4" |
91 |
einfo "Your kernel only supports KLIPS for kernel level IPsec." |
92 |
MYMAKE="confcheck programs" |
93 |
|
94 |
else |
95 |
die "Unsupported kernel version" |
96 |
fi |
97 |
} |
98 |
|
99 |
src_unpack() { |
100 |
unpack ${A} |
101 |
|
102 |
cd "${S}" |
103 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
104 |
epatch "${FILESDIR}"/${P}-mkdir.patch |
105 |
} |
106 |
|
107 |
get_make_options() { |
108 |
local MY_MAKE_OPTIONS="FINALCONFDIR=/etc/ipsec \ |
109 |
INC_RCDEFAULT=/etc/init.d \ |
110 |
INC_USRLOCAL=/usr \ |
111 |
INC_MANDIR=share/man \ |
112 |
FINALEXAMPLECONFDIR=/usr/share/doc/${P} \ |
113 |
FINALDOCDIR=/usr/share/doc/${P}" |
114 |
if use smartcard ; then |
115 |
MY_MAKE_OPTIONS="${MY_MAKE_OPTIONS} USE_SMARTCARD=true" |
116 |
fi |
117 |
if use extra-algorithms ; then |
118 |
MY_MAKE_OPTIONS="${MY_MAKE_OPTIONS} USE_EXTRACRYPTO=true" |
119 |
fi |
120 |
if use weak-algorithms ; then |
121 |
MY_MAKE_OPTIONS="${MY_MAKE_OPTIONS} USE_WEAKSTUFF=true" |
122 |
fi |
123 |
echo ${MY_MAKE_OPTIONS} |
124 |
} |
125 |
|
126 |
src_compile() { |
127 |
emake \ |
128 |
DESTDIR="${D}" \ |
129 |
USERCOMPILE="${CFLAGS}" \ |
130 |
$(get_make_options) \ |
131 |
${MYMAKE} || die "emake failed" |
132 |
} |
133 |
|
134 |
src_install() { |
135 |
emake \ |
136 |
DESTDIR="${D}" \ |
137 |
USERCOMPILE="${CFLAGS}" \ |
138 |
$(get_make_options) \ |
139 |
install || die "emake install failed" |
140 |
|
141 |
dosym /etc/ipsec/ipsec.d /etc/ipsec.d |
142 |
|
143 |
doinitd "${FILESDIR}"/ipsec || die "failed to install init script" |
144 |
|
145 |
dodir /var/run/pluto || die "failed to create /var/run/pluto" |
146 |
} |
147 |
|
148 |
pkg_preinst() { |
149 |
# Try to fix previous openswan-2.4.9 blooper (#193824) |
150 |
if [[ "${ROOT}" == / ]] && has_version "=net-misc/openswan-2.4.9" ; then |
151 |
elog "Trying to remove empty {rundir,subsysdir} erroneously created by openswan-2.4.9" |
152 |
local base dir |
153 |
for base in / /root/ /etc/ ; do |
154 |
for dir in rundir subsysdir ; do |
155 |
if [[ -d "${base}${dir}" ]]; then |
156 |
rmdir "${base}${dir}" \ |
157 |
&& elog "Empty directory ${base}${dir} has been removed" \ |
158 |
|| ewarn "Failed to remove ${base}${dir} (perhaps some other package owns it?)" |
159 |
fi |
160 |
done |
161 |
done |
162 |
fi |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
if kernel_is 2 6; then |
167 |
CONFIG_CHECK="~NET_KEY ~INET_XFRM_MODE_TRANSPORT ~INET_XFRM_MODE_TUNNEL ~INET_AH ~INET_ESP ~INET_IPCOMP" |
168 |
WARNING_INET_AH="CONFIG_INET_AH:\tmissing IPsec AH support (needed if you want only authentication)" |
169 |
WARNING_INET_ESP="CONFIG_INET_ESP:\tmissing IPsec ESP support (needed if you want authentication and encryption)" |
170 |
WARNING_INET_IPCOMP="CONFIG_INET_IPCOMP:\tmissing IPsec Payload Compression (required for compress=yes)" |
171 |
check_extra_config |
172 |
fi |
173 |
} |
174 |
|
175 |
|
176 |
|
177 |
-- |
178 |
gentoo-commits@g.o mailing list |