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