diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-08-09 22:58:29 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-08-09 22:58:29 +0000 |
commit | 96540e2dfb86585f13ebf2c7731d5a3548eeb19b (patch) | |
tree | 45128f31289fe74b61ea9155e7df783f368a3c44 /net-misc/netkit-timed | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-96540e2dfb86585f13ebf2c7731d5a3548eeb19b.tar.gz gentoo-2-96540e2dfb86585f13ebf2c7731d5a3548eeb19b.tar.bz2 gentoo-2-96540e2dfb86585f13ebf2c7731d5a3548eeb19b.zip |
*** empty log message ***
Diffstat (limited to 'net-misc/netkit-timed')
-rw-r--r-- | net-misc/netkit-timed/files/digest | 1 | ||||
-rwxr-xr-x | net-misc/netkit-timed/files/timed | 35 | ||||
-rw-r--r-- | net-misc/netkit-timed/netkit-timed-0.17-r1.ebuild | 39 |
3 files changed, 75 insertions, 0 deletions
diff --git a/net-misc/netkit-timed/files/digest b/net-misc/netkit-timed/files/digest new file mode 100644 index 000000000000..3d9b4090a062 --- /dev/null +++ b/net-misc/netkit-timed/files/digest @@ -0,0 +1 @@ +MD5 1bffb4db753d9e5be227e444cf119bfe netkit-timed-0.17.tar.gz diff --git a/net-misc/netkit-timed/files/timed b/net-misc/netkit-timed/files/timed new file mode 100755 index 000000000000..96e9a8aa7d0b --- /dev/null +++ b/net-misc/netkit-timed/files/timed @@ -0,0 +1,35 @@ +#!/bin/sh +#RCUPDATE:3 4:71:This line is required for script management + +. /etc/rc.d/config/functions +. /etc/rc.d/config/basic + +SERVICE=timed +EXE="/usr/sbin/timed" +opts="start stop reconfig restart" + +start() { + ebegin "Starting ${SERVICE}" + start-stop-daemon --start --quiet --exec $EXE -- $TIMED 1>&2 + eend $? "Error starting ${SERVICE}." +} + +stop() { + ebegin "Stopping ${SERVICE}" + start-stop-daemon --stop --quiet -u root -n $SERVICE 1>&2 + eend $? "Error stopping ${SERVICE}." +} + +reconfig () { + ebegin "Reconfiguring ${SERVICE}" + start-stop-daemon --stop --quiet -u root -n $SERVICE --signal 1 1>&2 + eend $? "Error reconfiguring ${SERVICE}." +} + +restart () { + stop + start +} +doservice ${@} + + diff --git a/net-misc/netkit-timed/netkit-timed-0.17-r1.ebuild b/net-misc/netkit-timed/netkit-timed-0.17-r1.ebuild new file mode 100644 index 000000000000..ff739fa7fa28 --- /dev/null +++ b/net-misc/netkit-timed/netkit-timed-0.17-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-timed/netkit-timed-0.17-r1.ebuild,v 1.1 2000/08/09 22:58:29 achim Exp $ + +P=netkit-timed-0.17 +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Netkit - timed" +CATEGORY=net-misc +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${A}" + +src_compile() { + ./configure + make +} + +src_install() { + + into /usr + dosbin timed/timed/timed + doman timed/timed/timed.8 + dosbin timed/timedc/timedc + doman timed/timedc/timedc.8 + dodoc README ChangeLog BUGS + dodir /etc/rc.d/init.d + cp ${O}/files/timed ${D}/etc/rc.d/init.d/timed +} + +pkg_config() { + + . /etc/rc.d/config/functions + + echo "Generating symlinks..." + ${ROOT}/usr/sbin/rc-update add timed + +} + + |