diff options
author | lx <lx@FreeBSD.org> | 2009-10-07 05:38:18 +0800 |
---|---|---|
committer | lx <lx@FreeBSD.org> | 2009-10-07 05:38:18 +0800 |
commit | b84a670431e946ca5e7ecb7e8f38471865149452 (patch) | |
tree | 8d8ebe831efee5dcd16e4cec48dcd26afa381c84 /security/libssh2 | |
parent | aec4ffc2a95be10ab3194f7a6fb7c691196e65ba (diff) | |
download | freebsd-ports-gnome-b84a670431e946ca5e7ecb7e8f38471865149452.tar.gz freebsd-ports-gnome-b84a670431e946ca5e7ecb7e8f38471865149452.tar.zst freebsd-ports-gnome-b84a670431e946ca5e7ecb7e8f38471865149452.zip |
Support libgcrypt, and update to 1.2.1, a bugfix release.
PR: ports/138473
Submitted by: Peter Wullinger
Feature safe: yes
Diffstat (limited to 'security/libssh2')
-rw-r--r-- | security/libssh2/Makefile | 22 | ||||
-rw-r--r-- | security/libssh2/distinfo | 6 | ||||
-rw-r--r-- | security/libssh2/pkg-plist | 9 |
3 files changed, 25 insertions, 12 deletions
diff --git a/security/libssh2/Makefile b/security/libssh2/Makefile index a21c56d999ec..b9da540ca0f0 100644 --- a/security/libssh2/Makefile +++ b/security/libssh2/Makefile @@ -6,7 +6,7 @@ # PORTNAME= libssh2 -PORTVERSION= 1.2 +PORTVERSION= 1.2.1 PORTEPOCH= 2 CATEGORIES= security devel MASTER_SITES= http://www.libssh2.org/download/ \ @@ -18,14 +18,16 @@ COMMENT= A library implementing the SSH2 protocol USE_OPENSSL= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes +OPTIONS= GCRYPT "Use libgcrypt instead of OpenSSL" off -PLIST_FILES= include/libssh2.h \ - include/libssh2_publickey.h \ - include/libssh2_sftp.h \ - lib/libssh2.so \ - lib/libssh2.so.1 \ - lib/libssh2.la \ - lib/libssh2.a +.include <bsd.port.pre.mk> + +.if defined(WITH_GCRYPT) +LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt +CONFIGURE_ARGS+= --with-libgcrypt -with-libgcrypt-prefix=${LOCALBASE} --without-openssl +CFLAGS+=-I${LOCALBASE}/include +LDFLAGS+=-L${LOCALBASE}/lib +.endif MAN3= libssh2_banner_set.3 \ libssh2_base64_decode.3 \ @@ -125,5 +127,7 @@ post-patch: @${REINPLACE_CMD} -e '/ssh2_sample\.o/d' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|SHLIB_SUFFIX_NAME@ |SHLIB_SUFFIX_NAME@.0 |g' \ ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \ + ${WRKSRC}/Makefile.in -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/security/libssh2/distinfo b/security/libssh2/distinfo index 03b322188c69..adbc4e28d686 100644 --- a/security/libssh2/distinfo +++ b/security/libssh2/distinfo @@ -1,3 +1,3 @@ -MD5 (libssh2-1.2.tar.gz) = 751f4b5b5d8091f84cfe25fa52226cf9 -SHA256 (libssh2-1.2.tar.gz) = 3176fc0c31de6be74e531680319cbf595637667c0645223d5d66caec54937bb8 -SIZE (libssh2-1.2.tar.gz) = 532299 +MD5 (libssh2-1.2.1.tar.gz) = 4ee0197947a3b8a4472328c346e1a0e4 +SHA256 (libssh2-1.2.1.tar.gz) = d225403bbd8c0c2ecc5dc8e3f0e81525818965f285ad4b8b4c2f1d54f3f9c854 +SIZE (libssh2-1.2.1.tar.gz) = 533302 diff --git a/security/libssh2/pkg-plist b/security/libssh2/pkg-plist new file mode 100644 index 000000000000..57876214788e --- /dev/null +++ b/security/libssh2/pkg-plist @@ -0,0 +1,9 @@ +include/libssh2.h +include/libssh2_publickey.h +include/libssh2_sftp.h +lib/libssh2.so +lib/libssh2.so.1 +lib/libssh2.la +lib/libssh2.a +libdata/pkgconfig/libssh2.pc +@dirrmtry libdata/pkgconfig |