diff options
author | Dean Bailey <alron@gentoo.org> | 2003-03-18 05:27:43 +0000 |
---|---|---|
committer | Dean Bailey <alron@gentoo.org> | 2003-03-18 05:27:43 +0000 |
commit | 497572745ab01fb691c5bc9a2776f1bd5b27257b (patch) | |
tree | 77e905a90a4fed62f4543fe58c5628967507878d /net-misc | |
parent | Initial import. #17668 (diff) | |
download | gentoo-2-497572745ab01fb691c5bc9a2776f1bd5b27257b.tar.gz gentoo-2-497572745ab01fb691c5bc9a2776f1bd5b27257b.tar.bz2 gentoo-2-497572745ab01fb691c5bc9a2776f1bd5b27257b.zip |
initial import of zebedee, submitted by Jayson Larose.
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/zebedee/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/zebedee/files/digest-zebedee-2.4.1 | 1 | ||||
-rw-r--r-- | net-misc/zebedee/files/zebedee | 33 | ||||
-rw-r--r-- | net-misc/zebedee/files/zebedee-2.4.1-Makefile.patch | 63 | ||||
-rw-r--r-- | net-misc/zebedee/zebedee-2.4.1.ebuild | 56 |
5 files changed, 161 insertions, 0 deletions
diff --git a/net-misc/zebedee/ChangeLog b/net-misc/zebedee/ChangeLog new file mode 100644 index 000000000000..aee85f4eb2c9 --- /dev/null +++ b/net-misc/zebedee/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-misc/zebedee +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/zebedee/ChangeLog,v 1.1 2003/03/18 05:27:43 alron Exp $ + +*zebedee-2.4.1 (17 Mar 2003) + + 17 Mar 2003; Dean Bailey <alron@gentoo.org> zebedee-2.4.1 : + Initial import. Ebuild submitted by Jayson Larose <jayson@interlaced.org>. diff --git a/net-misc/zebedee/files/digest-zebedee-2.4.1 b/net-misc/zebedee/files/digest-zebedee-2.4.1 new file mode 100644 index 000000000000..e2de707138ca --- /dev/null +++ b/net-misc/zebedee/files/digest-zebedee-2.4.1 @@ -0,0 +1 @@ +MD5 d17a556b966b7b8b1a199b2078e32780 zebedee-2.4.1.tar.gz 165130 diff --git a/net-misc/zebedee/files/zebedee b/net-misc/zebedee/files/zebedee new file mode 100644 index 000000000000..7c34d32bf6f3 --- /dev/null +++ b/net-misc/zebedee/files/zebedee @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU Public License, v2 or later + +depend() { + need net + use dns logger +} + +start() { + ebegin "Starting Zebedee" + start-stop-daemon --quiet --start --startas /usr/bin/zebedee \ + -m -b -p /var/run/zebedee.pid \ + -- -f /etc/zebedee/server.zbd + eend $? "Failed to start Zebedee" +} + +stop() { + ebegin "Stopping Zebedee" + start-stop-daemon --quiet --stop \ + -p /var/run/zebedee.pid + eend $? "Failed to stop Zebedee" + + # clean stale pidfile + [ -f /var/run/zebedee.pid ] && rm -f /var/run/zebedee.pid +} + +restart() { + ebegin "Restarting Zebedee" + svc_stop + svc_start + eend $? "Failed to restart Zebedee" +} diff --git a/net-misc/zebedee/files/zebedee-2.4.1-Makefile.patch b/net-misc/zebedee/files/zebedee-2.4.1-Makefile.patch new file mode 100644 index 000000000000..2d7ecf8e5490 --- /dev/null +++ b/net-misc/zebedee/files/zebedee-2.4.1-Makefile.patch @@ -0,0 +1,63 @@ +--- Makefile.old 2002-05-29 10:42:08.000000000 -0700 ++++ Makefile 2003-03-17 14:35:01.000000000 -0800 +@@ -5,7 +5,7 @@ + + ZBD_VERSION = 2.4.1 + +-OS = ++OS = linux + + ### + ### Locations of tools, libraries and installation directories. +@@ -45,19 +45,17 @@ + # BFINC = /usr/include/openssl + # BFLIB = -lcrypto + +-BFINC = -I../blowfish-0.9.5a +-BFLIB = ../blowfish-0.9.5a/libblowfish.a ++BFINC = /usr/include/openssl ++BFINC = -lcrypto + + # Location of zlib include and library + +-ZINC = -I../zlib-1.1.4 +-ZLIB = ../zlib-1.1.4/libz.a ++ZLIB = /usr/lib/libz.a + + # Location of bzlib include and library + # Set these empty if you don't want bzib2 support + +-BZINC = -I../bzip2-1.0.1 +-BZLIB = ../bzip2-1.0.1/libbz2.a ++BZLIB = /usr/lib/libbz2.a + + # + # Tools needed for Perl "POD"-format documentation conversion. +@@ -73,10 +71,9 @@ + + # Installation directories for the Linux/Solaris/*NIX World + +-ROOTDIR = /usr ++ROOTDIR = $(DESTDIR)/usr + BINDIR = $(ROOTDIR)/bin +-ZBDDIR = $(ROOTDIR)/lib/zebedee +-MANDIR = $(ROOTDIR)/man/man1 ++MANDIR = $(ROOTDIR)/share/man/man1 + + # This is a BSD-style install + +@@ -224,13 +221,11 @@ + rm -f ftpgw.tcl.tmp + + install : precheck zebedee$(EXE) zebedee.1 ftpgw.tcl.1 $(ZBDFILES) $(TXTFILES) +- -mkdir -p $(BINDIR) $(MANDIR) $(ZBDDIR) ++ -mkdir -p $(BINDIR) $(MANDIR) + $(INSTALL) zebedee$(EXE) $(BINDIR) + $(INSTALL) -m 0755 ftpgw.tcl $(BINDIR) + $(INSTALL) zebedee.1 $(MANDIR) + $(INSTALL) ftpgw.tcl.1 $(MANDIR) +- $(INSTALL) $(ZBDFILES) $(ZBDDIR) +- $(INSTALL) $(TXTFILES) $(ZBDDIR) + + clean : + rm -f zebedee zebedee.exe *.o core *.1 *.html *.tmp *.bak diff --git a/net-misc/zebedee/zebedee-2.4.1.ebuild b/net-misc/zebedee/zebedee-2.4.1.ebuild new file mode 100644 index 000000000000..bef52e1b9daa --- /dev/null +++ b/net-misc/zebedee/zebedee-2.4.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/zebedee/zebedee-2.4.1.ebuild,v 1.1 2003/03/18 05:27:43 alron Exp $ + +DESCRIPTION="A simple, free, secure TCP and UDP tunnel program" +HOMEPAGE="http://www.winton.org.uk/zebedee/" +SRC_URI="http://www.winton.org.uk/zebedee/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~sparc" +DEPEND=">=dev-libs/openssl-0.9.5a + >=sys-libs/zlib-1.1.4 + >=sys-apps/bzip2-1.0.1" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${P}.tar.gz + cd ${S} + + cp Makefile Makefile.orig + patch -p0 < ${FILESDIR}/${P}-Makefile.patch || die + mv zebedee.c zebedee.c.orig + cat zebedee.c.orig | \ + sed "s/^#include \"blowfish\.h\"$/#include \"openssl\/blowfish\.h\"/g" \ + > zebedee.c +} + +src_compile() { + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + dodoc README.txt LICENCE.txt GPL2.txt CHANGES.txt zebedee.html ftpgw.tcl.html zebedee.ja_JP.html + exeinto /etc/init.d + doexe ${FILESDIR}/zebedee + dodir /etc/zebedee + insinto /etc/zebedee + doins server.zbd vncviewer.zbd vncserver.zbd + newins server.id server.id.example + insopts -m 600 + newins server.key server.key.example + newins client1.key client1.key.example + newins client2.key client2.key.example + newins clients.id clients.id.example +} + +pkg_postinst() { + einfo + einfo "Before you use the Zebedee rc script (/etc/init.d/zebedee), it is" + einfo "recommended that you edit the server config file (/etc/zebedee/server.zbd)." + einfo "the \"detached\" directive should remain set to false; the rc script takes" + einfo "care of backgrounding automatically." + einfo +} |