neon: move to net-libs, remove olds

This commit is contained in:
Jerome Duval
2014-10-03 16:25:50 +00:00
parent b9526fbf22
commit 4fc978ba24
8 changed files with 0 additions and 201 deletions

View File

@@ -1,23 +0,0 @@
DESCRIPTION="neon is an HTTP and WebDAV client library, with a C interface"
HOMEPAGE="http://www.webdav.org/neon/"
SRC_URI="http://www.webdav.org/neon/neon-0.29.1.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/openssl >= 0.9.8l
dev-libs/libxml2 >= 2.7.3"
CHECKSUM_MD5="eb4eac0499cb6fced6e3b11e4b720ebb"
BUILD()
{
cd neon-0.29.1
autogen.sh
./configure --prefix=`finddir B_COMMON_DIRECTORY` --with-ssl --with-libxml2 --enable-shared
make
}
INSTALL()
{
cd neon-0.29.1
make install
}
LICENSE="GNU LGPL v2"
COPYRIGHT="1999-2010 Joe Orton"

View File

@@ -1,23 +0,0 @@
DESCRIPTION="neon is an HTTP and WebDAV client library, with a C interface"
HOMEPAGE="http://www.webdav.org/neon/"
SRC_URI="http://www.webdav.org/neon/neon-0.29.3.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/openssl >= 1.0.0
dev-libs/libxml2 >= 2.7.7"
CHECKSUM_MD5="ba1015b59c112d44d7797b62fe7bee51"
BUILD()
{
cd neon-0.29.3
autogen.sh
./configure --prefix=`finddir B_COMMON_DIRECTORY` --with-ssl --with-libxml2 --enable-shared
make
}
INSTALL()
{
cd neon-0.29.3
make install
}
LICENSE="GNU LGPL v2"
COPYRIGHT="1999-2010 Joe Orton"

View File

@@ -1,23 +0,0 @@
DESCRIPTION="neon is an HTTP and WebDAV client library, with a C interface"
HOMEPAGE="http://www.webdav.org/neon/"
SRC_URI="http://www.webdav.org/neon/neon-0.29.4.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/openssl >= 1.0.0
dev-libs/libxml2 >= 2.7.7"
CHECKSUM_MD5="29438dbdaee84db2d7fbc73248a92d93"
BUILD()
{
cd neon-0.29.4
autogen.sh
./configure --prefix=`finddir B_COMMON_DIRECTORY` --with-ssl --with-libxml2 --enable-shared
make
}
INSTALL()
{
cd neon-0.29.4
make install
}
LICENSE="GNU LGPL v2"
COPYRIGHT="1999-2010 Joe Orton"

View File

@@ -1,38 +0,0 @@
DESCRIPTION="neon is an HTTP and WebDAV client library, with a C interface"
HOMEPAGE="http://www.webdav.org/neon/"
SRC_URI="http://www.webdav.org/neon/neon-0.29.5.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/openssl >= 1.0.0
dev-libs/libxml2 >= 2.7.7"
CHECKSUM_MD5="ff369e69ef0f0143beb5626164e87ae2"
BUILD()
{
cd neon-0.29.5
echo 'LT_INIT' >> configure.in.
echo 'AC_CONFIG_MACRO_DIR([macros])' >> configure.in
autogen.sh
libtoolize --force --copy --install
aclocal
autoconf
autogen.sh
libtoolize --force --copy --install
aclocal -I macros
autoconf
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--with-ssl \
--with-libxml2 \
--enable-shared \
--datarootdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
make
}
INSTALL()
{
cd neon-0.29.5
make install
}
LICENSE="GNU LGPL v2"
COPYRIGHT="1999-2010 Joe Orton"

View File

@@ -1,108 +0,0 @@
SUMMARY="HTTP and WebDAV client library, with a C interface"
DESCRIPTION="
neon is an HTTP and WebDAV client library, with a C interface. Features:
- high-level wrappers for common HTTP and WebDAV operations (GET, MOVE, \
DELETE, etc)
- low-level interface to the HTTP request/response engine, allowing the use of \
arbitrary HTTP methods, headers, etc.
- authentication support including Basic and Digest support, along with \
GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32
- SSL/TLS support using OpenSSL or GnuTLS; exposing an abstraction layer for \
verifying server certificates, handling client certificates, and examining \
certificate properties. Smartcard-based client certificates are also supported \
via a PKCS#11 wrapper interface.
- abstract interface to parsing XML using libxml2 or expat, and wrappers for \
simplifying handling XML HTTP response bodies
- WebDAV metadata support; wrappers for PROPFIND and PROPPATCH to simplify \
property manipulation.
"
HOMEPAGE="http://www.webdav.org/neon/"
LICENSE="GNU LGPL v2"
COPYRIGHT="1999-2011 Joe Orton"
SRC_URI="http://www.webdav.org/neon/neon-0.29.6.tar.gz"
CHECKSUM_SHA256="9c640b728d6dc80ef1e48f83181166ab6bc95309cece5537e01ffdd01b96eb43"
REVISION="9"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="neon-0.29.6.patch"
PROVIDES="
neon$secondaryArchSuffix = $portVersion compat >= 0.29
libneon$secondaryArchSuffix = 27.2.6 compat >= 27.2
lib:libneon$secondaryArchSuffix = 27.2.6 compat >= 27.2
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libcrypto$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libcrypto$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix >= 2.7.8
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:aclocal
cmd:autoconf
cmd:libtoolize
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
echo 'LT_INIT' >> configure.in
echo 'AC_CONFIG_MACRO_DIR([macros])' >> configure.in
./autogen.sh
libtoolize --force --copy --install
aclocal
autoconf
./autogen.sh
libtoolize --force --copy --install
aclocal -I macros
autoconf
runConfigure ./configure \
--with-ssl \
--with-libxml2 \
--enable-shared \
--disable-nls
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libneon
fixDevelopLibDirReferences $binDir/neon-config
fixPkgconfig
# devel package
packageEntries devel \
$binDir/neon-config \
$developDir \
$documentationDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
neon${secondaryArchSuffix}_devel = $portVersion compat >= 0.29
libneon${secondaryArchSuffix}_devel = 27.2.6 compat >= 27
cmd:neon_config$secondaryArchSuffix = $portVersion compat >= 0.29
devel:libneon$secondaryArchSuffix = 27.2.6 compat >= 27
"
REQUIRES_devel="
neon$secondaryArchSuffix == $portVersion base
libneon$secondaryArchSuffix == 27.2.6
"

View File

@@ -1,73 +0,0 @@
diff -ur neon-0.25.4-orig/src/ne_openssl.c neon-0.25.4/src/ne_openssl.c
--- neon-0.25.4-orig/src/ne_openssl.c 2005-06-01 09:19:15.000000000 +0000
+++ neon-0.25.4/src/ne_openssl.c 2008-05-18 03:09:40.000000000 +0000
@@ -196,8 +196,12 @@
bio = BIO_new(BIO_s_mem());
if (bio) {
- if (ASN1_TIME_print(bio, tm))
- BIO_read(bio, buf, NE_SSL_VDATELEN-1);
+ if (ASN1_TIME_print(bio, tm)) {
+ int len = BIO_read(bio, buf, NE_SSL_VDATELEN-1);
+ if (len >= 0)
+ buf[len] = '\0';
+
+ }
BIO_free(bio);
}
}
diff -ur neon-0.25.4-orig/src/ne_socket.c neon-0.25.4/src/ne_socket.c
--- neon-0.25.4-orig/src/ne_socket.c 2005-08-19 09:40:16.000000000 +0000
+++ neon-0.25.4/src/ne_socket.c 2008-05-18 03:09:40.000000000 +0000
@@ -136,7 +136,7 @@
#include "ne_alloc.h"
#include "ne_sspi.h"
-#if defined(__BEOS__) && !defined(BONE_VERSION)
+#if defined(__BEOS__) && !defined(BONE_VERSION) && !defined(__HAIKU__)
/* pre-BONE */
#define ne_close(s) closesocket(s)
#define ne_errno errno
diff -ur neon-0.25.4-orig/test/common/child.c neon-0.25.4/test/common/child.c
--- neon-0.25.4-orig/test/common/child.c 2005-02-14 15:43:27.000000000 +0000
+++ neon-0.25.4/test/common/child.c 2008-05-18 03:09:40.000000000 +0000
@@ -230,11 +230,12 @@
char ch;
#ifdef USE_PIPE
+ close(fds[1]);
+
if (read(fds[0], &ch, 1) < 0)
perror("parent read");
close(fds[0]);
- close(fds[1]);
#else
minisleep();
#endif
diff -ur neon-0.25.4-orig/test/common/tests.c neon-0.25.4/test/common/tests.c
--- neon-0.25.4-orig/test/common/tests.c 2005-02-14 15:43:27.000000000 +0000
+++ neon-0.25.4/test/common/tests.c 2008-05-18 03:09:40.000000000 +0000
@@ -22,7 +22,7 @@
#include <sys/types.h>
-#include <sys/signal.h>
+//#include <sys/signal.h>
#include <stdio.h>
#ifdef HAVE_SIGNAL_H
diff -ur neon-0.25.4-orig/test/run.sh neon-0.25.4/test/run.sh
--- neon-0.25.4-orig/test/run.sh 2004-10-17 18:18:20.000000000 +0000
+++ neon-0.25.4/test/run.sh 2008-05-18 03:09:40.000000000 +0000
@@ -2,8 +2,8 @@
rm -f debug.log child.log
-ulimit -c unlimited
-ulimit -v 10240
+#ulimit -c unlimited
+#ulimit -v 10240
# enable an safety-checking malloc in glibc which will abort() if
# heap corruption is detected.

View File

@@ -1,21 +0,0 @@
diff -urN neon-0.28.3/macros/neon.m4 neon-0.28.3-haiku/macros/neon.m4
--- neon-0.28.3/macros/neon.m4 2008-12-08 08:30:42.000000000 -0800
+++ neon-0.28.3-haiku/macros/neon.m4 2008-12-08 08:12:43.000000000 -0800
@@ -626,7 +626,7 @@
# Unixware 7 can only link gethostbyname with -lnsl -lsocket
# Pick up -lsocket first, then the gethostbyname check will work.
-NE_SEARCH_LIBS(socket, socket inet ws2_32)
+NE_SEARCH_LIBS(socket, socket inet ws2_32 network)
# Enable getaddrinfo support if it, gai_strerror and inet_ntop are
# all available.
@@ -659,7 +659,7 @@
# Checks for non-getaddrinfo() based resolver interfaces.
# QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
# CygWin/Winsock2 has it in -lws2_32, allegedly.
- NE_SEARCH_LIBS(gethostbyname, socket nsl bind ws2_32)
+ NE_SEARCH_LIBS(gethostbyname, socket nsl bind ws2_32 network)
NE_SEARCH_LIBS(hstrerror, resolv,,[:])
NE_CHECK_FUNCS(hstrerror)
# Older Unixes don't declare h_errno.

View File

@@ -1,12 +0,0 @@
diff -ur orig/neon-0.29.6/Makefile.in neon-0.29.6/Makefile.in
--- orig/neon-0.29.6/Makefile.in 2009-09-04 09:36:26.062914560 +0200
+++ neon-0.29.6/Makefile.in 2013-04-30 19:33:32.347340800 +0200
@@ -22,7 +22,7 @@
man3dir = $(mandir)/man3
datarootdir = @datarootdir@
datadir = @datadir@
-docdir = $(datadir)/doc/neon-@NEON_VERSION@
+docdir = @docdir@
includedir = @includedir@
neonincludes = $(includedir)/neon
pkgconfigdir = $(libdir)/pkgconfig