diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-09-18 04:49:43 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-09-18 04:49:43 +0000 |
commit | 100d2b056bf8e7c4438d9c8afc086ba498c00ba9 (patch) | |
tree | 702c563e8f2040bffb4d852827466c86543bab8a /net-misc/zebedee/zebedee-2.5.3-r1.ebuild | |
parent | fix buffer size (bug #337745) with patch from Kevin Pyle; EAPI=2 (diff) | |
download | gentoo-2-100d2b056bf8e7c4438d9c8afc086ba498c00ba9.tar.gz gentoo-2-100d2b056bf8e7c4438d9c8afc086ba498c00ba9.tar.bz2 gentoo-2-100d2b056bf8e7c4438d9c8afc086ba498c00ba9.zip |
Respect LDFLAGS (bug #335970), CC.
(Portage version: 2.2_rc83/cvs/Linux i686)
Diffstat (limited to 'net-misc/zebedee/zebedee-2.5.3-r1.ebuild')
-rw-r--r-- | net-misc/zebedee/zebedee-2.5.3-r1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/net-misc/zebedee/zebedee-2.5.3-r1.ebuild b/net-misc/zebedee/zebedee-2.5.3-r1.ebuild new file mode 100644 index 000000000000..691aa26bc7fa --- /dev/null +++ b/net-misc/zebedee/zebedee-2.5.3-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/zebedee/zebedee-2.5.3-r1.ebuild,v 1.1 2010/09/18 04:49:43 jer Exp $ + +EAPI="2" + +inherit toolchain-funcs + +DESCRIPTION="A simple, free, secure TCP and UDP tunnel program" +HOMEPAGE="http://www.winton.org.uk/zebedee/" +SRC_URI="mirror://sourceforge/zebedee/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +DEPEND="dev-lang/perl + dev-libs/openssl + sys-libs/zlib + app-arch/bzip2" + +src_prepare() { + sed -i Makefile \ + -e '/^CFLAGS/s:=:+=:' \ + -e 's| -o zebedee| $(LDFLAGS)&|' \ + || die "sed Makefile" +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + BFINC=-I/usr/include/openssl \ + BFLIB=-lcrypto \ + ZINC=-I/usr/include \ + ZLIB=-lz \ + BZINC=-I/usr/include \ + BZLIB=-lbz2 \ + OS=linux || die +} + +src_install() { + emake \ + ROOTDIR="${D}"/usr \ + MANDIR="${D}"/usr/share/man/man1 \ + ZBDDIR="${D}"/etc/zebedee \ + OS=linux \ + install || die + + rm -f "${D}"/etc/zebedee/*.{txt,html} + + dodoc *.txt + dohtml *.html + + doinitd "${FILESDIR}"/zebedee +} + +pkg_postinst() { + echo + einfo "Before you use the Zebedee rc script (/etc/init.d/zebedee), it is" + einfo "recommended that you edit the server config file: " + einfo "(/etc/zebedee/server.zbd)." + einfo "the \"detached\" directive should remain set to false;" + einfo "the rc script takes care of backgrounding automatically." + echo +} |