diff options
author | Chuck Short <zul@gentoo.org> | 2003-12-30 22:23:35 +0000 |
---|---|---|
committer | Chuck Short <zul@gentoo.org> | 2003-12-30 22:23:35 +0000 |
commit | cf6e191d060912f6f8fe18b0a63045b0ab6ae8a3 (patch) | |
tree | 651bfd6195f2956cc5e8200959610b2601993e5e /net-misc | |
parent | Fix path to ATI control panel in .desktop files. (diff) | |
download | gentoo-2-cf6e191d060912f6f8fe18b0a63045b0ab6ae8a3.tar.gz gentoo-2-cf6e191d060912f6f8fe18b0a63045b0ab6ae8a3.tar.bz2 gentoo-2-cf6e191d060912f6f8fe18b0a63045b0ab6ae8a3.zip |
Added init scripts. Closes #36051
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/atftp/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/atftp/Manifest | 8 | ||||
-rw-r--r-- | net-misc/atftp/atftp-0.6.2.ebuild | 8 | ||||
-rw-r--r-- | net-misc/atftp/files/atftp.confd | 4 | ||||
-rw-r--r-- | net-misc/atftp/files/atftp.init | 28 |
5 files changed, 49 insertions, 5 deletions
diff --git a/net-misc/atftp/ChangeLog b/net-misc/atftp/ChangeLog index a3acc8080dfe..d0d1c050c552 100644 --- a/net-misc/atftp/ChangeLog +++ b/net-misc/atftp/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/atftp # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/atftp/ChangeLog,v 1.8 2003/12/15 04:59:53 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/atftp/ChangeLog,v 1.9 2003/12/30 22:23:12 zul Exp $ + + 30 Dec 2003; Chuck Short <zul@gentoo.org> atftp-0.6.2.ebuild, + files/atftp.confd, files/atftp.init: + Added init scripts. Closes #36051. 14 Dec 2003; Joshua Kinard <kumba@gentoo.org> atftp-0.6.2.ebuild: forgot to mark keywords as unstable diff --git a/net-misc/atftp/Manifest b/net-misc/atftp/Manifest index 3c6b5ce942e2..82b77168b9ef 100644 --- a/net-misc/atftp/Manifest +++ b/net-misc/atftp/Manifest @@ -1,6 +1,8 @@ -MD5 4dac6301eef6a3e64729d59dfd5ade77 ChangeLog 1472 MD5 94e14e20e605f9ca1252c8c88bad30ea atftp-0.6-r3.ebuild 986 -MD5 ab3278653538f61ba1197f771d05a0ca atftp-0.6.2.ebuild 911 -MD5 ef1244d13cccdfbe2dff44442e0c3d1f files/atftp-0.6-security.patch 1019 +MD5 34923235b59838d786f16f4f0f77e985 atftp-0.6.2.ebuild 1029 +MD5 e92b6b3716f37d5799d9d1ec50933451 ChangeLog 1611 MD5 6edbe26f81fbd488b6fbffd1bbd27ca9 files/digest-atftp-0.6-r3 61 +MD5 f3d1e03f8ce70ea8ed775de7407304f3 files/atftp.init 437 MD5 e14c6bca387e9af7d2734fb9f08a67ee files/digest-atftp-0.6.2 63 +MD5 ef1244d13cccdfbe2dff44442e0c3d1f files/atftp-0.6-security.patch 1019 +MD5 939f5bfbb9b7a728330cc124175c39e3 files/atftp.confd 105 diff --git a/net-misc/atftp/atftp-0.6.2.ebuild b/net-misc/atftp/atftp-0.6.2.ebuild index 4d279d692766..093429ef5809 100644 --- a/net-misc/atftp/atftp-0.6.2.ebuild +++ b/net-misc/atftp/atftp-0.6.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/atftp/atftp-0.6.2.ebuild,v 1.2 2003/12/15 04:59:53 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/atftp/atftp-0.6.2.ebuild,v 1.3 2003/12/30 22:23:12 zul Exp $ inherit eutils @@ -32,5 +32,11 @@ src_compile () { src_install () { einstall || die "Installation failed" + + exeinto /etc/init.d + newexe ${FILESDIR}/atftp.init atftp + + insinto /etc/conf.d + newsins ${FILESDIR}/atftp.confd atftp } diff --git a/net-misc/atftp/files/atftp.confd b/net-misc/atftp/files/atftp.confd new file mode 100644 index 000000000000..a46a7047dbb6 --- /dev/null +++ b/net-misc/atftp/files/atftp.confd @@ -0,0 +1,4 @@ +# Config file for tftp server + +TFTPD_ROOT="/tftproot" +TFTPD_OPTS="--daemon --user nobody --group nobody" diff --git a/net-misc/atftp/files/atftp.init b/net-misc/atftp/files/atftp.init new file mode 100644 index 000000000000..4fc8b14413b4 --- /dev/null +++ b/net-misc/atftp/files/atftp.init @@ -0,0 +1,28 @@ +#!/sbin/runscript + +depend() { + use logger + need net +} + +checkconfig() { + if [ ! -d ${TFTPD_ROOT} ] + then + eerror "You need a tftp root directory" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting tftpd" + start-stop-daemon --start --quiet --exec /usr/sbin/in.tftpd \ + -- ${TFTPD_OPTS} ${TFTPD_ROOT} + eend $? +} + +stop() { + ebegin "Stopping tftpd" + start-stop-daemon --stop --quiet --exec /usr/sbin/in.tftpd + eend $? +} |