Import libproxy 0.2.3, a library that provides automatic proxy

configuration management. Currently provides GNOME and KDE plugins,
gecko and webkit plugins may be enabled at some point.
Joint work with and ok jasper@
This commit is contained in:
landry 2009-04-04 10:07:31 +00:00
parent 78066ffb46
commit 2df7d4e606
12 changed files with 195 additions and 0 deletions

48
net/libproxy/Makefile Normal file
View File

@ -0,0 +1,48 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
SHARED_ONLY= Yes
COMMENT-main= library handling all the details of proxy configuration
COMMENT-gnome= plugin for GNOME
DISTNAME= libproxy-0.2.3
SHARED_LIBS += proxy 0.0 # .0.0
CATEGORIES= net
HOMEPAGE= http://libproxy.googlecode.com/
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/files/
MODULES= lang/python
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-static
USE_GMAKE= Yes
MULTI_PACKAGES= -main -gnome
LIB_DEPENDS-gnome= proxy::${BUILD_PKGPATH},-main \
gconf-2::devel/gconf2
WANTLIB-main= ICE SM X11 Xau Xdmcp Xext Xmu Xt c m pthread
WANTLIB-gnome = ICE ORBit-2 SM X11 Xau Xdmcp Xext Xmu Xt dbus-1 dbus-glib-1 \
glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 iconv \
intl m pcre
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--without-mozjs \
--without-webkit
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
.include <bsd.port.mk>

5
net/libproxy/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (libproxy-0.2.3.tar.gz) = hrY14estZlz770xhNP5mBA==
RMD160 (libproxy-0.2.3.tar.gz) = yGxPhAPLh5OA4QHQdK9GnJYLXBw=
SHA1 (libproxy-0.2.3.tar.gz) = KysAoXl0BUgDWhFFu65gDbmwos4=
SHA256 (libproxy-0.2.3.tar.gz) = Wd7RYLNUfSnjfMnQY1n3832UESIU5FMkMM1l5wTBM5o=
SIZE (libproxy-0.2.3.tar.gz) = 378773

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-configure,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
--- configure.orig Thu Jun 5 22:56:33 2008
+++ configure Tue Feb 3 11:05:33 2009
@@ -21840,10 +21840,6 @@ _ACEOF
esac
-cat >>confdefs.h <<\_ACEOF
-#define malloc rpl_malloc
-_ACEOF
-
fi

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_bin_Makefile_in,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
--- src/bin/Makefile.in.orig Tue Feb 3 10:40:04 2009
+++ src/bin/Makefile.in Tue Feb 3 10:40:14 2009
@@ -210,7 +210,7 @@ xmu_LIBS = @xmu_LIBS@
# Command line interface to libproxy
proxy_SOURCES = proxy.c
proxy_CFLAGS = -I$(top_srcdir)/src/lib
-proxy_LDFLAGS = -ldl
+proxy_LDFLAGS =
proxy_LDADD = ../lib/libproxy.la
all: all-am

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-src_lib_proxy_factory_c,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
--- src/lib/proxy_factory.c.orig Tue Feb 3 10:32:47 2009
+++ src/lib/proxy_factory.c Tue Feb 3 10:33:07 2009
@@ -17,16 +17,18 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
+
#include <stdlib.h>
#include <assert.h>
#include <string.h>
-#include <sys/types.h>
#include <dirent.h>
#include <stdio.h>
#include <dlfcn.h>
#include <math.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
#include <pthread.h>

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-src_lib_url_c,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
--- src/lib/url.c.orig Mon Feb 2 23:17:31 2009
+++ src/lib/url.c Tue Feb 3 10:33:11 2009
@@ -17,15 +17,17 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
#include <netdb.h>
+
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
#include "misc.h"
#include "url.h"

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_plugins_mozjs_c,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
--- src/plugins/mozjs.c.orig Tue Feb 3 10:37:21 2009
+++ src/plugins/mozjs.c Tue Feb 3 10:37:39 2009
@@ -17,12 +17,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
-#include <stdlib.h>
-#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <netdb.h>
#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <netdb.h>
+
+#include <stdlib.h>
+#include <string.h>
#define __USE_BSD
#include <unistd.h>

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_plugins_webkit_c,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
--- src/plugins/webkit.c.orig Tue Feb 3 10:34:19 2009
+++ src/plugins/webkit.c Tue Feb 3 10:34:53 2009
@@ -17,12 +17,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
-#include <stdlib.h>
-#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <netdb.h>
#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <netdb.h>
+
+#include <stdlib.h>
+#include <string.h>
#define __USE_BSD
#include <unistd.h>

View File

@ -0,0 +1 @@
This package contains the GNOME configuration plugin for libproxy.

View File

@ -0,0 +1,9 @@
libproxy is a library that provides automatic proxy configuration
management.
libproxy offers the following features:
* extremely small core footprint (< 35K)
* only 3 functions in the stable external API
* dynamic adjustment to changing network topology
* a standard way of dealing with proxy settings across all scenarios

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-gnome,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
lib/libproxy/0.2.3/plugins/gnome.so

View File

@ -0,0 +1,13 @@
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2009/04/04 10:07:31 landry Exp $
@bin bin/proxy
include/proxy.h
lib/libproxy/
lib/libproxy.la
@lib lib/libproxy.so.${LIBproxy_VERSION}
lib/libproxy/0.2.3/
lib/libproxy/0.2.3/plugins/
lib/libproxy/0.2.3/plugins/envvar.so
lib/libproxy/0.2.3/plugins/file.so
lib/libproxy/0.2.3/plugins/kde.so
lib/pkgconfig/libproxy-1.0.pc
lib/python${MODPY_VERSION}/site-packages/libproxy.py