Merge openembedded@openembedded.bkbits.net:packages
[vuplus_openembedded] / libssh / libssh_0.1.oe
1 DESCRIPTION = "The SSH library is a C library to authenticate in a \
2 simple manner to one or more SSH servers. The goal of this project \
3 is to provide a library much simpler to use than OpenSSHs one. It \
4 includes SFTP support, and a sample SSH client is provided."
5 DEPENDS = "virtual/libc openssl"
6 LICENSE = "LGPL"
7
8 SRC_URI = "http://www.0xbadc0de.be/projects/libssh/libssh-${PV}.tgz"
9
10 inherit autotools
11
12 EXTRA_OECONF = "--cache-file=${S}/config.cache"
13
14 do_stage () {
15         set -x
16         install -d ${STAGING_INCDIR}/libssh
17         for i in crypto.h libssh.h sftp.h ssh2.h; do
18                 install -m 0644 ${S}/include/libssh/$i ${STAGING_INCDIR}/libssh/
19         done
20         install -m 0755 libssh/libssh.so ${STAGING_LIBDIR}/
21 }
22
23 do_install () {
24         oe_runmake "prefix=${D}/${prefix}" \
25                    "exec_prefix=${D}/${exec_prefix}" \
26                    "bindir=${D}/${bindir}" \
27                    "incldir=${D}/${includedir}" \
28                    "infodir=${D}/${datadir}/info" \
29                    "mandir=${D}/${mandir}/man1" \
30                    "libdir=${D}/${libdir}" \
31                    install
32 }