Chinaunix首页 | 论坛 | 博客
  • 博客访问: 640554
  • 博文数量: 90
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 2018
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-03 13:09
文章分类

全部博文(90)

文章存档

2010年(7)

2009年(23)

2008年(60)

我的朋友

分类: LINUX

2008-10-13 10:31:51

upgrade libssh_0.11 to libssh_0.20 submit to oe offical repository,waiting for check again



SECTION = "libs"
DESCRIPTION = "The SSH library is a C library to authenticate in a \
simple manner to one or more SSH servers. The goal of this project \
is to provide a library much simpler to use than OpenSSHs one. It \
includes SFTP support, and a sample SSH client is provided."

DEPENDS = "openssl"
RDEPENDS = "openssl zlib"
LICENSE = "LGPL"
MAINTAINER = "lynn.lin lynnos@tong-ji.org"

SRC_URI = " \
           file://fixed-libdir-name.patch;patch=1 \
           "

S = "${WORKDIR}/libssh-0.2"

inherit autotools

EXTRA_OECONF = "--cache-file=${S}/config.cache"

do_stage () {
        set -x
        install -d ${STAGING_INCDIR}/libssh
        for i in crypto.h libssh.h sftp.h ssh2.h; do
                install -m 0644 ${S}/include/libssh/$i ${STAGING_INCDIR}/libssh/
        done
        oe_libinstall -so -C libssh libssh ${STAGING_LIBDIR}
}

do_install () {
        oe_runmake "prefix=${D}${prefix}" \
                   "exec_prefix=${D}${exec_prefix}" \
                   "bindir=${D}${bindir}" \
                   "incldir=${D}${includedir}" \
                   "infodir=${D}${infodir}" \
                   "mandir=${D}${mandir}/man1" \
                   "libdir=${D}${libdir}" \
                   install
}
~




diff -NurpP --minimal libssh-0.2/libssh/Makefile.in libssh-0.2-libdir/libssh/Makefile.in
--- libssh-0.2/libssh/Makefile.in 2006-12-29 23:03:59.000000000 +0800
+++ libssh-0.2-libdir/libssh/Makefile.in 2008-10-13 10:04:13.000000000 +0800
@@ -15,7 +15,7 @@ exec_prefix = @exec_prefix@
 bindir = $(exec_prefix)/bin
 incldir= $(prefix)/include
 infodir = $(prefix)/info
-libdir = $(prefix)/lib/
+libdir = $(prefix)/lib
 mandir = $(prefix)/man/man1

 CC = @CC@

阅读(704) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~