--- tsocks-1.8_beta5.ebuild 2006-07-16 12:13:05.101295272 +0200 +++ tsocks-1.8_beta5-r1.ebuild 2006-07-16 11:52:28.445958168 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-proxy/tsocks/tsocks-1.8_beta5.ebuild,v 1.8 2006/03/06 22:05:36 mrness Exp $ -inherit multilib +inherit multilib eutils autotools toolchain-funcs DESCRIPTION="Transparent SOCKS v4 proxying library" HOMEPAGE="http://tsocks.sourceforge.net/" @@ -10,27 +10,34 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 ppc ppc64 sparc x86" +KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd" IUSE="" S="${WORKDIR}/${P%%_*}" +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-bsd.patch" + eautoconf +} + src_compile() { + tc-export CC + # NOTE: the docs say to install it into /lib. If you put it into # /usr/lib and add it to /etc/ld.so.preload on many systems /usr isn't # mounted in time :-( (Ben Lutgens) - ./configure \ - --host="${CHOST}" \ - --prefix=/usr \ + econf \ --with-conf=/etc/socks/tsocks.conf \ - --mandir=/usr/share/man \ --libdir=/$(get_libdir) \ || die "configure failed" emake || die "emake failed" } src_install() { - make DESTDIR="${D}" install || die + emake DESTDIR="${D}" install || die dobin validateconf inspectsocks saveme insinto /etc/socks doins tsocks.conf.*.example