mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Add libproxy, a library that provides automatic proxy configuration management.
Plug-ins are available for GNOME, KDE, Mozilla, and WebKit. WWW: http://code.google.com/p/libproxy/
This commit is contained in:
parent
fbf0ee5e6d
commit
6b3986914a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229131
12 changed files with 290 additions and 0 deletions
|
@ -301,6 +301,7 @@
|
|||
SUBDIR += libosip2
|
||||
SUBDIR += libpcap
|
||||
SUBDIR += libpcapnav
|
||||
SUBDIR += libproxy
|
||||
SUBDIR += librsync
|
||||
SUBDIR += libsocket++
|
||||
SUBDIR += libsocketcpp
|
||||
|
|
34
net/libproxy/Makefile
Normal file
34
net/libproxy/Makefile
Normal file
|
@ -0,0 +1,34 @@
|
|||
# New ports collection makefile for: libproxy
|
||||
# Date created: 26 February 2009
|
||||
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= libproxy
|
||||
PORTVERSION= 0.2.3
|
||||
PORTREVISION?= 0
|
||||
CATEGORIES?= net devel
|
||||
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
||||
|
||||
MAINTAINER= gnome@FreeBSD.org
|
||||
COMMENT?= Library that provides automatic proxy configuration management
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_GNOME+= gnomehack
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
CONFIGURE_ARGS?=--without-gnome --without-kde --without-webkit \
|
||||
--without-mozjs --without-networkmanager --with-python \
|
||||
--with-envvar --with-file
|
||||
|
||||
PLIST_SUB+= VERSION=${PORTVERSION}
|
||||
|
||||
.if !defined(LIBPROXY_SLAVE)
|
||||
USE_LDCONFIG= yes
|
||||
USE_PYTHON= yes
|
||||
CONFLICTS= libmonetra-[0-9]*
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/libproxy/distinfo
Normal file
3
net/libproxy/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (libproxy-0.2.3.tar.gz) = 86b635e1eb2d665cfbef4c6134fe6604
|
||||
SHA256 (libproxy-0.2.3.tar.gz) = 59ded160b3547d29e37cc9d06359f7f37d94112214e4532430cd65e704c1339a
|
||||
SIZE (libproxy-0.2.3.tar.gz) = 378773
|
95
net/libproxy/files/patch-configure
Normal file
95
net/libproxy/files/patch-configure
Normal file
|
@ -0,0 +1,95 @@
|
|||
--- configure.orig 2009-02-27 00:08:46.000000000 -0500
|
||||
+++ configure 2009-02-27 00:09:25.000000000 -0500
|
||||
@@ -20509,16 +20509,16 @@ fi
|
||||
if test "${with_gnome+set}" = set; then
|
||||
withval=$with_gnome;
|
||||
else
|
||||
- test x$have_gconf == xyes &&
|
||||
- test x$have_x11 == xyes &&
|
||||
- test x$have_xmu == xyes &&
|
||||
+ test x$have_gconf = xyes &&
|
||||
+ test x$have_x11 = xyes &&
|
||||
+ test x$have_xmu = xyes &&
|
||||
with_gnome=yes
|
||||
fi
|
||||
|
||||
if test x$with_gnome = xyes; then
|
||||
- if test x$have_gconf == xyes && \
|
||||
- test x$have_x11 == xyes && \
|
||||
- test x$have_xmu == xyes; then
|
||||
+ if test x$have_gconf = xyes && \
|
||||
+ test x$have_x11 = xyes && \
|
||||
+ test x$have_xmu = xyes; then
|
||||
GNOME_CFLAGS="$x11_CFLAGS $xmu_CFLAGS $gconf_CFLAGS"
|
||||
GNOME_LIBS="$x11_LIBS $xmu_LIBS $gconf_LIBS"
|
||||
|
||||
@@ -20545,14 +20545,14 @@ fi
|
||||
if test "${with_kde+set}" = set; then
|
||||
withval=$with_kde;
|
||||
else
|
||||
- test x$have_x11 == xyes &&
|
||||
- test x$have_xmu == xyes &&
|
||||
+ test x$have_x11 = xyes &&
|
||||
+ test x$have_xmu = xyes &&
|
||||
with_kde=yes
|
||||
fi
|
||||
|
||||
if test x$with_kde = xyes; then
|
||||
- if test x$have_x11 == xyes && \
|
||||
- test x$have_xmu == xyes; then
|
||||
+ if test x$have_x11 = xyes && \
|
||||
+ test x$have_xmu = xyes; then
|
||||
KDE_CFLAGS="$x11_CFLAGS $xmu_CFLAGS"
|
||||
KDE_LIBS="$x11_LIBS $xmu_LIBS"
|
||||
|
||||
@@ -20579,11 +20579,11 @@ fi
|
||||
if test "${with_webkit+set}" = set; then
|
||||
withval=$with_webkit;
|
||||
else
|
||||
- test x$have_webkit == xyes && with_webkit=yes
|
||||
+ test x$have_webkit = xyes && with_webkit=yes
|
||||
fi
|
||||
|
||||
if test x$with_webkit = xyes; then
|
||||
- if test x$have_webkit == xyes; then
|
||||
+ if test x$have_webkit = xyes; then
|
||||
WEBKIT_CFLAGS="$webkit_CFLAGS"
|
||||
WEBKIT_LIBS="$webkit_LIBS"
|
||||
|
||||
@@ -20610,11 +20610,11 @@ fi
|
||||
if test "${with_mozjs+set}" = set; then
|
||||
withval=$with_mozjs;
|
||||
else
|
||||
- test x$have_mozjs == xyes && with_mozjs=yes
|
||||
+ test x$have_mozjs = xyes && with_mozjs=yes
|
||||
fi
|
||||
|
||||
if test x$with_mozjs = xyes; then
|
||||
- if test x$have_mozjs == xyes; then
|
||||
+ if test x$have_mozjs = xyes; then
|
||||
MOZJS_CFLAGS="$mozjs_CFLAGS"
|
||||
MOZJS_LIBS="$mozjs_LIBS"
|
||||
|
||||
@@ -20641,11 +20641,11 @@ fi
|
||||
if test "${with_networkmanager+set}" = set; then
|
||||
withval=$with_networkmanager;
|
||||
else
|
||||
- test x$have_networkmanager == xyes && with_networkmanager=yes
|
||||
+ test x$have_networkmanager = xyes && with_networkmanager=yes
|
||||
fi
|
||||
|
||||
if test x$with_networkmanager = xyes; then
|
||||
- if test x$have_networkmanager == xyes; then
|
||||
+ if test x$have_networkmanager = xyes; then
|
||||
NETWORKMANAGER_CFLAGS="$NetworkManager_CFLAGS"
|
||||
NETWORKMANAGER_LIBS="$NetworkManager_LIBS"
|
||||
|
||||
@@ -21610,7 +21610,7 @@ fi
|
||||
|
||||
PLUGINDIR=$libdir/$PACKAGE_NAME/$PACKAGE_VERSION/plugins
|
||||
|
||||
-CFLAGS="-g -std=c99 $CFLAGS -DPLUGINDIR=\\\"$PLUGINDIR\\\" -DSYSCONFDIR=\\\"$sysconfdir\\\" -D_POSIX_C_SOURCE=1"
|
||||
+CFLAGS="-g -std=c99 $CFLAGS -DPLUGINDIR=\\\"$PLUGINDIR\\\" -DSYSCONFDIR=\\\"$sysconfdir\\\""
|
||||
|
||||
### Checks for library functions.
|
||||
|
11
net/libproxy/files/patch-src_bin_Makefile.in
Normal file
11
net/libproxy/files/patch-src_bin_Makefile.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/bin/Makefile.in.orig 2009-02-26 23:50:56.000000000 -0500
|
||||
+++ src/bin/Makefile.in 2009-02-26 23:51:00.000000000 -0500
|
||||
@@ -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
|
||||
|
10
net/libproxy/files/patch-src_lib_proxy_factory.c
Normal file
10
net/libproxy/files/patch-src_lib_proxy_factory.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/lib/proxy_factory.c.orig 2009-02-26 23:49:38.000000000 -0500
|
||||
+++ src/lib/proxy_factory.c 2009-02-26 23:49:58.000000000 -0500
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <dlfcn.h>
|
||||
#include <math.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <pthread.h>
|
||||
|
10
net/libproxy/files/patch-src_lib_url.c
Normal file
10
net/libproxy/files/patch-src_lib_url.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/lib/url.c.orig 2009-02-26 23:45:38.000000000 -0500
|
||||
+++ src/lib/url.c 2009-02-26 23:47:25.000000000 -0500
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include "misc.h"
|
84
net/libproxy/files/patch-src_plugins_Makefile.in
Normal file
84
net/libproxy/files/patch-src_plugins_Makefile.in
Normal file
|
@ -0,0 +1,84 @@
|
|||
--- src/plugins/Makefile.in.orig 2009-02-27 00:10:06.000000000 -0500
|
||||
+++ src/plugins/Makefile.in 2009-02-27 00:10:56.000000000 -0500
|
||||
@@ -70,21 +70,21 @@ file_la_LINK = $(LIBTOOL) --tag=CC $(AM_
|
||||
--mode=link $(CCLD) $(file_la_CFLAGS) $(CFLAGS) \
|
||||
$(file_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
@WITH_FILE_TRUE@am_file_la_rpath = -rpath $(plugindir)
|
||||
-gnome_la_DEPENDENCIES = ../lib/libproxy.la
|
||||
+gnome_la_DEPENDENCIES =
|
||||
am_gnome_la_OBJECTS = gnome_la-gnome.lo gnome_la-xhasclient.lo
|
||||
gnome_la_OBJECTS = $(am_gnome_la_OBJECTS)
|
||||
gnome_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
--mode=link $(CCLD) $(gnome_la_CFLAGS) $(CFLAGS) \
|
||||
$(gnome_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
@WITH_GNOME_TRUE@am_gnome_la_rpath = -rpath $(plugindir)
|
||||
-kde_la_DEPENDENCIES = ../lib/libproxy.la
|
||||
+kde_la_DEPENDENCIES =
|
||||
am_kde_la_OBJECTS = kde_la-kde.lo kde_la-xhasclient.lo
|
||||
kde_la_OBJECTS = $(am_kde_la_OBJECTS)
|
||||
kde_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
--mode=link $(CCLD) $(kde_la_CFLAGS) $(CFLAGS) \
|
||||
$(kde_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
@WITH_KDE_TRUE@am_kde_la_rpath = -rpath $(plugindir)
|
||||
-mozjs_la_DEPENDENCIES = ../lib/libproxy.la
|
||||
+mozjs_la_DEPENDENCIES =
|
||||
am_mozjs_la_OBJECTS = mozjs_la-mozjs.lo
|
||||
nodist_mozjs_la_OBJECTS =
|
||||
mozjs_la_OBJECTS = $(am_mozjs_la_OBJECTS) $(nodist_mozjs_la_OBJECTS)
|
||||
@@ -92,7 +92,7 @@ mozjs_la_LINK = $(LIBTOOL) --tag=CC $(AM
|
||||
--mode=link $(CCLD) $(mozjs_la_CFLAGS) $(CFLAGS) \
|
||||
$(mozjs_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
@WITH_MOZJS_TRUE@am_mozjs_la_rpath = -rpath $(plugindir)
|
||||
-networkmanager_la_DEPENDENCIES = ../lib/libproxy.la
|
||||
+networkmanager_la_DEPENDENCIES =
|
||||
am_networkmanager_la_OBJECTS = networkmanager_la-networkmanager.lo
|
||||
networkmanager_la_OBJECTS = $(am_networkmanager_la_OBJECTS)
|
||||
networkmanager_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
@@ -101,7 +101,7 @@ networkmanager_la_LINK = $(LIBTOOL) --ta
|
||||
$(networkmanager_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
@WITH_NETWORKMANAGER_TRUE@am_networkmanager_la_rpath = -rpath \
|
||||
@WITH_NETWORKMANAGER_TRUE@ $(plugindir)
|
||||
-webkit_la_DEPENDENCIES = ../lib/libproxy.la
|
||||
+webkit_la_DEPENDENCIES =
|
||||
am_webkit_la_OBJECTS = webkit_la-webkit.lo
|
||||
nodist_webkit_la_OBJECTS =
|
||||
webkit_la_OBJECTS = $(am_webkit_la_OBJECTS) \
|
||||
@@ -293,33 +293,33 @@ file_la_LDFLAGS = -module -avoid-version
|
||||
# GConf/GNOME Config Plugin
|
||||
gnome_la_SOURCES = gnome.c xhasclient.c
|
||||
gnome_la_CFLAGS = -I$(top_srcdir)/src/lib @GNOME_CFLAGS@
|
||||
-gnome_la_LIBADD = ../lib/libproxy.la
|
||||
+gnome_la_LIBADD = -lproxy
|
||||
gnome_la_LDFLAGS = -module -avoid-version @GNOME_LIBS@
|
||||
|
||||
# KDE Config Plugin
|
||||
kde_la_SOURCES = kde.c xhasclient.c
|
||||
kde_la_CFLAGS = -I$(top_srcdir)/src/lib @KDE_CFLAGS@
|
||||
-kde_la_LIBADD = ../lib/libproxy.la
|
||||
+kde_la_LIBADD = -lproxy
|
||||
kde_la_LDFLAGS = -module -avoid-version @KDE_LIBS@
|
||||
|
||||
# WebKit (JavaScriptCore) based PAC runner
|
||||
webkit_la_SOURCES = webkit.c
|
||||
webkit_la_CFLAGS = -I$(top_srcdir)/src/lib @WEBKIT_CFLAGS@
|
||||
-webkit_la_LIBADD = ../lib/libproxy.la
|
||||
+webkit_la_LIBADD = -lproxy
|
||||
webkit_la_LDFLAGS = -module -avoid-version @WEBKIT_LIBS@
|
||||
nodist_webkit_la_SOURCES = pacutils.h
|
||||
|
||||
# Mozilla (Spidermonkey) based PAC runner
|
||||
mozjs_la_SOURCES = mozjs.c
|
||||
mozjs_la_CFLAGS = -I$(top_srcdir)/src/lib @MOZJS_CFLAGS@
|
||||
-mozjs_la_LIBADD = ../lib/libproxy.la
|
||||
+mozjs_la_LIBADD = -lproxy
|
||||
mozjs_la_LDFLAGS = -module -avoid-version @MOZJS_LIBS@
|
||||
nodist_mozjs_la_SOURCES = pacutils.h
|
||||
|
||||
# NetworkManager Plugin
|
||||
networkmanager_la_SOURCES = networkmanager.c
|
||||
networkmanager_la_CFLAGS = -I$(top_srcdir)/src/lib @NETWORKMANAGER_CFLAGS@
|
||||
-networkmanager_la_LIBADD = ../lib/libproxy.la
|
||||
+networkmanager_la_LIBADD = -lproxy
|
||||
networkmanager_la_LDFLAGS = -module -avoid-version @NETWORKMANAGER_LIBS@
|
||||
BUILT_SOURCES = pacutils.h
|
||||
CLEANFILES = pacutils.h
|
10
net/libproxy/files/patch-src_plugins_mozjs.c
Normal file
10
net/libproxy/files/patch-src_plugins_mozjs.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/plugins/mozjs.c.orig 2009-02-27 00:18:46.000000000 -0500
|
||||
+++ src/plugins/mozjs.c 2009-02-27 00:18:56.000000000 -0500
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>
|
||||
+#include <netinet/in.h>
|
||||
#define __USE_BSD
|
||||
#include <unistd.h>
|
||||
|
10
net/libproxy/files/patch-src_plugins_webkit.c
Normal file
10
net/libproxy/files/patch-src_plugins_webkit.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/plugins/webkit.c.orig 2009-02-27 00:22:39.000000000 -0500
|
||||
+++ src/plugins/webkit.c 2009-02-27 00:22:50.000000000 -0500
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>
|
||||
#define __USE_BSD
|
9
net/libproxy/pkg-descr
Normal file
9
net/libproxy/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
|||
Libproxy exists to answer the question: Given a network resource, how do I
|
||||
reach it? It handles all the details, enabling you to get back to
|
||||
programming.
|
||||
|
||||
GNOME? KDE? Command line? WPAD? PAC? Network changed? It doesn't matter!
|
||||
Just ask libproxy what proxy to use: you get simple code and your users
|
||||
get correct, consistant behavior and broad infrastructure compatibility.
|
||||
|
||||
WWW: http://code.google.com/p/libproxy/
|
13
net/libproxy/pkg-plist
Normal file
13
net/libproxy/pkg-plist
Normal file
|
@ -0,0 +1,13 @@
|
|||
bin/proxy
|
||||
include/proxy.h
|
||||
lib/libproxy.a
|
||||
lib/libproxy.la
|
||||
lib/libproxy.so
|
||||
lib/libproxy.so.0
|
||||
lib/libproxy/%%VERSION%%/plugins/envvar.so
|
||||
lib/libproxy/%%VERSION%%/plugins/file.so
|
||||
libdata/pkgconfig/libproxy-1.0.pc
|
||||
%%PYTHON_SITELIBDIR%%/libproxy.py
|
||||
@dirrmtry lib/libproxy/%%VERSION%%/plugins
|
||||
@dirrmtry lib/libproxy/%%VERSION%%
|
||||
@dirrmtry lib/libproxy
|
Loading…
Add table
Reference in a new issue