/[gentoo-x86]/net-misc/zebedee/zebedee-2.5.3-r1.ebuild
Gentoo

Contents of /net-misc/zebedee/zebedee-2.5.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Jun 28 10:03:38 2012 UTC (7 years, 7 months ago) by ago
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for amd64, wrt bug #397185

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 armin76 1.2 # Copyright 1999-2012 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 ago 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/zebedee/zebedee-2.5.3-r1.ebuild,v 1.3 2012/03/02 21:07:07 ranger Exp $
4 jer 1.1
5     EAPI="2"
6    
7     inherit toolchain-funcs
8    
9     DESCRIPTION="A simple, free, secure TCP and UDP tunnel program"
10     HOMEPAGE="http://www.winton.org.uk/zebedee/"
11     SRC_URI="mirror://sourceforge/zebedee/${P}.tar.gz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 ago 1.4 KEYWORDS="alpha amd64 ~hppa ia64 ~mips ~ppc ppc64 s390 ~sparc x86"
16 jer 1.1 IUSE=""
17    
18     DEPEND="dev-lang/perl
19     dev-libs/openssl
20     sys-libs/zlib
21     app-arch/bzip2"
22    
23     src_prepare() {
24     sed -i Makefile \
25     -e '/^CFLAGS/s:=:+=:' \
26     -e 's| -o zebedee| $(LDFLAGS)&|' \
27     || die "sed Makefile"
28     }
29    
30     src_compile() {
31     emake \
32     CC=$(tc-getCC) \
33     BFINC=-I/usr/include/openssl \
34     BFLIB=-lcrypto \
35     ZINC=-I/usr/include \
36     ZLIB=-lz \
37     BZINC=-I/usr/include \
38     BZLIB=-lbz2 \
39     OS=linux || die
40     }
41    
42     src_install() {
43     emake \
44     ROOTDIR="${D}"/usr \
45     MANDIR="${D}"/usr/share/man/man1 \
46     ZBDDIR="${D}"/etc/zebedee \
47     OS=linux \
48     install || die
49    
50     rm -f "${D}"/etc/zebedee/*.{txt,html}
51    
52     dodoc *.txt
53     dohtml *.html
54    
55     doinitd "${FILESDIR}"/zebedee
56     }
57    
58     pkg_postinst() {
59     echo
60     einfo "Before you use the Zebedee rc script (/etc/init.d/zebedee), it is"
61     einfo "recommended that you edit the server config file: "
62     einfo "(/etc/zebedee/server.zbd)."
63     einfo "the \"detached\" directive should remain set to false;"
64     einfo "the rc script takes care of backgrounding automatically."
65     echo
66     }

  ViewVC Help
Powered by ViewVC 1.1.20