# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /var/cvsroot/gentoo-x86/net-misc/dante/dante-1.1.12.ebuild,v 1.1 2002/06/07 20:45:48 woodchip Exp $ S=${WORKDIR}/${P} DESCRIPTION="A free socks4,5 and msproxy implemetation" SRC_URI="ftp://ftp.inet.no/pub/socks/${P}.tar.gz" HOMEPAGE="http://www.inet.no/dante/" RDEPEND="virtual/glibc sys-libs/pam tcpd? ( sys-apps/tcp-wrappers )" DEPEND="${RDEPEND} sys-devel/perl" LICENSE="BSD" SLOT="0" src_unpack() { unpack ${A} ; cd ${S} patch -p1 <${FILESDIR}/${P}-exit-code.patch || die patch -p1 <${FILESDIR}/${P}-pre1-pam-syslog.patch || die patch -p0 <${FILESDIR}/${P}-percent-in-log.patch || die patch -p1 <${FILESDIR}/${P}-gcc-3.1.patch || die } src_compile() { local myconf use tcpd || myconf="--disable-libwrap" [ -n "$DEBUGBUILD" ] || myconf="${myconf} --disable-debug" einfo "myconf is $myconf" ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --with-socks-conf=/etc/socks/socks.conf \ --with-sockd-conf=/etc/socks/sockd.conf \ --host=${CHOST} ${myconf} || die "bad ./configure" emake || die "compile problem" } src_install() { make DESTDIR=${D} install || die # bor: comment libdl.so out it seems to work just fine without it perl -pe 's/(libdl\.so)//' -i ${D}/usr/bin/socksify dodir /etc/socks dodoc BUGS CREDITS LICENSE NEWS README SUPPORT TODO VERSION docinto txt cd doc dodoc README* *.txt SOCKS4.* docinto example cd ../example dodoc *.conf exeinto /etc/init.d newexe ${FILESDIR}/dante-sockd-init dante-sockd }