Lines 10-16
Link Here
|
10 |
LICENSE="BSD" |
10 |
LICENSE="BSD" |
11 |
KEYWORDS="~x86 ~amd64 ~sparc" |
11 |
KEYWORDS="~x86 ~amd64 ~sparc" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
IUSE="selinux" |
13 |
IUSE="ipv6 selinux" |
14 |
DEPEND="virtual/libc |
14 |
DEPEND="virtual/libc |
15 |
>=dev-libs/openssl-0.9.6" |
15 |
>=dev-libs/openssl-0.9.6" |
16 |
RDEPEND="${DEPEND} |
16 |
RDEPEND="${DEPEND} |
Lines 18-24
Link Here
|
18 |
|
18 |
|
19 |
pkg_setup() { |
19 |
pkg_setup() { |
20 |
my_KV=`echo ${KV} | cut -f-2 -d "."` |
20 |
my_KV=`echo ${KV} | cut -f-2 -d "."` |
21 |
if [ ${my_KV} != "2.6" ] ; then |
21 |
if [ "${my_KV}" != "2.6" ] ; then |
22 |
echo; eerror "You need a 2.6.x kernel to use the ipsec tools!"; die "You need a 2.6 kernel to use ipsec-tools!" |
22 |
echo; eerror "You need a 2.6.x kernel to use the ipsec tools!"; die "You need a 2.6 kernel to use ipsec-tools!" |
23 |
fi |
23 |
fi |
24 |
} |
24 |
} |
Lines 27-37
Link Here
|
27 |
unpack ${A} |
27 |
unpack ${A} |
28 |
cd ${S} |
28 |
cd ${S} |
29 |
epatch ${FILESDIR}/${P}-gcc34.diff |
29 |
epatch ${FILESDIR}/${P}-gcc34.diff |
|
|
30 |
sed -i 's:#include <sys/sysctl.h>::' src/racoon/pfkey.c src/setkey/setkey.c || die "sed" |
31 |
epunt_cxx |
30 |
} |
32 |
} |
31 |
|
33 |
|
32 |
src_compile() { |
34 |
src_compile() { |
33 |
unset CC |
35 |
unset CC |
34 |
./configure --prefix=/usr --sysconfdir=/etc --with-kernel-headers=/usr/src/linux/include || die |
36 |
myconf="--prefix=/usr |
|
|
37 |
--sysconfdir=/etc |
38 |
--with-kernel-headers=/usr/src/linux/include" |
39 |
! use ipv6 && myconf="${myconf} $(use_enable ipv6)" |
40 |
./configure ${myconf} || die |
35 |
sed -e 's:AM_CFLAGS = :AM_CFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/setkey/Makefile || die |
41 |
sed -e 's:AM_CFLAGS = :AM_CFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/setkey/Makefile || die |
36 |
sed -e 's:CPPFLAGS=:CPPFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/racoon/Makefile || die |
42 |
sed -e 's:CPPFLAGS=:CPPFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/racoon/Makefile || die |
37 |
sed -e 's:va_copy:__va_copy:g' -i src/racoon/plog.c || die # GCC 2 Fix |
43 |
sed -e 's:va_copy:__va_copy:g' -i src/racoon/plog.c || die # GCC 2 Fix |