summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2002-05-01 04:38:03 +0000
committerDonny Davies <woodchip@gentoo.org>2002-05-01 04:38:03 +0000
commitc52d6ee1c9ea88cdf72fd09967763d436cd64b77 (patch)
tree1dd0510f703aa723c8a1dacb29f8d682ef2e34e9 /net-misc/dante
parentchase current release; closing #2254 (diff)
downloadhistorical-c52d6ee1c9ea88cdf72fd09967763d436cd64b77.tar.gz
historical-c52d6ee1c9ea88cdf72fd09967763d436cd64b77.tar.bz2
historical-c52d6ee1c9ea88cdf72fd09967763d436cd64b77.zip
added initscript; closing #2223
Diffstat (limited to 'net-misc/dante')
-rw-r--r--net-misc/dante/ChangeLog11
-rw-r--r--net-misc/dante/dante-1.1.9-r1.ebuild39
-rw-r--r--net-misc/dante/files/dante-sockd-init32
-rw-r--r--net-misc/dante/files/digest-dante-1.1.9-r11
4 files changed, 82 insertions, 1 deletions
diff --git a/net-misc/dante/ChangeLog b/net-misc/dante/ChangeLog
index cc6a7438c6e4..75a7b67367ff 100644
--- a/net-misc/dante/ChangeLog
+++ b/net-misc/dante/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-misc/dante
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dante/ChangeLog,v 1.1 2002/02/01 21:53:34 gbevin Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dante/ChangeLog,v 1.2 2002/05/01 04:38:03 woodchip Exp $
+
+*dante-1.1.9-r1 (1 May 2002)
+
+ 1 May 2002; Donny Davies <woodchip@gentoo.org> dante-1.1.9-r1.ebuild,
+ files/dante-sockd-init :
+
+ Added tcp-wrappers to DEPEND. Syntax cleanup. Added initscript for sockd,
+ closing #2223. Thanks to Per Wigren <wigren@home.se> for writing and
+ contributing the rc-script.
*dante-1.1.9 (1 Feb 2002)
diff --git a/net-misc/dante/dante-1.1.9-r1.ebuild b/net-misc/dante/dante-1.1.9-r1.ebuild
new file mode 100644
index 000000000000..4ab45d0b4f5f
--- /dev/null
+++ b/net-misc/dante/dante-1.1.9-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dante/dante-1.1.9-r1.ebuild,v 1.1 2002/05/01 04:38:03 woodchip Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="A free socks4,5 and msproxy implemetation"
+SRC_URI="ftp://ftp.inet.no/pub/socks/${P}.tar.gz"
+HOMEPAGE="http://www.inet.no/dante/"
+
+DEPEND="virtual/glibc tcpd? ( sys-apps/tcp-wrappers )"
+
+src_compile() {
+ local myconf
+ use tcpd || myconf="--disable-libwrap"
+ [ -n "$DEBUGBUILD" ] && myconf="${myconf} --enable-debug"
+
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-socks-conf=/etc/socks/socks.conf \
+ --with-sockd-conf=/etc/socks/sockd.conf \
+ --host=${CHOST} ${myconf} || die "bad ./configure"
+
+ make || die "compile problem"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodir /etc/socks
+ dodoc BUGS CREDITS LICENSE NEWS README SUPPORT TODO VERSION
+ docinto txt
+ cd doc
+ dodoc README* *.txt SOCKS4.*
+ docinto example
+ cd ../example
+ dodoc *.conf
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/dante-sockd-init dante-sockd
+}
diff --git a/net-misc/dante/files/dante-sockd-init b/net-misc/dante/files/dante-sockd-init
new file mode 100644
index 000000000000..530ad2b7406f
--- /dev/null
+++ b/net-misc/dante/files/dante-sockd-init
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dante/files/dante-sockd-init,v 1.1 2002/05/01 04:38:03 woodchip Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -f /etc/socks/sockd.conf ] ; then
+ eerror "You need to setup /etc/socks/sockd.conf first"
+ eerror "Examples are in /usr/share/doc/dante/example"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting dante sockd"
+ start-stop-daemon --start --quiet --pidfile /var/run/sockd.pid \
+ --make-pidfile --background --exec /usr/sbin/sockd
+ eend $? "Failed to start sockd"
+}
+
+stop() {
+ ebegin "Stopping dante sockd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/sockd.pid
+ eend $? "Failed to stop sockd"
+ # clean stale pidfile
+ [ -f /var/run/sockd.pid ] && rm -f /var/run/sockd.pid
+}
diff --git a/net-misc/dante/files/digest-dante-1.1.9-r1 b/net-misc/dante/files/digest-dante-1.1.9-r1
new file mode 100644
index 000000000000..df711eaf083e
--- /dev/null
+++ b/net-misc/dante/files/digest-dante-1.1.9-r1
@@ -0,0 +1 @@
+MD5 83a23e3ffbf41c1b03a2b818d7dd1682 dante-1.1.9.tar.gz 468506