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

Contents of /net-misc/zebedee/zebedee-2.5.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Feb 20 22:53:46 2004 UTC (16 years ago) by seemant
Branch: MAIN
Changes since 1.1: +12 -11 lines
change some things, like the installation of keys and examples to /etc/zebedee instead of /usr/lib/zebedee

1 seemant 1.1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 seemant 1.2 # $Header: /home/cvsroot/gentoo-x86/net-misc/zebedee/zebedee-2.5.2.ebuild,v 1.1 2004/02/20 03:18:05 seemant Exp $
4 seemant 1.1
5     S=${WORKDIR}/${P}
6     DESCRIPTION="A simple, free, secure TCP and UDP tunnel program"
7     HOMEPAGE="http://www.winton.org.uk/zebedee/"
8     SRC_URI="mirror://sourceforge/zebedee/${P}.tar.gz"
9    
10     LICENSE="GPL-2"
11     SLOT="0"
12     KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~mips ~ia64 ~amd64 ~ppc64"
13    
14    
15     DEPEND="dev-lang/perl
16     dev-libs/openssl
17     sys-libs/zlib
18     app-arch/bzip2"
19    
20    
21     #src_unpack() {
22     # unpack ${P}.tar.gz
23     # cd ${S}
24     #
25     # cp Makefile Makefile.orig
26     # patch -p0 < ${FILESDIR}/${P}-Makefile.patch || die
27     # mv zebedee.c zebedee.c.orig
28     # cat zebedee.c.orig | \
29     # sed "s/^#include \"blowfish\.h\"$/#include \"openssl\/blowfish\.h\"/g" \
30     # > zebedee.c
31     #}
32    
33     src_compile() {
34     emake \
35     BFINC=-I/usr/include/openssl \
36     BFLIB=-lcrypto \
37     ZINC=-I/usr/include \
38     ZLIB=-lz \
39     BZINC=-I/usr/include \
40     BZLIB=-lbz2 \
41     OS=linux || die
42     }
43    
44     src_install() {
45     make \
46     ROOTDIR=${D}/usr \
47     MANDIR=${D}/usr/share/man/man1 \
48 seemant 1.2 ZBDDIR=${D}/etc/zebedee \
49 seemant 1.1 OS=linux \
50     install || die
51    
52 seemant 1.2 rm -f ${D}/etc/zebedee/*.{txt,html}
53 seemant 1.1
54     dodoc *.txt
55     dohtml *.html
56    
57     exeinto /etc/init.d
58     doexe ${FILESDIR}/zebedee
59    
60 seemant 1.2 # insinto /etc/zebedee
61     # doins server.zbd vncviewer.zbd vncserver.zbd
62     # newins server.id server.id.example
63     #
64     # insopts -m 600
65     # newins server.key server.key.example
66     # newins client1.key client1.key.example
67     # newins client2.key client2.key.example
68     # newins clients.id clients.id.example
69 seemant 1.1 }
70    
71     pkg_postinst() {
72     echo
73     einfo "Before you use the Zebedee rc script (/etc/init.d/zebedee), it is"
74     einfo "recommended that you edit the server config file: "
75     einfo "(/etc/zebedee/server.zbd)."
76     einfo "the \"detached\" directive should remain set to false;"
77     einfo "the rc script takes care of backgrounding automatically."
78     echo
79     }

  ViewVC Help
Powered by ViewVC 1.1.20