summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-06 04:39:01 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-06 04:39:01 +0000
commit3aa2da43a5c8e1e4428ca4cf34587917149ed6c9 (patch)
tree1966b101fe022fe5bce4da9c3e0770db5372700c /net-misc/rinetd
parentfix automake code (diff)
downloadhistorical-3aa2da43a5c8e1e4428ca4cf34587917149ed6c9.tar.gz
historical-3aa2da43a5c8e1e4428ca4cf34587917149ed6c9.tar.bz2
historical-3aa2da43a5c8e1e4428ca4cf34587917149ed6c9.zip
Add init.d script #73507 by Peter Gordon.
Diffstat (limited to 'net-misc/rinetd')
-rw-r--r--net-misc/rinetd/ChangeLog6
-rw-r--r--net-misc/rinetd/Manifest15
-rw-r--r--net-misc/rinetd/files/rinetd.rc23
-rw-r--r--net-misc/rinetd/rinetd-0.62.ebuild9
4 files changed, 47 insertions, 6 deletions
diff --git a/net-misc/rinetd/ChangeLog b/net-misc/rinetd/ChangeLog
index b4713f137716..420230c2b402 100644
--- a/net-misc/rinetd/ChangeLog
+++ b/net-misc/rinetd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/rinetd
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/rinetd/ChangeLog,v 1.2 2004/06/25 00:08:56 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rinetd/ChangeLog,v 1.3 2004/12/06 04:39:01 vapier Exp $
+
+ 05 Dec 2004; Mike Frysinger <vapier@gentoo.org> +files/rinetd.rc,
+ rinetd-0.62.ebuild:
+ Add init.d script #73507 by Peter Gordon.
*rinetd-0.62 (25 Apr 2003)
diff --git a/net-misc/rinetd/Manifest b/net-misc/rinetd/Manifest
index 5ea6860570d7..f21c29b46943 100644
--- a/net-misc/rinetd/Manifest
+++ b/net-misc/rinetd/Manifest
@@ -1,3 +1,14 @@
-MD5 825126861b9ecb1efdfd8fb29fe0d08c ChangeLog 328
-MD5 219d35c7d4509f62420135de91eccbaf rinetd-0.62.ebuild 644
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 2b237cd13513100ee65486828596621c ChangeLog 461
+MD5 e6d328934a807c2f000f0ff3064c33bd rinetd-0.62.ebuild 726
MD5 385cb98a70d5f3003f1bf734e2db0f35 files/digest-rinetd-0.62 58
+MD5 ca5d55c104af9dea24e71111b805a411 files/rinetd.rc 473
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFBs+J+roRuSHgZdywRAiqwAJ98IY/iQBVCxzcQ8GAwDUG8WZLImACdHkhU
+7iEgo3H0+rCW1YZlzOVD2CM=
+=BQYQ
+-----END PGP SIGNATURE-----
diff --git a/net-misc/rinetd/files/rinetd.rc b/net-misc/rinetd/files/rinetd.rc
new file mode 100644
index 000000000000..c8670395f93a
--- /dev/null
+++ b/net-misc/rinetd/files/rinetd.rc
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rinetd/files/rinetd.rc,v 1.1 2004/12/06 04:39:01 vapier Exp $
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting rinetd"
+ /usr/sbin/rinetd
+ eend $?
+}
+
+stop() {
+ local ret
+ ebegin "Stopping rinetd"
+ start-stop-daemon --stop --pidfile /var/run/rinetd.pid
+ ret=$?
+ rm -f /var/run/rinetd.pid
+ eend ${ret}
+}
diff --git a/net-misc/rinetd/rinetd-0.62.ebuild b/net-misc/rinetd/rinetd-0.62.ebuild
index b403134e6dd0..38f20327e2c3 100644
--- a/net-misc/rinetd/rinetd-0.62.ebuild
+++ b/net-misc/rinetd/rinetd-0.62.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/rinetd/rinetd-0.62.ebuild,v 1.3 2004/07/15 03:23:48 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rinetd/rinetd-0.62.ebuild,v 1.4 2004/12/06 04:39:01 vapier Exp $
DESCRIPTION="redirects TCP connections from one IP address and port to another"
HOMEPAGE="http://www.boutell.com/rinetd/"
@@ -11,7 +11,9 @@ SLOT="0"
KEYWORDS="x86"
IUSE=""
-DEPEND="sys-devel/gcc"
+RDEPEND=""
+DEPEND="sys-devel/gcc
+ >=sys-apps/portage-2.0.51"
S=${WORKDIR}/${PN}
@@ -20,7 +22,8 @@ src_compile() {
}
src_install() {
- dosbin rinetd
+ dosbin rinetd || die
+ newinitd ${FILESDIR}/rinetd.rc rinetd
doman rinetd.8
dodoc CHANGES README
dohtml index.html