Gentoo Archives: gentoo-commits

From: "Wolfram Schlich (wschlich)" <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/strongswan: ChangeLog strongswan-4.3.6.ebuild
Date: Wed, 17 Feb 2010 08:49:19
Message-Id: E1Nhfat-0002s1-4c@stork.gentoo.org
1 wschlich 10/02/17 08:49:15
2
3 Modified: ChangeLog
4 Added: strongswan-4.3.6.ebuild
5 Log:
6 version bump
7 (Portage version: 2.2_rc60/cvs/Linux i686)
8
9 Revision Changes Path
10 1.78 net-misc/strongswan/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/ChangeLog?rev=1.78&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/ChangeLog?rev=1.78&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/ChangeLog?r1=1.77&r2=1.78
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v
19 retrieving revision 1.77
20 retrieving revision 1.78
21 diff -u -r1.77 -r1.78
22 --- ChangeLog 2 Nov 2009 13:23:04 -0000 1.77
23 +++ ChangeLog 17 Feb 2010 08:49:14 -0000 1.78
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-misc/strongswan
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.77 2009/11/02 13:23:04 wschlich Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.78 2010/02/17 08:49:14 wschlich Exp $
30 +
31 +*strongswan-4.3.6 (17 Feb 2010)
32 +
33 + 17 Feb 2010; Wolfram Schlich <wschlich@g.o>
34 + +strongswan-4.3.6.ebuild:
35 + version bump
36
37 *strongswan-4.3.5 (02 Nov 2009)
38
39
40
41
42 1.1 net-misc/strongswan/strongswan-4.3.6.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/strongswan-4.3.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/strongswan/strongswan-4.3.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: strongswan-4.3.6.ebuild
48 ===================================================================
49 # Copyright 1999-2010 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.3.6.ebuild,v 1.1 2010/02/17 08:49:14 wschlich Exp $
52
53 EAPI=2
54 inherit eutils linux-info
55
56 UGID="ipsec"
57
58 DESCRIPTION="Open Source implementation of IPsec for the Linux operating system."
59 HOMEPAGE="http://www.strongswan.org/"
60 SRC_URI="http://download.strongswan.org/${P}.tar.bz2"
61
62 LICENSE="GPL-2 RSA-MD2 RSA-MD5 RSA-PKCS11 DES"
63 SLOT="0"
64 KEYWORDS="~ppc ~sparc ~x86 ~amd64"
65 IUSE="caps cisco curl debug ldap nat smartcard static xml"
66
67 COMMON_DEPEND="!net-misc/openswan
68 dev-libs/gmp
69 dev-libs/libgcrypt
70 caps? ( sys-libs/libcap )
71 curl? ( net-misc/curl )
72 ldap? ( net-nds/openldap )
73 smartcard? ( dev-libs/opensc )
74 xml? ( dev-libs/libxml2 )"
75 DEPEND="${COMMON_DEPEND}
76 virtual/linux-sources
77 sys-kernel/linux-headers"
78 RDEPEND="${COMMON_DEPEND}
79 virtual/logger
80 sys-apps/iproute2"
81
82 #src_prepare() {
83 # epatch "${FILESDIR}"/${PN}-4.3.3-install.patch
84 # eautoreconf
85 #}
86
87 pkg_setup() {
88 linux-info_pkg_setup
89
90 elog "Linux kernel is version ${KV_FULL}"
91
92 if kernel_is 2 6; then
93 elog "This ebuild will set ${P} to use 2.6 native IPsec (KAME)."
94 else
95 eerror "Sorry, no support for your kernel version ${KV_FULL}."
96 die "Install an IPsec enabled 2.6 kernel."
97 fi
98
99 if use caps; then
100 # change to an unprivileged user if libcaps support is requested
101 enewgroup ${UGID}
102 enewuser ${UGID} -1 -1 -1 ${UGID}
103 fi
104 }
105
106 src_configure() {
107 local myconf=""
108
109 if use caps; then
110 # change to an unprivileged user if libcaps support is requested
111 myconf="${myconf} --with-user=${UGID} --with-group=${UGID}"
112 fi
113
114 # strongswan enables both by default; switch to the user's wish
115 if use static; then
116 myconf="${myconf} --enable-static --disable-shared"
117 else
118 myconf="${myconf} --disable-static --enable-shared"
119 fi
120
121 # TODO: Review new configure options such as networkmanager
122 econf \
123 $(use_with caps capabilities libcap) \
124 $(use_enable curl) \
125 $(use_enable ldap) \
126 $(use_enable xml smp) \
127 $(use_enable smartcard) \
128 $(use_enable cisco cisco-quirks) \
129 $(use_enable debug leak-detective) \
130 $(use_enable nat nat-transport) \
131 ${myconf} \
132 || die "econf failed"
133 }
134
135 src_install() {
136 einstall || die "einstall failed."
137
138 doinitd "${FILESDIR}"/ipsec
139
140 if use caps; then
141 fowners ipsec:ipsec /etc/ipsec.conf
142 fi
143 }
144
145 pkg_postinst() {
146 if use caps; then
147 echo
148 elog "strongSwan has been installed without superuser privileges as"
149 elog "requested (USE=caps). There are certain restrictions and"
150 elog "issues regarding non-root operation, so please have a look at:"
151 elog " http://wiki.strongswan.org/wiki/nonRoot"
152 echo
153 elog "Please be aware that with dropped privileges most leftupdown and"
154 elog "rightupdown scripts will no longer run if they require root privileges."
155 elog "You might want to use sudo to allow the user \"ipsec\" to run"
156 elog "the ipsec helper script (/usr/sbin/ipsec) as root."
157 elog "Example for /etc/sudoers:"
158 elog " Defaults:ipsec always_set_home,!env_reset"
159 elog " ipsec ALL=(ALL) NOPASSWD: /usr/sbin/ipsec"
160 elog "Example for a connection block in /etc/ipsec.conf:"
161 elog " leftupdown=\"sudo ipsec _updown\""
162 echo
163 # elog "And please do not forget to add CAP_NET_ADMIN capabilities to"
164 # elog "your charon and pluto binaries each time you emerge this ebuild."
165 # echo
166 # elog "setcap -v cap_net_admin=ep /usr/libexec/ipsec/pluto"
167 # elog "setcap -v cap_net_admin=ep /usr/libexec/ipsec/charon"
168 # echo
169 # elog "For more information reagrding POSIX capabilities support please"
170 # elog "have a look at http://www.friedhoff.org/posixfilecaps.html"
171 # echo
172 fi
173 elog "The up-to-date manual is available online at:"
174 elog " http://wiki.strongswan.org/"
175 echo
176 }