summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-11-23 02:47:12 +0000
committerMike Frysinger <vapier@gentoo.org>2004-11-23 02:47:12 +0000
commitac04872dbb8a337398289b19b758e1b9d90acd08 (patch)
tree6b36d5bd725cf633ed09497ae6137ed564945b17 /net-misc/lsh
parentmove to net-misc #71088 (diff)
downloadgentoo-2-ac04872dbb8a337398289b19b758e1b9d90acd08.tar.gz
gentoo-2-ac04872dbb8a337398289b19b758e1b9d90acd08.tar.bz2
gentoo-2-ac04872dbb8a337398289b19b758e1b9d90acd08.zip
Move from dev-libs #71088
Diffstat (limited to 'net-misc/lsh')
-rw-r--r--net-misc/lsh/ChangeLog36
-rw-r--r--net-misc/lsh/Manifest17
-rw-r--r--net-misc/lsh/files/1.4.3-configure.patch12
-rw-r--r--net-misc/lsh/files/1.4.3-gcc34.patch68
-rw-r--r--net-misc/lsh/files/digest-lsh-1.4.3-r11
-rw-r--r--net-misc/lsh/files/lsh.confd9
-rwxr-xr-xnet-misc/lsh/files/lsh.rc32
-rw-r--r--net-misc/lsh/lsh-1.4.3-r1.ebuild61
8 files changed, 236 insertions, 0 deletions
diff --git a/net-misc/lsh/ChangeLog b/net-misc/lsh/ChangeLog
new file mode 100644
index 000000000000..56954c9d9322
--- /dev/null
+++ b/net-misc/lsh/ChangeLog
@@ -0,0 +1,36 @@
+# ChangeLog for net-misc/lsh
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/lsh/ChangeLog,v 1.1 2004/11/23 02:47:12 vapier Exp $
+
+ 22 Nov 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/1.4.3-configure.patch, +files/1.4.3-gcc34.patch, +files/lsh.confd,
+ +files/lsh.rc, +lsh-1.4.3-r1.ebuild:
+ Move from dev-libs #71088
+
+ 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,
+ lsh-1.4.3-r1.ebuild:
+ Add fix for configure script from upstream.
+
+ 17 Jul 2004; David Holm <dholm@gentoo.org> lsh-1.4.3-r1.ebuild:
+ Added to ~ppc.
+
+*lsh-1.4.3-r1 (11 Jul 2004)
+
+ 11 Jul 2004; Mike Frysinger <vapier@gentoo.org> +files/1.4.3-gcc34.patch,
+ +lsh-1.4.3-r1.ebuild, -lsh-1.4.3.ebuild:
+ Make sure we dont install the bundled nettle library since it is tracked with
+ dev-libs/nettle #56156 by Rainer Groesslinger.
+
+ 29 Dec 2003; Jason Wever <weeve@gentoo.org> lsh-1.4.3.ebuild:
+ And on the 7th day, the ~sparc keyword appeared. And the insane Gentoo/SPARC
+ gods looked down on it and saw it was good.
+
+*lsh-1.4.3 (28 Oct 2003)
+
+ 28 Oct 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by Justin Heesemann <jh-gentoo@ionium.org> #28971.
diff --git a/net-misc/lsh/Manifest b/net-misc/lsh/Manifest
new file mode 100644
index 000000000000..226a14fe9517
--- /dev/null
+++ b/net-misc/lsh/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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)
+
+iD8DBQFBop/CHTu7gpaalycRAmuKAJkB59r0NR+qHywRHl6dRZC0mJIu+gCgmb7e
+7Kg2tSlJTpI7reEIfZ26Jpc=
+=RAob
+-----END PGP SIGNATURE-----
diff --git a/net-misc/lsh/files/1.4.3-configure.patch b/net-misc/lsh/files/1.4.3-configure.patch
new file mode 100644
index 000000000000..e8190931fde3
--- /dev/null
+++ b/net-misc/lsh/files/1.4.3-configure.patch
@@ -0,0 +1,12 @@
+--- lsh-1.4.3/configure.ac.orig 2004-11-21 19:47:44.363105536 -0500
++++ lsh-1.4.3/configure.ac 2004-11-21 19:48:20.205656640 -0500
+@@ -406,7 +406,9 @@
+ AC_PATH_X
+
+ if test -z "$no_x" ; then
++ if test x"$x_includes" != x ; then
+ CPPFLAGS="$CPPFLAGS -I$x_includes"
++ fi
+ LDFLAGS="$LDFLAGS -L$x_libraries"
+ LSH_RPATH_ADD($x_libraries)
+ fi
diff --git a/net-misc/lsh/files/1.4.3-gcc34.patch b/net-misc/lsh/files/1.4.3-gcc34.patch
new file mode 100644
index 000000000000..37c35c0978a1
--- /dev/null
+++ b/net-misc/lsh/files/1.4.3-gcc34.patch
@@ -0,0 +1,68 @@
+--- lsh-1.4.3/src/sftp/sftp_c.c.orig 2004-07-11 16:33:04.488647128 -0400
++++ lsh-1.4.3/src/sftp/sftp_c.c 2004-07-11 16:33:29.583832080 -0400
+@@ -1096,9 +1096,10 @@
+ int ret;
+ int write_needed = 0;
+ UINT32 i;
++ struct sftp_callback *pos = state;
+
+ /* FIXME: state is const */
+- state->mem.used = 0;
++ pos->mem.used = 0;
+
+ sftp_get_mem_main(next, msg, id, in, out, state );
+
+--- lsh-1.4.3/src/argp/argp.h.orig 2004-11-21 18:26:53.256585824 -0500
++++ lsh-1.4.3/src/argp/argp.h 2004-11-21 18:27:08.438277856 -0500
+@@ -554,13 +554,13 @@
+ # endif
+
+ ARGP_EI void
+-__argp_usage (__const struct argp_state *__state) __THROW
++__argp_usage (__const struct argp_state *__state)
+ {
+ __argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
+ }
+
+ ARGP_EI int
+-__option_is_short (__const struct argp_option *__opt) __THROW
++__option_is_short (__const struct argp_option *__opt)
+ {
+ if (__opt->flags & OPTION_DOC)
+ return 0;
+@@ -572,7 +572,7 @@
+ }
+
+ ARGP_EI int
+-__option_is_end (__const struct argp_option *__opt) __THROW
++__option_is_end (__const struct argp_option *__opt)
+ {
+ return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
+ }
+--- lsh-1.4.3/src/argp/argp-parse.c.orig 2004-11-21 18:27:21.137347304 -0500
++++ lsh-1.4.3/src/argp/argp-parse.c 2004-11-21 18:27:38.008782456 -0500
+@@ -1267,13 +1267,13 @@
+ /* Defined here, in case a user is not inlining the definitions in
+ * argp.h */
+ void
+-__argp_usage (__const struct argp_state *__state) __THROW
++__argp_usage (__const struct argp_state *__state)
+ {
+ __argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
+ }
+
+ int
+-__option_is_short (__const struct argp_option *__opt) __THROW
++__option_is_short (__const struct argp_option *__opt)
+ {
+ if (__opt->flags & OPTION_DOC)
+ return 0;
+@@ -1287,7 +1287,7 @@
+ }
+
+ int
+-__option_is_end (__const struct argp_option *__opt) __THROW
++__option_is_end (__const struct argp_option *__opt)
+ {
+ return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
+ }
diff --git a/net-misc/lsh/files/digest-lsh-1.4.3-r1 b/net-misc/lsh/files/digest-lsh-1.4.3-r1
new file mode 100644
index 000000000000..4c17d38c7892
--- /dev/null
+++ b/net-misc/lsh/files/digest-lsh-1.4.3-r1
@@ -0,0 +1 @@
+MD5 e3b6c88a8efce3f24ef9094e8ab47206 lsh-1.4.3.tar.gz 1414008
diff --git a/net-misc/lsh/files/lsh.confd b/net-misc/lsh/files/lsh.confd
new file mode 100644
index 000000000000..5fe9c12b2358
--- /dev/null
+++ b/net-misc/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/net-misc/lsh/files/lsh.confd,v 1.1 2004/11/23 02:47:12 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/net-misc/lsh/files/lsh.rc b/net-misc/lsh/files/lsh.rc
new file mode 100755
index 000000000000..c2d666c8e238
--- /dev/null
+++ b/net-misc/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/net-misc/lsh/files/lsh.rc,v 1.1 2004/11/23 02:47:12 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/net-misc/lsh/lsh-1.4.3-r1.ebuild b/net-misc/lsh/lsh-1.4.3-r1.ebuild
new file mode 100644
index 000000000000..06bfa4dbe6c7
--- /dev/null
+++ b/net-misc/lsh/lsh-1.4.3-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/lsh/lsh-1.4.3-r1.ebuild,v 1.1 2004/11/23 02:47:12 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="A GNU implementation of the Secure Shell protocols"
+HOMEPAGE="http://www.lysator.liu.se/~nisse/lsh/"
+SRC_URI="ftp://ftp.lysator.liu.se/pub/security/lsh/${P}.tar.gz
+ http://www.lysator.liu.se/~nisse/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~sparc ~ppc"
+IUSE="pam tcpd ipv6 zlib X"
+
+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}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-gcc34.patch
+ epatch ${FILESDIR}/${PV}-configure.patch
+ autoconf || die
+}
+
+src_compile() {
+ # configure script checks /dev/ptmx in order to enable
+ # proper unix pty support ... so lets fake that it works :)
+ addpredict /dev/ptmx
+# $(use_enable kerberos)
+ econf \
+ --disable-kerberos \
+ $(use_enable pam) \
+ $(use_enable ipv6) \
+ $(use_with zlib) \
+ $(use_with tcpd tcpwrappers) \
+ $(use_with X x) \
+ || die
+ emake || die
+}
+
+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*
+}