Lines 13-26
Link Here
|
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-linux" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-linux" |
16 |
IUSE="examples down-root iproute2 pam passwordsave pkcs11 +plugins selinux +ssl +lzo static userland_BSD" |
16 |
IUSE="examples down-root pam passwordsave pkcs11 +plugins selinux +ssl +lzo static userland_BSD" |
17 |
|
17 |
|
18 |
REQUIRED_USE="static? ( !plugins !pkcs11 ) |
18 |
REQUIRED_USE="static? ( !plugins !pkcs11 ) |
19 |
!plugins? ( !pam !down-root )" |
19 |
!plugins? ( !pam !down-root )" |
20 |
|
20 |
|
21 |
DEPEND=" |
21 |
DEPEND=" |
22 |
kernel_linux? ( |
22 |
kernel_linux? ( |
23 |
iproute2? ( sys-apps/iproute2[-minimal] ) !iproute2? ( sys-apps/net-tools ) |
23 |
sys-apps/iproute2[-minimal] |
24 |
) |
24 |
) |
25 |
pam? ( virtual/pam ) |
25 |
pam? ( virtual/pam ) |
26 |
selinux? ( sec-policy/selinux-openvpn ) |
26 |
selinux? ( sec-policy/selinux-openvpn ) |
Lines 35-41
Link Here
|
35 |
|
35 |
|
36 |
src_configure() { |
36 |
src_configure() { |
37 |
use static && LDFLAGS="${LDFLAGS} -Xcompiler -static" |
37 |
use static && LDFLAGS="${LDFLAGS} -Xcompiler -static" |
38 |
econf \ |
38 |
|
|
|
39 |
# We require iproute2 under Linux, see Bug #407195 |
40 |
local myconf |
41 |
use kernel_linux && myconf="--enable-iproute2" |
42 |
|
43 |
econf ${myconf} \ |
39 |
--docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
44 |
--docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
40 |
--with-plugindir="${ROOT}/usr/$(get_libdir)/$PN" \ |
45 |
--with-plugindir="${ROOT}/usr/$(get_libdir)/$PN" \ |
41 |
$(use_enable passwordsave password-save) \ |
46 |
$(use_enable passwordsave password-save) \ |
Lines 44-50
Link Here
|
44 |
$(use_enable lzo) \ |
49 |
$(use_enable lzo) \ |
45 |
$(use_enable pkcs11) \ |
50 |
$(use_enable pkcs11) \ |
46 |
$(use_enable plugins) \ |
51 |
$(use_enable plugins) \ |
47 |
$(use_enable iproute2) \ |
|
|
48 |
$(use_enable pam plugin-auth-pam) \ |
52 |
$(use_enable pam plugin-auth-pam) \ |
49 |
$(use_enable down-root plugin-down-root) |
53 |
$(use_enable down-root plugin-down-root) |
50 |
} |
54 |
} |