Lines 12-18
Link Here
|
12 |
LICENSE="GPL-2 RSA DES" |
12 |
LICENSE="GPL-2 RSA DES" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
14 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
15 |
IUSE="+caps curl +constraints debug dhcp eap farp gcrypt ldap mysql networkmanager +non-root +openssl sqlite pam" |
15 |
IUSE="+caps curl +constraints debug dhcp eap farp gcrypt ldap mysql networkmanager +non-root +openssl sqlite pam pkcs11" |
|
|
16 |
|
17 |
STRONGSWAN_PLUGINS_STD="led lookip systime-fix unity vici" |
18 |
STRONGSWAN_PLUGINS_OPT="blowfish ccm ctr gcm ha ipseckey ntru padlock rdrand unbound whitelist" |
19 |
for mod in $STRONGSWAN_PLUGINS_STD; do |
20 |
IUSE="${IUSE} +strongswan_plugins_${mod}" |
21 |
done |
22 |
|
23 |
for mod in $STRONGSWAN_PLUGINS_OPT; do |
24 |
IUSE="${IUSE} strongswan_plugins_${mod}" |
25 |
done |
16 |
|
26 |
|
17 |
COMMON_DEPEND="!net-misc/openswan |
27 |
COMMON_DEPEND="!net-misc/openswan |
18 |
>=dev-libs/gmp-4.1.5 |
28 |
>=dev-libs/gmp-4.1.5 |
Lines 24-30
Link Here
|
24 |
mysql? ( virtual/mysql ) |
34 |
mysql? ( virtual/mysql ) |
25 |
sqlite? ( >=dev-db/sqlite-3.3.1 ) |
35 |
sqlite? ( >=dev-db/sqlite-3.3.1 ) |
26 |
networkmanager? ( net-misc/networkmanager ) |
36 |
networkmanager? ( net-misc/networkmanager ) |
27 |
pam? ( sys-libs/pam )" |
37 |
pam? ( sys-libs/pam ) |
|
|
38 |
strongswan_plugins_unbound? ( net-dns/unbound )" |
28 |
DEPEND="${COMMON_DEPEND} |
39 |
DEPEND="${COMMON_DEPEND} |
29 |
virtual/linux-sources |
40 |
virtual/linux-sources |
30 |
sys-kernel/linux-headers" |
41 |
sys-kernel/linux-headers" |
Lines 110-124
Link Here
|
110 |
else |
121 |
else |
111 |
myconf="${myconf} --disable-eap-gtc" |
122 |
myconf="${myconf} --disable-eap-gtc" |
112 |
fi |
123 |
fi |
|
|
124 |
|
125 |
for mod in $STRONGSWAN_PLUGINS_STD; do |
126 |
if use strongswan_plugins_${mod}; then |
127 |
myconf+=" --enable-${mod}" |
128 |
fi |
129 |
done |
130 |
|
131 |
for mod in $STRONGSWAN_PLUGINS_OPT; do |
132 |
if use strongswan_plugins_${mod}; then |
133 |
myconf+=" --enable-${mod}" |
134 |
fi |
135 |
done |
136 |
|
113 |
econf \ |
137 |
econf \ |
114 |
--disable-static \ |
138 |
--disable-static \ |
115 |
--enable-ikev1 \ |
139 |
--enable-ikev1 \ |
116 |
--enable-ikev2 \ |
140 |
--enable-ikev2 \ |
|
|
141 |
--enable-swanctl \ |
142 |
--enable-socket-dynamic \ |
117 |
$(use_with caps capabilities libcap) \ |
143 |
$(use_with caps capabilities libcap) \ |
118 |
$(use_enable curl) \ |
144 |
$(use_enable curl) \ |
119 |
$(use_enable constraints) \ |
145 |
$(use_enable constraints) \ |
120 |
$(use_enable ldap) \ |
146 |
$(use_enable ldap) \ |
121 |
$(use_enable debug leak-detective) \ |
147 |
$(use_enable debug leak-detective) \ |
|
|
148 |
$(use_enable dhcp) \ |
122 |
$(use_enable eap eap-sim) \ |
149 |
$(use_enable eap eap-sim) \ |
123 |
$(use_enable eap eap-sim-file) \ |
150 |
$(use_enable eap eap-sim-file) \ |
124 |
$(use_enable eap eap-simaka-sql) \ |
151 |
$(use_enable eap eap-simaka-sql) \ |
Lines 128-143
Link Here
|
128 |
$(use_enable eap eap-md5) \ |
155 |
$(use_enable eap eap-md5) \ |
129 |
$(use_enable eap eap-aka) \ |
156 |
$(use_enable eap eap-aka) \ |
130 |
$(use_enable eap eap-aka-3gpp2) \ |
157 |
$(use_enable eap eap-aka-3gpp2) \ |
|
|
158 |
$(use_enable eap md4) \ |
131 |
$(use_enable eap eap-mschapv2) \ |
159 |
$(use_enable eap eap-mschapv2) \ |
132 |
$(use_enable eap eap-radius) \ |
160 |
$(use_enable eap eap-radius) \ |
133 |
$(use_enable eap eap-tls) \ |
161 |
$(use_enable eap eap-tls) \ |
134 |
$(use_enable openssl) \ |
162 |
$(use_enable eap xauth-eap) \ |
|
|
163 |
$(use_enable farp) \ |
135 |
$(use_enable gcrypt) \ |
164 |
$(use_enable gcrypt) \ |
136 |
$(use_enable mysql) \ |
165 |
$(use_enable mysql) \ |
137 |
$(use_enable sqlite) \ |
|
|
138 |
$(use_enable dhcp) \ |
139 |
$(use_enable farp) \ |
140 |
$(use_enable networkmanager nm) \ |
166 |
$(use_enable networkmanager nm) \ |
|
|
167 |
$(use_enable openssl) \ |
168 |
$(use_enable pam xauth-pam) \ |
169 |
$(use_enable pkcs11) \ |
170 |
$(use_enable sqlite) \ |
141 |
"$(systemd_with_unitdir)" \ |
171 |
"$(systemd_with_unitdir)" \ |
142 |
${myconf} |
172 |
${myconf} |
143 |
} |
173 |
} |