View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/net-firewall/ipsec-tools/ipsec-tools-0.4.ebuild (-3 / +9 lines)
 Lines 10-16    Link Here 
LICENSE="BSD"
LICENSE="BSD"
KEYWORDS="~x86 ~amd64 ~sparc"
KEYWORDS="~x86 ~amd64 ~sparc"
SLOT="0"
SLOT="0"
IUSE="selinux"
IUSE="ipv6 selinux"
DEPEND="virtual/libc
DEPEND="virtual/libc
	>=dev-libs/openssl-0.9.6"
	>=dev-libs/openssl-0.9.6"
RDEPEND="${DEPEND}
RDEPEND="${DEPEND}
 Lines 18-24    Link Here 
pkg_setup() {
pkg_setup() {
	my_KV=`echo ${KV} | cut -f-2 -d "."`
	my_KV=`echo ${KV} | cut -f-2 -d "."`
	if [ ${my_KV} != "2.6" ] ; then
	if [ "${my_KV}" != "2.6" ] ; then
		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!"
		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!"
	fi
	fi
}
}
 Lines 27-37    Link Here 
	unpack ${A}
	unpack ${A}
	cd ${S}
	cd ${S}
	epatch ${FILESDIR}/${P}-gcc34.diff
	epatch ${FILESDIR}/${P}-gcc34.diff
	sed -i 's:#include <sys/sysctl.h>::' src/racoon/pfkey.c src/setkey/setkey.c || die "sed"
	epunt_cxx
}
}
src_compile() {
src_compile() {
	unset CC
	unset CC
	./configure --prefix=/usr --sysconfdir=/etc --with-kernel-headers=/usr/src/linux/include || die
	myconf="--prefix=/usr 
	--sysconfdir=/etc
	--with-kernel-headers=/usr/src/linux/include"
	! use ipv6 && myconf="${myconf} $(use_enable ipv6)"
	./configure ${myconf} || die
	sed -e 's:AM_CFLAGS = :AM_CFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/setkey/Makefile || die
	sed -e 's:AM_CFLAGS = :AM_CFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/setkey/Makefile || die
	sed -e 's:CPPFLAGS=:CPPFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/racoon/Makefile || die
	sed -e 's:CPPFLAGS=:CPPFLAGS = -include /usr/src/linux/include/linux/compiler.h :' -i src/racoon/Makefile || die
	sed -e 's:va_copy:__va_copy:g' -i src/racoon/plog.c || die # GCC 2 Fix
	sed -e 's:va_copy:__va_copy:g' -i src/racoon/plog.c || die # GCC 2 Fix