/[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.1 - (show annotations) (download)
Sat Sep 18 04:49:43 2010 UTC (9 years, 5 months ago) by jer
Branch: MAIN
Respect LDFLAGS (bug #335970), CC.

(Portage version: 2.2_rc83/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/zebedee/zebedee-2.5.3.ebuild,v 1.8 2010/01/21 22:58:03 cla Exp $
4
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 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
16 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