aboutsummaryrefslogtreecommitdiff
path: root/security/libssh2
diff options
context:
space:
mode:
authorDavid Thiel <lx@FreeBSD.org>2009-10-06 21:38:18 +0000
committerDavid Thiel <lx@FreeBSD.org>2009-10-06 21:38:18 +0000
commitc8f53ebab5895467b4bbaec75a0d54086e44a92f (patch)
tree7413022e21ed752c2427b230226e1792eca97750 /security/libssh2
parent16ac92e6df883c7a8342e0380825c27f9a378783 (diff)
downloadports-c8f53ebab5895467b4bbaec75a0d54086e44a92f.tar.gz
ports-c8f53ebab5895467b4bbaec75a0d54086e44a92f.zip
Notes
Diffstat (limited to 'security/libssh2')
-rw-r--r--security/libssh2/Makefile22
-rw-r--r--security/libssh2/distinfo6
-rw-r--r--security/libssh2/pkg-plist9
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