summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-03-13 01:00:50 +0000
committerMike Frysinger <vapier@gentoo.org>2004-03-13 01:00:50 +0000
commited2f638524389cb598bb42842004ef27e7ad5a48 (patch)
treef6c44d9586d386a784838d3b1f4ba4ab0ce1f51e /net-misc
parentinitial ebuild #43919 (diff)
downloadgentoo-2-ed2f638524389cb598bb42842004ef27e7ad5a48.tar.gz
gentoo-2-ed2f638524389cb598bb42842004ef27e7ad5a48.tar.bz2
gentoo-2-ed2f638524389cb598bb42842004ef27e7ad5a48.zip
forgot to add init.d script
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/mrouted/files/mrouted.rc30
-rw-r--r--net-misc/mrouted/mrouted-3.9_beta3.ebuild13
2 files changed, 35 insertions, 8 deletions
diff --git a/net-misc/mrouted/files/mrouted.rc b/net-misc/mrouted/files/mrouted.rc
new file mode 100644
index 000000000000..6e15361d69bb
--- /dev/null
+++ b/net-misc/mrouted/files/mrouted.rc
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mrouted/files/mrouted.rc,v 1.1 2004/03/13 01:00:50 vapier Exp $
+
+depend() {
+ use logger
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/mrouted.conf ] ; then
+ eerror "You need an /etc/mrouted.conf file to run mrouted"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting mrouted"
+ start-stop-daemon --start --quiet --pidfile /var/run/mrouted.pid \
+ --startas /usr/bin/mrouted -- -c /etc/mrouted.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mrouted"
+ start-stop-daemon --stop --quiet --pidfile /var/run/mrouted.pid
+ eend $?
+}
diff --git a/net-misc/mrouted/mrouted-3.9_beta3.ebuild b/net-misc/mrouted/mrouted-3.9_beta3.ebuild
index 4a7f98fc2288..e11c31fddc74 100644
--- a/net-misc/mrouted/mrouted-3.9_beta3.ebuild
+++ b/net-misc/mrouted/mrouted-3.9_beta3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mrouted/mrouted-3.9_beta3.ebuild,v 1.2 2004/03/13 01:00:50 vapier Exp $
MY_P=${P/_}+IOS12
DEB_PVER=3
@@ -29,12 +29,9 @@ src_compile() {
}
src_install() {
- dobin mrouted
+ dobin mrouted || die
doman mrouted.8
- insinto /etc/conf.d
- newins ${S}/mrouted.conf
-
- exeinto /etc/init.d
- doexe ${FILESDIR}/mrouted
+ insinto /etc ; doins mrouted.conf
+ exeinto /etc/init.d ; newexe ${FILESDIR}/mrouted.rc mrouted
}