summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-11-23 02:25:04 +0000
committerMike Frysinger <vapier@gentoo.org>2004-11-23 02:25:04 +0000
commitbb8f63c8edb0fd4bafd140069e52f1f5d2cffe8e (patch)
treed326924e5244f916a079bab3b9ec43e74ec66b1f /dev-libs
parentout of -* and into ~ (Manifest recommit) (diff)
downloadgentoo-2-bb8f63c8edb0fd4bafd140069e52f1f5d2cffe8e.tar.gz
gentoo-2-bb8f63c8edb0fd4bafd140069e52f1f5d2cffe8e.tar.bz2
gentoo-2-bb8f63c8edb0fd4bafd140069e52f1f5d2cffe8e.zip
Add init.d scripts #71088 by Grzegorz Artur Daszuta.
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/lsh/ChangeLog6
-rw-r--r--dev-libs/lsh/files/lsh.confd9
-rwxr-xr-xdev-libs/lsh/files/lsh.rc32
-rw-r--r--dev-libs/lsh/lsh-1.4.3-r1.ebuild9
4 files changed, 53 insertions, 3 deletions
diff --git a/dev-libs/lsh/ChangeLog b/dev-libs/lsh/ChangeLog
index 7ba5b47fb661..10cd6818a69f 100644
--- a/dev-libs/lsh/ChangeLog
+++ b/dev-libs/lsh/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/lsh
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/lsh/ChangeLog,v 1.7 2004/11/22 04:45:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/lsh/ChangeLog,v 1.8 2004/11/23 02:25:04 vapier Exp $
+
+ 22 Nov 2004; Mike Frysinger <vapier@gentoo.org> +files/lsh.confd,
+ +files/lsh.rc, lsh-1.4.3-r1.ebuild:
+ Add init.d scripts #71088 by Grzegorz Artur Daszuta.
21 Nov 2004; Mike Frysinger <vapier@gentoo.org>
+files/1.4.3-configure.patch, files/1.4.3-gcc34.patch,
diff --git a/dev-libs/lsh/files/lsh.confd b/dev-libs/lsh/files/lsh.confd
new file mode 100644
index 000000000000..3d56c22a46c8
--- /dev/null
+++ b/dev-libs/lsh/files/lsh.confd
@@ -0,0 +1,9 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/lsh/files/lsh.confd,v 1.1 2004/11/23 02:25:04 vapier Exp $
+
+# see `lshd --help` for more information
+# -p [num] changes the port number to listen on
+# --no-root-login don't allow root to login
+
+LSHD_OPTS=""
diff --git a/dev-libs/lsh/files/lsh.rc b/dev-libs/lsh/files/lsh.rc
new file mode 100755
index 000000000000..740207d9b626
--- /dev/null
+++ b/dev-libs/lsh/files/lsh.rc
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/lsh/files/lsh.rc,v 1.1 2004/11/23 02:25:04 vapier Exp $
+
+depend() {
+ use logger dns net
+}
+
+check_config() {
+ local vardir="/var/spool/lsh"
+ [ ! -d ${vardir} ] && mkdir ${vardir}
+ [ ! -e ${vardir}/yarrow-seed-file ] && lsh-make-seed -o ${vardir}/yarrow-seed-file
+ if [ ! -e /etc/lsh_host_key ] ; then
+ einfo "Generating DSA-Hostkey..."
+ /usr/bin/lsh-keygen --server -a dsa -l 8 -q | /usr/bin/lsh-writekey --server -q
+ fi
+ return 0
+}
+
+start() {
+ check_config || return 1
+ ebegin "Starting lshd"
+ /usr/sbin/lshd --daemonic ${LSHD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lshd"
+ start-stop-daemon --stop --pidfile /var/run/lshd.pid
+ eend $?
+}
diff --git a/dev-libs/lsh/lsh-1.4.3-r1.ebuild b/dev-libs/lsh/lsh-1.4.3-r1.ebuild
index 6ba9d5d16c42..be5cacaf7eaf 100644
--- a/dev-libs/lsh/lsh-1.4.3-r1.ebuild
+++ b/dev-libs/lsh/lsh-1.4.3-r1.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/dev-libs/lsh/lsh-1.4.3-r1.ebuild,v 1.4 2004/11/22 04:45:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/lsh/lsh-1.4.3-r1.ebuild,v 1.5 2004/11/23 02:25:04 vapier Exp $
inherit eutils
@@ -14,13 +14,15 @@ SLOT="0"
KEYWORDS="x86 ~sparc ~ppc"
IUSE="pam tcpd ipv6 zlib X"
-DEPEND="dev-libs/gmp
+RDEPEND="dev-libs/gmp
dev-libs/liboop
zlib? ( sys-libs/zlib )
X? ( virtual/x11 )
tcpd? ( sys-apps/tcp-wrappers )
pam? ( sys-libs/pam )"
# kerberos? ( virtual/krb5 )
+DEPEND="${RDEPEND}
+ >=sys-apps/portage-2.0.51"
src_unpack() {
unpack ${A}
@@ -50,6 +52,9 @@ src_install() {
emake install DESTDIR=${D} || die
dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README
+ newinitd ${FILESDIR}/lsh.rc lshd
+ newconfd ${FILESDIR}/lsh.confd lshd
+
# remove bundled crap #56156
cd ${D}/usr
rm -rf lib include share/info/nettle.info*