summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jackson <iggy@gentoo.org>2003-08-10 15:20:53 +0000
committerBrian Jackson <iggy@gentoo.org>2003-08-10 15:20:53 +0000
commitfdf49f9b7d9e08aff7897d853963846e3731d5d6 (patch)
treeeebad0385c428f47ece3f8b094d3e44e415453a2 /net-mail/teapop
parentBump and clean (diff)
downloadhistorical-fdf49f9b7d9e08aff7897d853963846e3731d5d6.tar.gz
historical-fdf49f9b7d9e08aff7897d853963846e3731d5d6.tar.bz2
historical-fdf49f9b7d9e08aff7897d853963846e3731d5d6.zip
added init script and confd script, fixes bug 25967, thanks to port001
Diffstat (limited to 'net-mail/teapop')
-rw-r--r--net-mail/teapop/ChangeLog6
-rw-r--r--net-mail/teapop/Manifest6
-rw-r--r--net-mail/teapop/files/teapop-confd8
-rw-r--r--net-mail/teapop/files/teapop-init37
-rw-r--r--net-mail/teapop/teapop-0.3.5.ebuild5
5 files changed, 58 insertions, 4 deletions
diff --git a/net-mail/teapop/ChangeLog b/net-mail/teapop/ChangeLog
index 6bf8761f926a..10c95cee0724 100644
--- a/net-mail/teapop/ChangeLog
+++ b/net-mail/teapop/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-mail/teapop
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/teapop/ChangeLog,v 1.9 2003/02/12 08:17:13 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/teapop/ChangeLog,v 1.10 2003/08/10 15:20:48 iggy Exp $
+
+ 10 Aug 2003; <iggy@gentoo.org> teapop-0.3.5.ebuild, files/teapop-confd,
+ files/teapop-init:
+ added init script and confd script, fixes bug 25967, thanks to port001
*teapop-0.3.5 (20 Jan 2003)
diff --git a/net-mail/teapop/Manifest b/net-mail/teapop/Manifest
index b9c4d115d337..dc2e46e3e0db 100644
--- a/net-mail/teapop/Manifest
+++ b/net-mail/teapop/Manifest
@@ -1,7 +1,9 @@
MD5 3206f26179bafa84b857291455882779 teapop-0.3.3.ebuild 1137
-MD5 79372018ceb03e79992a2718469572f2 teapop-0.3.5.ebuild 1247
-MD5 12a4da273848287e5d1038e52e64e067 ChangeLog 1593
+MD5 8b69de4889f6c0e75865749be6cff899 teapop-0.3.5.ebuild 1296
+MD5 f6979be5101b1b632e44a195789d8226 ChangeLog 1761
MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
+MD5 58bc1b24f9d1dfed5bdabccb26c6515d files/teapop-init 920
MD5 3afa1bcb1ec5ae7ddd8d229988fef7f6 files/digest-teapop-0.3.3 64
MD5 7b273cc6c7c8a0c58c02d157d007b1a6 files/digest-teapop-0.3.5 64
MD5 c1ff745885fd91ab9bdab44961a05d92 files/tpop.xinetd 301
+MD5 fa42f37eed3061bfa135eb72673414c5 files/teapop-confd 143
diff --git a/net-mail/teapop/files/teapop-confd b/net-mail/teapop/files/teapop-confd
new file mode 100644
index 000000000000..6d5305eded4c
--- /dev/null
+++ b/net-mail/teapop/files/teapop-confd
@@ -0,0 +1,8 @@
+# TEAPOP command-line options.
+#
+# Please refer to 'man teapop' for a complete list of options.
+#
+# -s for standalone mode.
+
+TEAPOP_OPTS="-s"
+
diff --git a/net-mail/teapop/files/teapop-init b/net-mail/teapop/files/teapop-init
new file mode 100644
index 000000000000..31b6facb17b5
--- /dev/null
+++ b/net-mail/teapop/files/teapop-init
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-mail/teapop/files/teapop-init,v 1.1 2003/08/10 15:20:48 iggy Exp $
+
+depend() {
+ need net
+ use logger
+ after *
+}
+
+checkconfig() {
+ if [ ! -e /etc/teapop.passwd ] ; then
+ eerror "You need an /etc/teapop.passwd file to run teapop"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting teapop"
+ start-stop-daemon --start --quiet \
+ --pidfile /var/run/teapop.pid --exec /usr/sbin/teapop -- ${TEAPOP_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping teapop"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/teapop.pid --exec /usr/sbin/teapop
+ eend $?
+}
+
+restart() {
+ stop
+ start
+}
diff --git a/net-mail/teapop/teapop-0.3.5.ebuild b/net-mail/teapop/teapop-0.3.5.ebuild
index 0d0ca7a44ad2..1ee3cf7684ad 100644
--- a/net-mail/teapop/teapop-0.3.5.ebuild
+++ b/net-mail/teapop/teapop-0.3.5.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-mail/teapop/teapop-0.3.5.ebuild,v 1.4 2003/07/13 13:32:32 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/teapop/teapop-0.3.5.ebuild,v 1.5 2003/08/10 15:20:48 iggy Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Tiny POP3 server"
@@ -44,4 +44,7 @@ src_install () {
docinto rfc
dodoc rfc/rfc*.txt
+ exeinto /etc/init.d
+ newexe #{FILESDIR}/teapop
+
}