diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2009-03-04 02:11:07 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2009-03-04 02:11:07 +0000 |
commit | 6d85a75ca51fbf5c43c1d3b7b00aa59f0ba02d0f (patch) | |
tree | adb84243e48934cbe74140805d86b59df88a919f | |
parent | a3c49f791bed0b10da3bb2aa035cb8266c6dba5e (diff) | |
download | pkgsrc-6d85a75ca51fbf5c43c1d3b7b00aa59f0ba02d0f.tar.gz |
Import libproxy version 0.2.3.
libproxy is a library that provides automatic proxy configuration management.
libproxy offers the following features:
* extremely small core footprint (< 35K)
* no external dependencies within libproxy core (libproxy plugins may
have dependencies)
* 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
* a sublime sense of joy and accomplishment
-rw-r--r-- | www/libproxy/DESCR | 11 | ||||
-rw-r--r-- | www/libproxy/Makefile | 28 | ||||
-rw-r--r-- | www/libproxy/PLIST | 11 | ||||
-rw-r--r-- | www/libproxy/buildlink3.mk | 19 | ||||
-rw-r--r-- | www/libproxy/distinfo | 6 | ||||
-rw-r--r-- | www/libproxy/patches/patch-aa | 100 |
6 files changed, 175 insertions, 0 deletions
diff --git a/www/libproxy/DESCR b/www/libproxy/DESCR new file mode 100644 index 00000000000..c3094f37c47 --- /dev/null +++ b/www/libproxy/DESCR @@ -0,0 +1,11 @@ +libproxy is a library that provides automatic proxy configuration management. + +libproxy offers the following features: + + * extremely small core footprint (< 35K) + * no external dependencies within libproxy core (libproxy plugins may + have dependencies) + * 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 + * a sublime sense of joy and accomplishment diff --git a/www/libproxy/Makefile b/www/libproxy/Makefile new file mode 100644 index 00000000000..16a3f38ff51 --- /dev/null +++ b/www/libproxy/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/03/04 02:11:07 jmcneill Exp $ +# + +DISTNAME= libproxy-0.2.3 +CATEGORIES= www gnome +MASTER_SITES= http://libproxy.googlecode.com/files/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://code.google.com/p/libproxy/ +COMMENT= Library that provides automatic proxy configuration management + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config gmake +PY_PATCHPLIST= yes + +PKGCONFIG_OVERRIDE+= libproxy-1.0.pc.in + +.include "../../mk/bsd.prefs.mk" +.if (${OPSYS} == "NetBSD") +BUILDLINK_TRANSFORM+= rm:-ldl +.endif + +.include "../../lang/python/extension.mk" +.include "../../mk/dlopen.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/libproxy/PLIST b/www/libproxy/PLIST new file mode 100644 index 00000000000..4b7dbd04878 --- /dev/null +++ b/www/libproxy/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/03/04 02:11:07 jmcneill Exp $ +bin/proxy +include/proxy.h +lib/libproxy.la +lib/libproxy/${PKGVERSION}/plugins/envvar.so +lib/libproxy/${PKGVERSION}/plugins/file.so +lib/pkgconfig/libproxy-1.0.pc +${PYSITELIB}/libproxy.py +@dirrm lib/libproxy/${PKGVERSION}/plugins +@dirrm lib/libproxy/${PKGVERSION} +@dirrm lib/libproxy diff --git a/www/libproxy/buildlink3.mk b/www/libproxy/buildlink3.mk new file mode 100644 index 00000000000..d18f1551d87 --- /dev/null +++ b/www/libproxy/buildlink3.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/03/04 02:11:07 jmcneill Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBPROXY_BUILDLINK3_MK:= ${LIBPROXY_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= libproxy +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibproxy} +BUILDLINK_PACKAGES+= libproxy +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libproxy + +.if ${LIBPROXY_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.libproxy+= libproxy>=0.2.3 +BUILDLINK_PKGSRCDIR.libproxy?= ../../www/libproxy +.endif # LIBPROXY_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/www/libproxy/distinfo b/www/libproxy/distinfo new file mode 100644 index 00000000000..762e39a3c5b --- /dev/null +++ b/www/libproxy/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/03/04 02:11:07 jmcneill Exp $ + +SHA1 (libproxy-0.2.3.tar.gz) = 2b2b00a179740548035a1145bbae600db9b0a2ce +RMD160 (libproxy-0.2.3.tar.gz) = c86c4f8403cb879380e101d074af469c960b5c1c +Size (libproxy-0.2.3.tar.gz) = 378773 bytes +SHA1 (patch-aa) = e27fd8a773fab0a7e0813b1a8acf6311b4fd012a diff --git a/www/libproxy/patches/patch-aa b/www/libproxy/patches/patch-aa new file mode 100644 index 00000000000..cc4519770fe --- /dev/null +++ b/www/libproxy/patches/patch-aa @@ -0,0 +1,100 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/03/04 02:11:07 jmcneill Exp $ + +--- configure.orig 2008-06-05 16:56:33.000000000 -0400 ++++ configure +@@ -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" + +@@ -21611,6 +21611,11 @@ fi + PLUGINDIR=$libdir/$PACKAGE_NAME/$PACKAGE_VERSION/plugins + + CFLAGS="-g -std=c99 $CFLAGS -DPLUGINDIR=\\\"$PLUGINDIR\\\" -DSYSCONFDIR=\\\"$sysconfdir\\\" -D_POSIX_C_SOURCE=1" ++case $host_os in ++ netbsd*) ++ CFLAGS="$CFLAGS -D_NETBSD_SOURCE" ++ ;; ++esac + + ### Checks for library functions. + |