summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2007-01-07 04:17:23 +0000
committerDaniel Black <dragonheart@gentoo.org>2007-01-07 04:17:23 +0000
commitac9d5ddd0f6035617416a2ca06ee1debc48ecfe2 (patch)
tree0f112b24d8a98d8bd1d9e64901e6a1d8257bc485 /net-libs/libssh
parentremove deprecated 2005.x profiles (diff)
downloadgentoo-2-ac9d5ddd0f6035617416a2ca06ee1debc48ecfe2.tar.gz
gentoo-2-ac9d5ddd0f6035617416a2ca06ee1debc48ecfe2.tar.bz2
gentoo-2-ac9d5ddd0f6035617416a2ca06ee1debc48ecfe2.zip
version bump as per bug #160619 - ebuild thanks to Ricardo Lanziano
(Portage version: 2.1.2_rc4-r6)
Diffstat (limited to 'net-libs/libssh')
-rw-r--r--net-libs/libssh/ChangeLog10
-rw-r--r--net-libs/libssh/files/digest-libssh-0.23
-rw-r--r--net-libs/libssh/files/makefile_no-examples.diff47
-rw-r--r--net-libs/libssh/libssh-0.2.ebuild43
4 files changed, 101 insertions, 2 deletions
diff --git a/net-libs/libssh/ChangeLog b/net-libs/libssh/ChangeLog
index 8e1efa8ee5fb..3b3c9d838465 100644
--- a/net-libs/libssh/ChangeLog
+++ b/net-libs/libssh/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/libssh
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libssh/ChangeLog,v 1.7 2005/03/05 18:11:31 kingtaco Exp $
+# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libssh/ChangeLog,v 1.8 2007/01/07 04:17:23 dragonheart Exp $
+
+*libssh-0.2 (07 Jan 2007)
+
+ 07 Jan 2007; Daniel Black <dragonheart@gentoo.org>
+ +files/makefile_no-examples.diff, +libssh-0.2.ebuild:
+ version bump as per bug #160619 - ebuild thanks to Ricardo Lanziano
05 Mar 2005; Mike Doty <kingtaco@gentoo.org> :
~amd64 per ka0ttics request
diff --git a/net-libs/libssh/files/digest-libssh-0.2 b/net-libs/libssh/files/digest-libssh-0.2
new file mode 100644
index 000000000000..dcbca060b3aa
--- /dev/null
+++ b/net-libs/libssh/files/digest-libssh-0.2
@@ -0,0 +1,3 @@
+MD5 8a76c03579a3e27046e6bafe88ffd171 libssh-0.2.tgz 329371
+RMD160 29b5d109f7962daa1f5e38197ff75b9603a39873 libssh-0.2.tgz 329371
+SHA256 46c3831fd563c54283ebef56e2cb11c27f47b1be9f6cb44f1465897dd7aea5ff libssh-0.2.tgz 329371
diff --git a/net-libs/libssh/files/makefile_no-examples.diff b/net-libs/libssh/files/makefile_no-examples.diff
new file mode 100644
index 000000000000..b9ee07171d7b
--- /dev/null
+++ b/net-libs/libssh/files/makefile_no-examples.diff
@@ -0,0 +1,47 @@
+--- libssh-0.2.orig/Makefile.in 2007-01-03 20:34:37.000000000 -0500
++++ libssh-0.2/Makefile.in 2007-01-03 20:36:41.000000000 -0500
+@@ -21,14 +21,12 @@
+ INSTALL = @INSTALL@
+ LN = @LN_S@
+ LIBTOOL = @LIBTOOL@
+-OBJECTS = sample.o samplesshd.o
+-APPS = samplessh samplesftp samplesshd
+ VERSION = 0.2
+ DISTLIB = libssh-$(VERSION)
+ CONFIG = include/libssh/config.h
+
+ .PHONY: all
+-all: $(CONFIG) SUBDIRS $(OBJECTS) $(APPS)
++all: $(CONFIG) SUBDIRS
+
+ .PHONY: SUBDIRS
+ SUBDIRS:
+@@ -40,12 +38,6 @@
+ % : %.o
+ $(LIBTOOL) --mode=link $(CC) -o $@ $< $(LDFLAGS) $(LIBS)
+
+-samplessh: sample.o
+- $(LIBTOOL) --mode=link $(CC) -o $@ $< $(LDFLAGS) $(LIBS)
+-
+-samplesftp: samplessh
+- $(LN) -f samplessh samplesftp
+-
+ $(CONFIG):
+ $(LN) -f ../../config.h $(CONFIG)
+
+@@ -94,14 +86,12 @@
+ install-doc: doc
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)/libssh/html
+ $(INSTALL) doxygen/html/* $(DESTDIR)$(docdir)/libssh/html
+- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)/libssh/examples
+- $(INSTALL) sample.c samplesshd.c $(DESTDIR)$(docdir)/libssh/examples
+ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man3
+ $(INSTALL) doxygen/man/man3/* $(DESTDIR)$(mandir)/man3
+
+ .PHONY: clean
+ clean:
+- $(LIBTOOL) --mode=clean rm -f *~ *.o samplessh samplesftp samplesshd include/libssh/config.h
++ $(LIBTOOL) --mode=clean rm -f *~ *.o include/libssh/config.h
+ rm -rf doxygen
+ @for dir in ${subdirs}; do \
+ (cd $$dir && $(MAKE) clean) \
diff --git a/net-libs/libssh/libssh-0.2.ebuild b/net-libs/libssh/libssh-0.2.ebuild
new file mode 100644
index 000000000000..13258e590ef8
--- /dev/null
+++ b/net-libs/libssh/libssh-0.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libssh/libssh-0.2.ebuild,v 1.1 2007/01/07 04:17:23 dragonheart Exp $
+
+inherit eutils
+
+DESCRIPTION="Access a working SSH implementation by means of a library"
+HOMEPAGE="http://0xbadc0de.be/?part=libssh"
+SRC_URI="http://www.0xbadc0de.be/libssh/${P}.tgz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="crypt examples"
+
+DEPEND="sys-libs/zlib
+ !crypt? ( dev-libs/openssl )
+ crypt? ( dev-libs/libgcrypt )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/makefile_no-examples.diff"
+}
+
+src_compile() {
+ econf \
+ $(use_with crypt) \
+ --disable-ssh1 \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ chmod a-x ${D}/usr/include/libssh/*
+ emake DESTDIR="${D}" install || die "install failed"
+ rm "${D}"/usr/include/libssh/ssh1.h
+ dodoc README CHANGELOG
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins sample.c samplesshd.c
+ fi
+}