diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-11-23 02:25:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-11-23 02:25:04 +0000 |
commit | 887b93ec717dc87adb3ff7082eb5b1fecd66b5a1 (patch) | |
tree | 4734705d33991c20497c7f9beebcdc9c1469bda0 /dev-libs | |
parent | out of -* and into ~ (diff) | |
download | historical-887b93ec717dc87adb3ff7082eb5b1fecd66b5a1.tar.gz historical-887b93ec717dc87adb3ff7082eb5b1fecd66b5a1.tar.bz2 historical-887b93ec717dc87adb3ff7082eb5b1fecd66b5a1.zip |
Add init.d scripts #71088 by Grzegorz Artur Daszuta.
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/lsh/ChangeLog | 6 | ||||
-rw-r--r-- | dev-libs/lsh/Manifest | 12 | ||||
-rw-r--r-- | dev-libs/lsh/files/lsh.confd | 9 | ||||
-rwxr-xr-x | dev-libs/lsh/files/lsh.rc | 32 | ||||
-rw-r--r-- | dev-libs/lsh/lsh-1.4.3-r1.ebuild | 9 |
5 files changed, 60 insertions, 8 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/Manifest b/dev-libs/lsh/Manifest index af9dd8d4cbf5..226a14fe9517 100644 --- a/dev-libs/lsh/Manifest +++ b/dev-libs/lsh/Manifest @@ -1,15 +1,17 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 0defd3db16c62344e3806bfdad8a0bf7 ChangeLog 1091 -MD5 e8d16e734d637941c6ce77c577023bbe lsh-1.4.3-r1.ebuild 1401 +MD5 829c50f77326e5c9cc057f26cfa946c4 ChangeLog 1253 +MD5 b86248162d60c551de0ee1cfa7f4eacb lsh-1.4.3-r1.ebuild 1521 +MD5 f4285a50a3773a3214e1c27318f8e564 files/lsh.confd 367 MD5 12d8d84a70281a27cccb14cc8e2c83e2 files/digest-lsh-1.4.3-r1 62 MD5 e2a988c83f0406d964502a58a4f58cd3 files/1.4.3-gcc34.patch 2002 MD5 5e752fc7adf408a2f4a3fb4601132787 files/1.4.3-configure.patch 355 +MD5 13a8cdb1e4adc742fe28a3710abf2c0c files/lsh.rc 814 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.10 (GNU/Linux) -iD8DBQFBoW8QHTu7gpaalycRApeEAKCdKyFje11Qmr/Nu88qcjsZU1nAdQCg9lRH -oIrvVda7zw8dITrHrsv4F0U= -=H4as +iD8DBQFBop/CHTu7gpaalycRAmuKAJkB59r0NR+qHywRHl6dRZC0mJIu+gCgmb7e +7Kg2tSlJTpI7reEIfZ26Jpc= +=RAob -----END PGP SIGNATURE----- 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* |