From: | "Lars Weiler (pylon)" <pylon@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/strongswan: ChangeLog strongswan-4.1.11.ebuild |
Date: | Sun, 30 Mar 2008 09:53:46 |
Message-Id: | E1JfuEQ-0003K5-Uc@stork.gentoo.org |
1 | pylon 08/03/30 09:53:42 |
2 | |
3 | Modified: ChangeLog |
4 | Added: strongswan-4.1.11.ebuild |
5 | Log: |
6 | Version bump; bugs #211853 and #211938. |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.59 net-misc/strongswan/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/ChangeLog?rev=1.59&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/ChangeLog?rev=1.59&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/ChangeLog?r1=1.58&r2=1.59 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v |
19 | retrieving revision 1.58 |
20 | retrieving revision 1.59 |
21 | diff -u -r1.58 -r1.59 |
22 | --- ChangeLog 16 Dec 2007 14:32:49 -0000 1.58 |
23 | +++ ChangeLog 30 Mar 2008 09:53:42 -0000 1.59 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for net-misc/strongswan |
26 | -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.58 2007/12/16 14:32:49 pylon Exp $ |
28 | +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.59 2008/03/30 09:53:42 pylon Exp $ |
30 | + |
31 | +*strongswan-4.1.11 (30 Mar 2008) |
32 | + |
33 | + 30 Mar 2008; Lars Weiler <pylon@g.o> |
34 | + +files/ipsec-install-4.1.11.patch, +strongswan-4.1.11.ebuild: |
35 | + Version bump; bugs #211853 and #211938. |
36 | |
37 | *strongswan-4.1.9 (16 Dec 2007) |
38 | |
39 | |
40 | |
41 | |
42 | 1.1 net-misc/strongswan/strongswan-4.1.11.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/strongswan-4.1.11.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/strongswan-4.1.11.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: strongswan-4.1.11.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2008 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/strongswan-4.1.11.ebuild,v 1.1 2008/03/30 09:53:42 pylon Exp $ |
52 | |
53 | inherit eutils linux-info |
54 | |
55 | UGID="ipsec" |
56 | |
57 | DESCRIPTION="Open Source implementation of IPsec for the Linux operating system." |
58 | HOMEPAGE="http://www.strongswan.org/" |
59 | SRC_URI="http://download.strongswan.org/${P}.tar.bz2" |
60 | |
61 | LICENSE="GPL-2 RSA-MD2 RSA-MD5 RSA-PKCS11 DES" |
62 | SLOT="0" |
63 | KEYWORDS="~ppc ~x86" |
64 | IUSE="cisco curl debug ldap nat smartcard static xml" |
65 | |
66 | COMMON_DEPEND="!net-misc/openswan |
67 | dev-libs/gmp" |
68 | DEPEND="${COMMON_DEPEND} |
69 | virtual/linux-sources |
70 | sys-kernel/linux-headers |
71 | curl? ( net-misc/curl ) |
72 | ldap? ( net-nds/openldap ) |
73 | smartcard? ( dev-libs/opensc ) |
74 | xml? ( dev-libs/libxml2 )" |
75 | RDEPEND="${COMMON_DEPEND} |
76 | virtual/logger |
77 | sys-apps/iproute2" |
78 | |
79 | src_unpack() { |
80 | unpack ${A} |
81 | cd "${S}" |
82 | |
83 | epatch "${FILESDIR}"/ipsec-install-${PV}.patch |
84 | } |
85 | |
86 | pkg_setup() { |
87 | linux-info_pkg_setup |
88 | |
89 | einfo "Linux kernel is version ${KV_FULL}" |
90 | |
91 | if kernel_is 2 6; then |
92 | einfo "This ebuild will set ${P} to use 2.6 native IPsec (KAME)." |
93 | else |
94 | eerror "Sorry, no support for your kernel version ${KV_FULL}." |
95 | die "Install an IPsec enabled 2.6 kernel." |
96 | fi |
97 | |
98 | # change to an unprivileged user by default |
99 | enewgroup ${UGID} |
100 | enewuser ${UGID} -1 -1 -1 ${UGID} |
101 | } |
102 | |
103 | src_compile() { |
104 | local myconf="" |
105 | |
106 | # change to an unprivileged user by default |
107 | myconf="${myconf} --with-uid=$(id -u ${UGID}) --with-gid=$(id -g ${UGID})" |
108 | # strongswan enables both by default; switch to the user's wish |
109 | if use static; then |
110 | myconf="${myconf} --enable-static --disable-shared" |
111 | else |
112 | myconf="${myconf} --disable-static --enable-shared" |
113 | fi |
114 | |
115 | econf \ |
116 | $(use_enable curl http) \ |
117 | $(use_enable ldap) \ |
118 | $(use_enable xml) \ |
119 | $(use_enable smartcard) \ |
120 | $(use_enable cisco cisco-quirks) \ |
121 | $(use_enable debug leak-detective) \ |
122 | $(use_enable nat nat-transport) \ |
123 | ${myconf} \ |
124 | || die "econf failed" |
125 | |
126 | emake || die "emake failed" |
127 | } |
128 | |
129 | src_install() { |
130 | einstall || die "einstall failed." |
131 | |
132 | doinitd "${FILESDIR}"/ipsec |
133 | } |
134 | |
135 | pkg_postinst() { |
136 | echo |
137 | ewarn "Starting with the strongswan-4 branch, the configuration files" |
138 | ewarn "will be installed into the default directory \"/etc/\"" |
139 | ewarn "instead of the Gentoo-specific directory \"/etc/ipsec/\"." |
140 | ewarn "Please adjust your configuration!" |
141 | echo |
142 | einfo "The up-to-date configuration manual is available online at" |
143 | einfo "http://www.strongswan.org/docs/readme.htm" |
144 | echo |
145 | } |
146 | |
147 | |
148 | |
149 | -- |
150 | gentoo-commits@l.g.o mailing list |