diff options
-rw-r--r-- | meta/packages/gnutls/gnutls.inc | 44 | ||||
-rw-r--r-- | meta/packages/gnutls/gnutls/gnutls-openssl.patch (renamed from meta/packages/gnutls/gnutls-1.4.4/gnutls-openssl.patch) | 24 | ||||
-rw-r--r-- | meta/packages/gnutls/gnutls/gnutls-texinfo-euro.patch (renamed from meta/packages/gnutls/gnutls-1.4.4/gnutls-texinfo-euro.patch) | 0 | ||||
-rw-r--r-- | meta/packages/gnutls/gnutls/onceonly.m4 (renamed from meta/packages/gnutls/gnutls-1.4.4/onceonly.m4) | 0 | ||||
-rw-r--r-- | meta/packages/gnutls/gnutls_1.4.4.bb | 41 | ||||
-rw-r--r-- | meta/packages/gnutls/gnutls_1.6.3.bb | 6 |
6 files changed, 64 insertions, 51 deletions
diff --git a/meta/packages/gnutls/gnutls.inc b/meta/packages/gnutls/gnutls.inc new file mode 100644 index 0000000000..ed96e3f588 --- /dev/null +++ b/meta/packages/gnutls/gnutls.inc @@ -0,0 +1,44 @@ +DESCRIPTION = "GNU Transport Layer Security Library" +HOMEPAGE = "http://www.gnu.org/software/gnutls/" +DEPENDS = "zlib libgcrypt lzo" + +LICENSE = "LGPL" + +SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2 \ + file://gnutls-openssl.patch;patch=1 \ + file://onceonly.m4 \ + file://gnutls-texinfo-euro.patch;patch=1" + +inherit autotools binconfig pkgconfig + +EXTRA_OECONF="--with-included-opencdk --with-included-libtasn1" + +do_configure_prepend() { + cp ${WORKDIR}/onceonly.m4 ${S}/m4/ +} + +do_stage() { + oe_libinstall -C lib/.libs -so -a libgnutls ${STAGING_LIBDIR} + oe_libinstall -C libextra/.libs -so -a libgnutls-extra ${STAGING_LIBDIR} + oe_libinstall -C libextra/.libs -so -a libgnutls-openssl ${STAGING_LIBDIR} + autotools_stage_includes + + install -d ${STAGING_DATADIR}/aclocal + cp ${S}/lib/libgnutls.m4 ${STAGING_DATADIR}/aclocal/ + cp ${S}/libextra/libgnutls-extra.m4 ${STAGING_DATADIR}/aclocal/ +} + +PACKAGES =+ "${PN}-openssl ${PN}-extra ${PN}-bin ${PN}-xx" + +FILES_${PN} = "${libdir}/libgnutls.so.*" +FILES_${PN}-bin = "${bindir}/gnutls-serv \ + ${bindir}/gnutls-cli \ + ${bindir}/srptool \ + ${bindir}/psktool \ + ${bindir}/certtool \ + ${bindir}/gnutls-srpcrypt" + +FILES_${PN}-dev += "${bindir}/*-config ${bindir}/gnutls-cli-debug" +FILES_${PN}-extra = "${libdir}/libgnutls-extra.so.*" +FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*" +FILES_${PN}-xx = "${libdir}/libgnutlsxx.so.*" diff --git a/meta/packages/gnutls/gnutls-1.4.4/gnutls-openssl.patch b/meta/packages/gnutls/gnutls/gnutls-openssl.patch index 6eca97efd7..e2c189592f 100644 --- a/meta/packages/gnutls/gnutls-1.4.4/gnutls-openssl.patch +++ b/meta/packages/gnutls/gnutls/gnutls-openssl.patch @@ -1,6 +1,8 @@ ---- gnutls-1.3.5/libextra/gnutls_openssl.c.orig 2006-04-28 20:01:40.000000000 +0100 -+++ gnutls-1.3.5/libextra/gnutls_openssl.c 2006-04-28 20:10:33.000000000 +0100 -@@ -252,12 +252,17 @@ +Index: gnutls-1.6.0/libextra/gnutls_openssl.c +=================================================================== +--- gnutls-1.6.0.orig/libextra/gnutls_openssl.c 2006-08-13 22:34:09.000000000 +0200 ++++ gnutls-1.6.0/libextra/gnutls_openssl.c 2006-12-12 15:07:59.002227000 +0100 +@@ -256,12 +256,17 @@ ssl->rfd = (gnutls_transport_ptr_t) - 1; ssl->wfd = (gnutls_transport_ptr_t) - 1; @@ -18,15 +20,15 @@ gnutls_certificate_free_credentials (ssl->gnutls_cred); gnutls_deinit (ssl->gnutls_state); free (ssl); -@@ -281,6 +286,7 @@ +@@ -285,6 +290,7 @@ SSL_set_fd (SSL * ssl, int fd) { - gnutls_transport_set_ptr (ssl->gnutls_state, (gnutls_transport_ptr_t) fd); + gnutls_transport_set_ptr (ssl->gnutls_state, GNUTLS_INT_TO_POINTER (fd)); + ssl->rfd = ssl->wfd = fd; return 1; } -@@ -306,6 +312,17 @@ +@@ -310,6 +316,17 @@ return 1; } @@ -44,7 +46,7 @@ void SSL_set_bio (SSL * ssl, BIO * rbio, BIO * wbio) { -@@ -321,6 +338,8 @@ +@@ -325,6 +342,8 @@ int SSL_pending (SSL * ssl) { @@ -53,7 +55,7 @@ return gnutls_record_check_pending (ssl->gnutls_state); } -@@ -476,11 +495,50 @@ +@@ -480,11 +499,50 @@ return 1; } @@ -104,8 +106,10 @@ ret = gnutls_record_recv (ssl->gnutls_state, buf, len); ssl->last_error = ret; ---- gnutls-1.3.5/includes/gnutls/openssl.h.orig 2006-04-28 20:10:55.000000000 +0100 -+++ gnutls-1.3.5/includes/gnutls/openssl.h 2006-04-28 20:11:52.000000000 +0100 +Index: gnutls-1.6.0/includes/gnutls/openssl.h +=================================================================== +--- gnutls-1.6.0.orig/includes/gnutls/openssl.h 2006-03-08 11:44:58.000000000 +0100 ++++ gnutls-1.6.0/includes/gnutls/openssl.h 2006-12-12 15:07:26.032227000 +0100 @@ -164,6 +164,11 @@ gnutls_transport_ptr_t rfd; diff --git a/meta/packages/gnutls/gnutls-1.4.4/gnutls-texinfo-euro.patch b/meta/packages/gnutls/gnutls/gnutls-texinfo-euro.patch index e2a2762424..e2a2762424 100644 --- a/meta/packages/gnutls/gnutls-1.4.4/gnutls-texinfo-euro.patch +++ b/meta/packages/gnutls/gnutls/gnutls-texinfo-euro.patch diff --git a/meta/packages/gnutls/gnutls-1.4.4/onceonly.m4 b/meta/packages/gnutls/gnutls/onceonly.m4 index f6fec37cbf..f6fec37cbf 100644 --- a/meta/packages/gnutls/gnutls-1.4.4/onceonly.m4 +++ b/meta/packages/gnutls/gnutls/onceonly.m4 diff --git a/meta/packages/gnutls/gnutls_1.4.4.bb b/meta/packages/gnutls/gnutls_1.4.4.bb deleted file mode 100644 index 021bf9e416..0000000000 --- a/meta/packages/gnutls/gnutls_1.4.4.bb +++ /dev/null @@ -1,41 +0,0 @@ -DESCRIPTION = "GNU Transport Layer Security Library" -DEPENDS = "zlib libgcrypt lzo readline" -HOMEPAGE = "http://www.gnu.org/software/gnutls/" -LICENSE = "LGPL" - -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2 \ - file://onceonly.m4 \ - file://gnutls-openssl.patch;patch=1 \ - file://gnutls-texinfo-euro.patch;patch=1" - -inherit autotools binconfig - -do_configure_prepend() { - cp ${WORKDIR}/onceonly.m4 ${S}/m4/ -} - -PACKAGES =+ "${PN}-openssl ${PN}-extra ${PN}-bin" -FILES_${PN}-openssl = "${libdir}/libgnutls-openssl.so.*" -FILES_${PN}-extra = "${libdir}/libgnutls-extra.so.*" -FILES_${PN} = "${libdir}/libgnutls.so.*" -FILES_${PN}-bin = "${bindir}/gnutls-serv \ - ${bindir}/gnutls-cli \ - ${bindir}/srptool \ - ${bindir}/certtool \ - ${bindir}/gnutls-srpcrypt \ - ${bindir}/psktool" - -FILES_${PN}-dev += "${bindir}/*-config ${bindir}/gnutls-cli-debug" - -EXTRA_OECONF="--with-included-opencdk --with-included-libtasn1 --with-libz-prefix=${STAGING_LIBDIR}/.. --with-libreadline-prefix=${STAGING_LIBDIR}/.." - -do_stage() { - oe_libinstall -C lib/.libs -so -a libgnutls ${STAGING_LIBDIR} - oe_libinstall -C libextra/.libs -so -a libgnutls-extra ${STAGING_LIBDIR} - oe_libinstall -C libextra/.libs -so -a libgnutls-openssl ${STAGING_LIBDIR} - autotools_stage_includes - - install -d ${STAGING_DATADIR}/aclocal - cp ${S}/lib/libgnutls.m4 ${STAGING_DATADIR}/aclocal/ -} - diff --git a/meta/packages/gnutls/gnutls_1.6.3.bb b/meta/packages/gnutls/gnutls_1.6.3.bb new file mode 100644 index 0000000000..68077c0c5a --- /dev/null +++ b/meta/packages/gnutls/gnutls_1.6.3.bb @@ -0,0 +1,6 @@ +require gnutls.inc +PR = "r1" + +do_configure_prepend() { + sed -i "s/2.60/2.59/" ${S}/configure.in +} |